Skip to content

Commit

Permalink
fix(detect): Detect _TZE200_s1xgth2u as TuYa TS0601_temperature_hum…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 8, 2024
1 parent 3b4f165 commit d1df40d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ const definitions: Definition[] = [
{modelID: 'TS0601', manufacturerName: '_TZE200_bjawzodf'},
{modelID: 'TS0601', manufacturerName: '_TZE200_qyflbnbj'},
{modelID: 'TS0601', manufacturerName: '_TZE200_vs0skpuc'},
{modelID: 'TS0601', manufacturerName: '_TZE200_s1xgth2u'},
{modelID: 'TS0601', manufacturerName: '_TZE200_44af8vyi'},
{modelID: 'TS0601', manufacturerName: '_TZE200_zl1kmjqx'}],
model: 'TS0601_temperature_humidity_sensor_1',
Expand Down

5 comments on commit d1df40d

@vivalton
Copy link
Contributor

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

@vivalton
Copy link
Contributor

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.

@vivalton
Copy link
Contributor

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

@Koenkk
Copy link
Owner Author

@Koenkk Koenkk commented on d1df40d May 9, 2024

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/

@vivalton
Copy link
Contributor

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.

Please sign in to comment.