logo elektroda
logo elektroda
X

Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v

p.kaczmarek2 153 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    The subject of the TH08 sensor, based on the CHT8310 chip and offering Wi-Fi connectivity, has already been raised many times in our forum. Its integration with the Home Assistant proved possible, albeit quite challenging. This time I will show its Zigbee variant, whose pairing with HA is much simpler. We will also take the opportunity to look inside both devices to see how they differ.

    Let's start with the question of pricing. The Zigbee version can be bought in our country for around £40, while the Wi-Fi version is slightly cheaper, costing £20 to £30. Here one might be tempted to say that why would you need one Zigbee sensor when you can have two Wi-Fi ones for the same price? but I recommend caution. Indeed Wi-Fi is cheaper, but it is also more difficult to convert so that it works without the cloud:
    [BK7231N/CBU] Tuya TH08 Generic Wi-Fi Temperature & Humidity Sensor [CHT8310] .
    So let's see what we get in the kit. In addition to the sensor, it includes instructions and a strip of double-sided tape.
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    The sensor itself requires two AAA batteries:
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .

    Pairing with HA .
    Normally this sensor works with Tuya, but here I will run it with Home Assistant:
    Home Assistant tutorial - setup, Wi-Fi, MQTT, Zigbee, Tasmota .
    You will need a Zigbee transceiver - I used a CC2531:
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    On the HA side, I use Zigbee2MQTT. I simply allow pairing and press a button on the device as instructed:
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    HA correctly detects the device as TS0201 (TH02Z):
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    Variables provided include battery level (in %), battery voltage (V), temperature and humidity.
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    Interestingly, here we also have control over temperature and humidity calibration. The 'precision' option allows you to specify the number of digits after the dot, it will not improve the actual precision of the reading.
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    That's basically it - the device is ready for operation as soon as it is paired.

    Compare the Zigbee version with the Wi-Fi version .
    Let's compare the construction TH08 with the device from the subject:
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v .
    The version with Wi-Fi is based on the CBU module (BK7231N). In addition it has a coil circuit that looks like an inverter to me. Presumably the Wi-Fi module doesn't want to work very well at low voltages, so the inverter makes sure there's that 3.3V and not less - without it, the voltage drops as the battery discharges.
    The Zigbee version is based on the ZTU module. Both modules have compatible leads and the boards look similar, although here there is no inverter. The Zigbee-based circuit is simpler and therefore more efficient.
    According to Tuya's specifications, the CBU operates at voltages from 3.0 to 3.6V, while the ZTU can operate as high as 1.8V to 3.6V (although a voltage higher than 2.8V is recommended). This also explains the differences in construction.
    Close-up of the TH08 sensor PCB with labeled components and visible solder joints Zigbee ZTU module on a sensor board, with visible electronic components and QR code. Zigbee ZTU module on a PCB with labels and soldered connectors Close-up of Zigbee sensor PCB with labeled components and visible soldering points. Close-up of Zigbee sensor PCB with labeled components and visible soldering points. .
    The sensor itself appears to be the same model in both devices.

    Summary
    There is a reason why Zigbee has a reputation for being a more energy efficient protocol - this is evident even from the design of this device. Additionally, pairing Zigbee with a system running 100% locally is much simpler than with Wi-Fi. You don't even need to change the firmware.
    I believe that the solution shown in the context of battery-powered sensors is much better and also simpler than Wi-Fi. It is rather worth paying more and getting the result faster.
    And what do you think? Do you use sensors on Zigbee? Or do you prefer Wi-Fi and in this context?

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 13078 posts with rating 10840, helped 601 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21725046
    divadiow
    Level 36  
    I have played with quite a few wifi 2xAA battery devices and they are indeed a fiddly pain sometimes, especially if they have TuyaMCU. The general feeling from user posts I think is that battery life, even with powersave and deep sleep, is a concern with wifi variants - depending on the frequency of wake-up for check-in of course.

    Added after 12 [minutes]:

    do these things have a log out like CBU? Can the firmware be read to file?
  • #3 21725071
    p.kaczmarek2
    Moderator Smart Home
    ZTU pinout:
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v
    15B1I/OUart_TXD, which corresponds to B1 (Pin 6) of IC
    16B7I/OUart_RXD, which corresponds to B7 (Pin 17) of IC


    I didn't try doing ZTE flash dump yet, but I tried with other Zigbee chip - BL702 - and it worked well.

    Dev board:
    https://developer.tuya.com/en/docs/iot/tuya-sandwich-ZigBee-soc-board-ztu-V2?id=Kby6arczjimaf
    Which battery-operated temperature and humidity sensor for HA? Zigbee TH08Z-B, comparison to Wi-Fi v
    TYDE5-ZTU dev board with UART and interface pins labeled
    Block diagram of ZTU board showing UART RXD and TXD pin connections
    Helpful post? Buy me a coffee.
📢 Listen (AI):
ADVERTISEMENT