Tasmota support for Sonoff TH Elite + WTS01 Waterproof Temperature Sensor #19373
-
Quick general question surrounding the Sonoff TH Elite and the WTS01 (Successor to the DS18B20), has anyone managed to get this working with Tasmota yet? I think the answer is likely no, but I'll be following up with a tear down of the new sensor shortly. I've tried using the various sensor configurations when configuring the Tasmota module including the DS18x20, but to no avail. Following on from a discussion started on discord, starting this thread with the of idea of getting it working by the end, I'll try my best to diagnose it and resolve it myself but might need some pointers on direction and best approach etc. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 44 replies
-
For context, the question of supporting WTS01 was also raised here, without getting to a conclusion. #15856 (comment) And on Discord, where it got to effectively being an enhancement suggestion. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What you could have done is running this script:
to find if there is a setting resulting in valid data. In the past I ran this with below excerpt:
Resulting in a stable output using command |
Beta Was this translation helpful? Give feedback.
-
As a related question - I just bought a TH Elite20 with what is labelled as the DS18B20 Waterproof temperature cable. I want to connect a much longer "regular" water DS18B20 cable. What is the pinout from a regular DS18B20 into the RJ9 port? |
Beta Was this translation helpful? Give feedback.
-
Is there any news on whether this request will be implemented and, if so, approximately when this will be the case? Background: Should I wait and see or look for an alternative solution 😉 |
Beta Was this translation helpful? Give feedback.
-
I still couldn't read the temperature of the sensor, I only got this result: Has anyone managed to read the sensor using the ESP32? |
Beta Was this translation helpful? Give feedback.
-
I was able to read the temperature, I need to find a way to filter these results. (HEX): 0 (DEC): 0 (HEX): 0 (DEC): 0 (HEX): 57 (DEC): 87 (HEX): 5D (DEC): 93 |
Beta Was this translation helpful? Give feedback.
-
is it possible that the firts two bytes are related to the temperature decimals? |
Beta Was this translation helpful? Give feedback.
-
This was the maximum it can read from the wts01 sensor so far. |
Beta Was this translation helpful? Give feedback.
-
to re-engineer a bit more I guess we need a slow temperature trend over e.g. 10°C with slower than 1 °C/min to see whether the data makes sense as decimal digits... |
Beta Was this translation helpful? Give feedback.
-
Hi; A fixed part of 0x550101040111 and then a byte for the degrees in Celsius, and another two bytes that change
I've played with the last two bytes in several ways, Assuming are a integer, for example in 4BD0, 4B * 256 + D0 / 65536 but the readings show a gap that don't cover totally from 0,0 to 0,9. I've put another DS18B20 beside the WTS01 and its readings from the SonOFF TH are consistent with the readings from the WTS01 in the degrees. From the Berry console I use the next code to test:
|
Beta Was this translation helpful? Give feedback.
-
Well. I've created this driver in the Berry console that seems is working correctly.
|
Beta Was this translation helpful? Give feedback.
-
@HectorDRR Via Autoconfig would imho the best way to provide. Users don't have to do anything to get it working. You can see how it can be achieved from the Autoconfig of the m5stack core2 https://github.com/tasmota/autoconf/tree/main/raw/esp32/M5Stack_Core2 |
Beta Was this translation helpful? Give feedback.
-
Just for your information with latest dev branch it is now possible to configure only
This resembles your output of your initial berry code ;-) |
Beta Was this translation helpful? Give feedback.
-
I don't want to spoil the berry party but since v14.1.0.2 there is a hardcoded solution too:
and presto |
Beta Was this translation helpful? Give feedback.
-
Makes total sense! Thanks!
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: sfromis ***@***.***>
Sent: Wednesday, June 12, 2024 11:37:31 PM
To: arendst/Tasmota ***@***.***>
Cc: Dane Walker ***@***.***>; Comment ***@***.***>
Subject: Re: [arendst/Tasmota] Tasmota support for Sonoff TH Elite + WTS01 Waterproof Temperature Sensor (Discussion #19373)
No, with WTS01 there is no "the" humidity, as that sensor is only for temperature. The sensor is waterproof, so it would be bad if humidity could penetrate the metal tube.
—
Reply to this email directly, view it on GitHub<#19373 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZBWSIYFYXSFGUDLQAQTLNLZHC5RXAVCNFSM6AAAAAA34TCZ3GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONJWGYZTA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the good work on adding the WTS01 sensor in v14.1.0.2. Now i am trying to use this sensor in tasmota rules. What would be the WTS01 equivalent for the following rule? Rule1 Because the following rule does not work: Rule1 |
Beta Was this translation helpful? Give feedback.
-
What i see in the console is: 17:26:27.907 MQT: tele/tasmota_BAAAB8/SENSOR = {"Time":"2024-07-05T17:26:27","WTS01":{"Temperature":50.9},"TempUnit":"C"} So my assumption was that this should work: Rule1 Rule1 ON But the rule does not trigger when the temperature reaches the set point. Probably i misconfigured something? |
Beta Was this translation helpful? Give feedback.
I don't want to spoil the berry party but since v14.1.0.2 there is a hardcoded solution too:
SerBr Rx
SSerialMode 3
onceand presto