logo elektroda
logo elektroda
X
logo elektroda

Tuya TYTE-D1 Smart Switch: Relay Works, Temperature Sensor find

marcolueck1976 4137 39
ADVERTISEMENT
  • #31 21445968
    akm97
    Level 12  
    Gentlemen an interesting topic, but me from a different angle. I own such a fully working sensor. Although the load capacity of the relay is 3kW, it is only 1 KW with the heater. It is with such a heater that I use it, or rather try it. And so sometimes, when the heater just happens to have an intake of less than 1 kW, it is OK, but other times, when it exceeds this value, it disconnects the relay after about 5 seconds. Is it possible to increase its "load capacity" by 10%?
  • ADVERTISEMENT
  • #32 21501442
    ok2vuv
    Level 9  
    >>21379314 Driver for DS18B20 starts with this key startDriver DS1820 by inserting it into Config and Execute Custom Command. To start after startup, insert into Configure Startup a startup command as well as startDriver NTP and ntp_timeZoneOfs 2
    I just can't get the temperature into MQTT and Home Assistant.
    Please help.
    Radek
    Screenshot with data on energy and temperature of a device.
  • ADVERTISEMENT
  • #33 21687944
    buenogy
    Level 4  
    Hello ok2vuv,
    Have you found a solution to publish temperature on MQTT and HA?
  • ADVERTISEMENT
  • #34 21688767
    ok2vuv
    Level 9  
    >>21687944 Not yet, but I haven’t looked very thoroughly. I’m also not a complete IT specialist…
  • ADVERTISEMENT
  • #35 21688949
    max4elektroda
    Level 21  
    You can configure the channel to hold the temperature in the second field after the pin for DS1820_IO on the config page.
    In the screenshot I see you configured channel 2 - channel 2 has (temperature * 100) = 2468 there.
    I'm not sure, but isn't this channel published on every change of channel = change of temperature?
  • #36 21689000
    buenogy
    Level 4  
    >>21688949 Thanks max4electroda.
    Yes, I found that but it's possible to publish only the channel 2 because I can publish it with all MQTT channels. Not only the number 2. What's the command for that?
  • Helpful post
    #37 21689034
    max4elektroda
    Level 21  
    I'm not really fit in MQTT / HA.
    I just tired here and looks like if you set the "channel type" for the channel with temperature value to "Temperature_div100" (like her in Web App on "Config" page)


    Screenshot of pin and channel configuration with DS18B20 sensor highlighted

    then in HA a new (separate) temperature for the same device is shown (after starting a new "HA Discovery" on OBK):

    Diagnostic panel of W800 device with network data and temperature reading

    If you edit your device entities, you can add a second "Temperature" (there will be two, check out which one is chip internal and which DS1820 - for me it was the one without "_2"):

    Entity card configuration titled W800_Testing showing five listed entities
  • #38 21689039
    buenogy
    Level 4  
    Thanks for your help.

    I will test it.

    Added after 20 [minutes]:

    >>21689039 >>21689034

    Work Very Well !!!

    Thanks
  • #39 21689056
    max4elektroda
    Level 21  
    buenogy wrote:
    Work Verry Well !!!

    Great!

    If you configure channel type, the temperature will also appear a third time on OBK main Page (beside the drivers value and the channels value) as "Temperature <value> (<channel>)"


    Screenshot of OpenW800 interface showing temperature and system status

    BTW: You don't need Web App to configure channel, it can also be configured with the command (e.g. in "Execute Custom Command)

    setChannelType 2 Temperature_div100
  • #40 21689460
    ok2vuv
    Level 9  
    >>21688949 Thank you very much, it works. The temperature is in HA.

Topic summary

The discussion centers on the Tuya TYTE-D1 smart switch featuring a BK7231N chip and an external DS18B20 temperature sensor connected via a 3.5mm jack. The relay and power measurement functions operate correctly, but temperature readings are initially unavailable due to missing driver support. GPIO 26 is identified as the One-Wire data pin for the DS18B20 sensor. Community members have been developing and porting a DS18B20 driver for the OpenBeken firmware, with progress including pull requests and testing on the CB3S board variant. The One-Wire protocol characteristics and sensor clone identification (Sensylink CT1820B) were discussed. Users seek guidance on enabling temperature reporting to MQTT and Home Assistant, with suggestions to start the DS1820 driver via custom commands and configure startup scripts. Additional features like relay state retention after power failure were queried, with configuration options suggested. Some users report partial success with the driver on GPIO 26, while others face issues with driver activation and temperature data publishing. The relay's load capacity and behavior under varying heater loads were also discussed. The latest OpenBeken builds include a DS18B20 driver and device template for TYTE-D1, facilitating integration of temperature sensing alongside relay control and power monitoring.
Summary generated by the language model.
ADVERTISEMENT