logo elektroda
logo elektroda
X
logo elektroda

BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

minusync 19965 98
ADVERTISEMENT
  • #31 20382203
    ionoleinic
    Level 10  
    Works!
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    What format to choose? ASCII,HEX or something else?
  • ADVERTISEMENT
  • #32 20382222
    p.kaczmarek2
    Moderator Smart Home
    HEX, so we get 55 AA 00 etc etc in text file.

    Can you set a reporting interval in Tuya app?

    Try to detect what is being sent when you set that reporting interval.
    Helpful post? Buy me a coffee.
  • #33 20382243
    ionoleinic
    Level 10  
    I can't set reporting interval.It is by defualt 1 hour...
    I will try to capture when its pairing with tuya App.

    Added after 23 [minutes]:

    I got these values:
    On Pairing with Tuya App:
    55 AA 00 02 00 01 02 04 55 AA 00 02 00 01 03 05 55 AA 00 02 00 01 04 06
    55 AA 00 08 00 01 00 08 55 AA 00 08 00 01 00 08 55 AA 00 08 00 01 00 08
    55 AA 00 10 00 02 01 00 12 00 00 00

    On Restart:
    55 AA 00 01 00 00 00 55 AA 00 02 00 01 03 05 55 AA 00 02 00 01 04 06 55
    AA 00 08 00 01 00 08 55 AA 00 08 00 01 00 08 55 AA 00 08 00 01 00 08 55
    AA 00 10 00 02 01 00 12 00

    On Button Pressed:
    55 AA 00 01 00 00 00 55 AA 00 02 00 01 03 05 55 AA 00 02
    00 01 04 06 55 AA 00 08 00 01 00 08 55 AA 00 08 00 01 00 08 55 AA 00 08
    00 01 00 08 55 AA 00 10 00 02 01 00 12 00

    Current Temp and Hum now is : 28.2 C and 50% (aprox)
  • #34 20382444
    p.kaczmarek2
    Moderator Smart Home
    Wait, is it possible to change reporting interval on that device or not?

    Is that a capture from TXD1 of WiFi module? It seems so. There is no humidity, no temperature data. You can get that data if you capture on RXD1.

    But still, dpIds are known for that device, the only question still pending is is there a packet for report interval configuration?
    Helpful post? Buy me a coffee.
  • #35 20382511
    ionoleinic
    Level 10  
    p.kaczmarek2 wrote:
    Wait, is it possible to change reporting interval on that device or not?

    I tried, but didn't find nothing like that, only graphical report hourly.
    p.kaczmarek2 wrote:
    Is that a capture from TXD1 of WiFi module? It seems so. There is no humidity, no temperature data. You can get that data if you capture on RXD1.

    Oh, my fault, i connected Rx to Tx and Tx to Rx, need reverse...
    p.kaczmarek2 wrote:
    But still, dpIds are known for that device, the only question still pending is is there a packet for report interval configuration?

    I will try tomorrow to wait until module will report to tuya App itself.(It powers a led when send a report).
  • #36 20382515
    p.kaczmarek2
    Moderator Smart Home
    It's not possible to connect both correctly. You have only one line to receive data on your USB to UART converter, while on the other hand, the IoT device with TuyaMCU has TXD1 (of BK) <-> RX (of TuyaMCU) line and RXD1 (of BK)<-> TX (of TuyaMCU). This is how UART works:
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    There are to lines to sniff. You should repeat all tests twice, first sniff what WiFi module receives and then sniff what WiFI module sends.

    Basically, there are two lines of communication while you have only single RX line to receive.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #37 20382521
    ionoleinic
    Level 10  
    Ok, thanks, i will repeat capture tomorrow.
    About setting interval in tuya App i don't know...I didn't use tuya App before.
    I started to flash all devices that i had since first one :)
  • #38 20382525
    p.kaczmarek2
    Moderator Smart Home
    It would be very good feature, but we can't do that in OpenBK itself, it HAS TO BE supported by MCU.
    Just as @suprjedi said:
    superjedi wrote:

    Is there any standard way (standard, as in, tuya protocol) to configure the MCU for a particular wakeup interval ?
    Helpful post? Buy me a coffee.
  • #39 20382580
    ionoleinic
    Level 10  
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    I think it is deliberately protected in this way, to save power of batteries.A client can make this interval very small and this way discharging is faster.
  • ADVERTISEMENT
  • #41 20382728
    ionoleinic
    Level 10  
    I have captured again TuyaMCU packets.
    On Pairing with Tuya App:
    55 AA 00 02 00 00 01 55 AA 00 02 00 00 01 55 AA 00 02 00 00 01 55 AA 00
    08 00 0F 00 01 01 01 01 01 01 01 02 00 04 00 00 01 00 24 55 AA 00 08 00
    0F 00 01 01 01 01 01 01 02 02 00 04 00 00 00 3A 5E 55 AA 00 08 00 0C 00
    03 03 03 03 03 03 03 04 00 01 02 2F 55 AA 00 10 00 02 01 09 1B 00

    On Restart:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A 6B
    78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02 00
    00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01 02
    00 04 00 00 00 FB 1E 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00 04
    00 00 00 3C 60 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02 2F
    55 AA 00 10 00 02 01 09 1B 00

    On Button Pressed:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A
    6B 78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02
    00 00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01
    02 00 04 00 00 00 FA 1D 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00
    04 00 00 00 34 58 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02
    2F 55 AA 00 10 00 02 01 09 1B 00

    Reporting:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A 6B
    78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02 00
    00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01 02
    00 04 00 00 00 FC 1F 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00 04
    00 00 00 39 5D 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02 2F
    55 AA 00 10 00 02 01 09 1B 00

    Added after 1 [minutes]:

    Now i can flash module with OpenBeken?
  • #42 20382906
    p.kaczmarek2
    Moderator Smart Home
    ionoleinic wrote:
    I have captured again TuyaMCU packets.
    On Pairing with Tuya App:
    55 AA 00 02 00 00 01 55 AA 00 02 00 00 01 55 AA 00 02 00 00 01 55 AA 00
    08 00 0F 00 01 01 01 01 01 01 01 02 00 04 00 00 01 00 24 55 AA 00 08 00
    0F 00 01 01 01 01 01 01 02 02 00 04 00 00 00 3A 5E 55 AA 00 08 00 0C 00
    03 03 03 03 03 03 03 04 00 01 02 2F 55 AA 00 10 00 02 01 09 1B 00

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    ionoleinic wrote:

    On Restart:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A 6B
    78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02 00
    00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01 02
    00 04 00 00 00 FB 1E 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00 04
    00 00 00 3C 60 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02 2F
    55 AA 00 10 00 02 01 09 1B 00

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

    ionoleinic wrote:

    On Button Pressed:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A
    6B 78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02
    00 00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01
    02 00 04 00 00 00 FA 1D 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00
    04 00 00 00 34 58 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02
    2F 55 AA 00 10 00 02 01 09 1B 00

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    ionoleinic wrote:

    Reporting:
    55 AA 00 01 00 24 7B 22 70 22 3A 22 6C 66 33 36 79 35 6E 77 62 38 6A 6B
    78 77 67 67 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 99 55 AA 00 02 00
    00 01 55 AA 00 02 00 00 01 55 AA 00 08 00 0F 00 01 01 01 01 01 01 01 02
    00 04 00 00 00 FC 1F 55 AA 00 08 00 0F 00 01 01 01 01 01 01 02 02 00 04
    00 00 00 39 5D 55 AA 00 08 00 0C 00 03 03 03 03 03 03 03 04 00 01 02 2F
    55 AA 00 10 00 02 01 09 1B 00

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

    Id 1 is a temperature but as integer, must be divided by 10.
    Id 2 is humidity
    Id 3 most likely is a battery level.

    The used packet type is 0x08, which consists first a date, which is marked as "invalid date", here is how can it be parsed:
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    Then it contains a classic Tuya variables:
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    Here's the doc:
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

    From a quick glance, I can't see anything that sets reporting interval, but I will check later other packet types as well.

    Docs link:
    https://developer.tuya.com/en/docs/iot/tuyacl...niversalserialaccessprotocol?id=K95afs9h4tjjh

    ionoleinic wrote:

    Now i can flash module with OpenBeken?

    Please do a backup 2MB read, share it if you can and flash.
    Helpful post? Buy me a coffee.
  • #43 20383655
    minusync
    Level 9  
    p.kaczmarek2 wrote:
    Wait, is it possible to change reporting interval on that device or not?


    I do not have those devices in tuya universe anymore but I remember clearly that in the app there was an option to change reporting interval. The default was 90min or something like that.

    Added after 1 [hours] 53 [minutes]:

    I will consistently try to summarize the problems encountered with the HA integration.
    Discovering MQTT happens very strangely. The MQTT device HA does not see this sensor and it is not possible to listen to the sensor in the MQTT settings. However, the entities temperature and temperature_2 are displayed on the entities page. It is possible to use the data, but sometimes it is a bit strange, for example, the temp shows 22.400000000000002. HA complains that the device has no ID and therefore cannot be further configured. This is a bit annoying because there is no way to adjust the icon.

    edit: I did add ID manually in yaml, but fact that HA mqtt does not see it as device is confusing. However bcs it does create entities it is generally possible to use the sensor. However, after resetting the device, it starts to send the temperature and moisture data at a few minutes at intervals, this time range will basically double each time and after a few hours the data will be completely suspended. At this point, the device seems to be working but the data is no longer transmitted. Such a pattern is permanent and repeatedly tested. There is also a permanent decimal problem I mentioned above. I use the recommended YAML setup here
    "{{ ((value | float * 0.1 | round(1))) }}"
    but it does not seem to work.
  • #44 20383876
    ionoleinic
    Level 10  
    Succesfully flashed!
    Thanks @p.kaczmarek2 for help.Thanks a lot.
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
    Everything works perfectly.
    Autoexec.bat :
    startDriver tuyaMCU
    startDriver tmSensor
    linkTuyaMCUOutputToChannel 1 val 1
    setChannelType 1 Temperature_Div10
    linkTuyaMCUOutputToChannel 2 val 2
    setChannelType 2 Humidity


    Dump :
    [ backup_2mb...mp_hum.bin Download (2 MB)

    How to set ChanelType3 to show battery level? Or it isn't implemented yet?
  • #45 20396622
    Simon79
    Level 21  
    I have this sensor and a problem with mines, that's why I allowed myself to connect to the topic. After changing the router (but with the same SSID and password), the sensor does not want to pair with the application (TUYA SMART). I deleted it along with "datawipe" and it still won't connect. I created a new account in another application (smart life), also does not pair. If I connect the previous router, there is no such problem. What could be the reason for such behavior?
  • #46 20396683
    p.kaczmarek2
    Moderator Smart Home
    @Simon79 all these devices only work on 2.4GHz WiFi, on 5GHz they will not pair.
    Helpful post? Buy me a coffee.
  • #47 20396692
    Simon79
    Level 21  
    Yes, I know, my wifi is 2.4GHz.
    The only thing that comes to my mind is that this previous router could block, reserve? this sensor and it can't be paired on another router, but I don't know about it :)
  • #48 20396745
    p.kaczmarek2
    Moderator Smart Home
    I've never heard of such a thing. Even more so when you pair again. It is true that I saw some in SDK Tuya "quick connect" partition for WiFi who wrote something down there, but I doubt it...

    Better check if this new router doesn't have e.g. MAC filtering enabled? Maybe DHCP isn't on it? Maybe only devices with a MAC on the white list are allowed to connect?

    Was the same type of encryption on both routers?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #49 20397498
    Simon79
    Level 21  
    WPA/WPA2 encryption. DHCP enabled, whitelisted mac address and nothing. It was only on a smartphone with an older android that it was possible to pair and connect, the application account was the same, and on a newer smartphone the sensor was "added" as "No. 2".
    I would like to add that only this sensor had a problem, other tuya, sonoff, ESP-8266 connected to the supla without a problem.
  • #50 20401521
    Xinayder
    Level 8  
    I have news from my device after my UART programmer arrived.

    First, the battery powered temp and humidity sensor is just like the OP one except that the PCB is a bit different. The sensor used is a AHT20 and there's a TuyaMCU module as well. I soldered the wires and tried to connect it to my programmer and a weird behavior occurred.

    Whenever I'd power the sensor with the UART programmer (both 3v3 and GND), the DRX and DTX LEDs of the programmer would blink at a low intensity. The programmer stopped being detected by my system. As soon as I removed one of the power wires it was detected again.

    I found out that the TX pin of the CB3S is connected to pin 15 of the TuyaMCU chip, but the RX isn't connected anywhere on the chip. There are 2 vias on the PCB labeled TX2 and RX2 which are connected to the TX1/RX1 pins of the wifi module.

    (yes I know the solder is bad, I was experimenting with my brand new iron that I got from aliexpress). I also wanted to check out the other side of the board but it's either glued or soldered together. But I know that pin 15 goes to something on the other side of the board which goes to the TX/RX vias.

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
  • #51 20402035
    p.kaczmarek2
    Moderator Smart Home
    Xinayder wrote:

    First, the battery powered temp and humidity sensor is just like the OP one except that the PCB is a bit different. The sensor used is a AHT20 and there's a TuyaMCU module as well. I soldered the wires and tried to connect it to my programmer and a weird behavior occurred.

    This device reminds me of:
    https://www.elektroda.com/rtvforum/topic3914412.html

    Xinayder wrote:

    Whenever I'd power the sensor with the UART programmer (both 3v3 and GND), the DRX and DTX LEDs of the programmer would blink at a low intensity. The programmer stopped being detected by my system. As soon as I removed one of the power wires it was detected again.

    Sorry but I don't understand, what stopped being detected? The COM port?
    Or the BK flasher stopped recognizing device? Or what?

    Xinayder wrote:

    I found out that the TX pin of the CB3S is connected to pin 15 of the TuyaMCU chip, but the RX isn't connected anywhere on the chip. There are 2 vias on the PCB labeled TX2 and RX2 which are connected to the TX1/RX1 pins of the wifi module.

    It is virtually impossible, TuyaMCU Battery Powered Devices Serial Protocol (see Tuya site for docs) requires bidirectional communication to work.
    Maybe there is a 100ohm resistor on the way?

    Xinayder wrote:

    (yes I know the solder is bad, I was experimenting with my brand new iron that I got from aliexpress).

    You can watch some videos on our YT channel to see how to improve IoT soldering job:
    https://www.youtube.com/@elektrodacom


    Xinayder wrote:

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

    I can clearly see Q1 MOSFET which is controlled by TuyaMCU in order to power off and on WiFi module.


    @Xinayder , can you do a UART packet capture first (in hex string mode, both from rx and tx) for further analysis before flashing obk?
    Also do 2MB firmware backup.
    Helpful post? Buy me a coffee.
  • #52 20403807
    Xinayder
    Level 8  
    p.kaczmarek2 wrote:
    Maybe there is a 100ohm resistor on the way?


    Perhaps, but I haven't located it yet. I'll take a look at it again later.

    p.kaczmarek2 wrote:
    can you do a UART packet capture first (in hex string mode, both from rx and tx) for further analysis before flashing obk?
    Also do 2MB firmware backup.


    I tried, the problem is that (at least on Linux) my UART programmer keeps connecting and disconnecting itself after I power the sensor with the wires from the programmer. TX/DX LEDs on the programmer just start blinking constantly and the module doesn't show up on lsusb. Disconnecting the vcc/gnd wires make it work again.

    For that reason I can't even do a firmware dump because it can't read data from the sensor. I tried plugging the GND to the programmer and powering the sensor with the batteries but no luck either.

    The programmer is a FT232BL.
  • #53 20404004
    p.kaczmarek2
    Moderator Smart Home
    Xinayder wrote:

    For that reason I can't even do a firmware dump because it can't read data from the sensor. I tried plugging the GND to the programmer and powering the sensor with the batteries but no luck either.

    Doing firmware backup will not work with TuyaMCU on board. You first have to cut the trace or desolder TuyaMCU or desolder WiFi module.

    Doing packets capture should work.

    Please show your wiring connections...
    Helpful post? Buy me a coffee.
  • #54 20413614
    Xinayder
    Level 8  
    p.kaczmarek2 wrote:
    Xinayder wrote:

    For that reason I can't even do a firmware dump because it can't read data from the sensor. I tried plugging the GND to the programmer and powering the sensor with the batteries but no luck either.

    Doing firmware backup will not work with TuyaMCU on board. You first have to cut the trace or desolder TuyaMCU or desolder WiFi module.

    Doing packets capture should work.

    Please show your wiring connections...


    Got caught up with work and forgot to reply here.

    I inserted the batteries into the sensor and it can no longer pair, the Tuya app finds the device but can't pair for some reason. I think I may have messed up the solder of the pins when I was trying to solder without flux (which resulted in the crappy solder job), so I'll try redoing the solder and seeing if it works. Otherwise I'm just gonna buy another sensor from AliExpress.

    EDIT: good news, the sensor works, but something damaged the wifi antenna so it's not working properly. I had to put the sensor next to my router to add it to Tuya and it will only update if it's close to it. I also noticed that when I was trying to solder without flux, I accidentally removed one of the vias, specifically the one located at pin 11 (TXD2), which could be the reason why the UART programmer goes crazy.

    I tried to connect the programmer on Windows and I had the same problem. The USB port keeps popping up and disappearing, as if I was unplugging and replugging the programmer several times a second. My guess it's that I completely messed it up with soldering. I'll order a new sensor from AliExpress again and hopefully won't make a mess this time; I'll watch the youtube video to make it properly this time.
  • #55 20415363
    p.kaczmarek2
    Moderator Smart Home
    You can fix soldering job, just apply flux now, fix joints, clean PCB with IPA.

    How was the antenna damaged? Maybe you can fix it by doing a short jumper with solder.

    Was TXD11 damaged on wifi module board or on the mother board?

    Quote:

    The USB port keeps popping up and disappearing, as if I was unplugging and replugging the programmer several times a second.

    do you have USB doctor? Maybe something is taking too much current.
    Helpful post? Buy me a coffee.
  • #56 20423300
    Xinayder
    Level 8  
    p.kaczmarek2 wrote:
    You can fix soldering job, just apply flux now, fix joints, clean PCB with IPA.

    How was the antenna damaged? Maybe you can fix it by doing a short jumper with solder.

    Was TXD11 damaged on wifi module board or on the mother board?

    Quote:

    The USB port keeps popping up and disappearing, as if I was unplugging and replugging the programmer several times a second.

    do you have USB doctor? Maybe something is taking too much current.


    The pin 11 via was completely removed from the board (the golden part due to too much heat applied when I had no flux to solder) and I tried putting some solder in it, but it didn't work. I believe this might have caused the wifi issues, as the datasheet states that this pin is used for displaying module internal information.

    Regarding the antenna, how could I try to fix it? If it's by soldering a wire on the antenna trail, the varnish on the PCB covers the whole antenna and I couldn't find a place to solder it.

    Also I should definitely buy isopropyl alcohol before I get into soldering again; I bought a door sensor and the same temperature sensor from a seller on AliExpress, it was supposed to be delivered Friday but due to Lunar New Year I believe it was delayed, so hopefully it will arrive this week.
  • #57 20427369
    crashyourself22
    Level 2  
    Hi I have the same module and everything is already in place, but im missing the PIN config.
    Can anybody please post it?
    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor

    BK7231N/CB3S Tuya generic battery powered temperature and humidity sensor with CHT8305 sensor
  • #58 20427374
    p.kaczmarek2
    Moderator Smart Home
    It might be missing from template, you may need to set it yourself by looking at this topic.
    If you have a github account, you can also add a correct config with a pull request.
    Helpful post? Buy me a coffee.
  • #59 20428956
    crashyourself22
    Level 2  
    p.kaczmarek2 wrote:
    It might be missing from template, you may need to set it yourself by looking at this topic.
    If you have a github account, you can also add a correct config with a pull request.


    I don´t know which pins i have to configure in OBK and how tzo receive the data from the IC.
    I´m using the same board as @minusync
  • #60 20429254
    minusync
    Level 9  
    crashyourself22 wrote:
    I don´t know which pins i have to configure in OBK and how tzo receive the data from the IC.
    I´m using the same board as @minusync

    Just to get the temperature and humidity, the pin setting is not directly necessary. You need to create a .bat file that runs the necessary drivers, as described somewhere on the first page of this thread and drop it to the filesystem box (in web application). After restarting the sensor, you can see if the drivers work and the temp is read, but note that the sensor will not start transmitting data until the external power from the cb3s pins is removed! If you leave the logs window open, it is also possible to check whether something is being transmitted.
    But the sensor at moment doesn't work anyway. In my experience, it needs some kind of (driver?) setting that defines the time period after which the data is transferred. Currently, HA receives a signal about 4-6 times, but then, at least my sensor switches to safety mode and then stops transmitting any data. Such behavior has been repeatedly tested.

Topic summary

The discussion revolves around the BK7231N/CB3S Tuya generic battery-powered temperature and humidity sensor, which utilizes the CHT8305 sensor. Users confirm successful flashing of the device using Python and OpenBK7231N_QIO, although the new flashing tool is not yet ready. The conversation includes troubleshooting issues related to driver support for the CHT8305 sensor, pin configurations, and communication protocols. Users share experiences with MQTT integration, firmware flashing, and the challenges of maintaining stable connections and accurate readings. The importance of proper power management by the TuyaMCU is emphasized, as it controls the WiFi module's power state. Additionally, there are discussions about the need for firmware backups, UART packet captures, and the potential for using different sensors like the AHT20. The conversation also touches on issues with device pairing after router changes and the need for specific configurations in Home Assistant.
Summary generated by the language model.
ADVERTISEMENT