Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(detect): Detect
_TZE200_s1xgth2u
as TuYa TS0601_temperature_hum…
…idity_sensor_1 @vivalton Koenkk/zigbee2mqtt#17008
- Loading branch information
d1df40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a look at this, one question: this https://gist.github.com/sakulisko/d6c21dacf1f0e5ed303901519b3abeb4 had
meta: { tuyaDatapoints: [ [2, 'humidity', tuya.valueConverter.raw], [1, 'temperature', tuya.valueConverter.divideBy10], ], },
This is what I see in the logs:
[2024-05-09 08:43:30] debug: z2m: Received Zigbee message from 'TuyaTemperatureHumidityScreen', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,253],"type":"Buffer"},"datatype":2,"dp":1}],"seq":14849}' from endpoint 1 with groupID 0 [2024-05-09 08:43:30] debug: z2m: Received Zigbee message from 'TuyaTemperatureHumidityScreen', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,50],"type":"Buffer"},"datatype":2,"dp":2}],"seq":15105}' from endpoint 1 with groupID 0
And the 253 matches 25.3C and 50 matches the 50% for humidity so should this actually have it's own entry if those converters can't be added to this one?
Also, the time setting for the clock was on the linked gist which I think is not here on this TS0601_temperature_humidity_sensor_1
d1df40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will post a gist later to show what I have once I clean it up a bit.
d1df40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a cleaned version of what I used: https://gist.github.com/vivalton/72c27fe5d30e0d635c8a4a0762219d68
d1df40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vivalton could you make a pull request for this/
d1df40d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I will do one for this next week.