Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add _TZE200_bcusnqt8 whiteLabel mapping #6228

Merged
merged 4 commits into from
Oct 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5337,7 +5337,7 @@ const definitions: Definition[] = [
],
},
{
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_bcusnqt8'}],
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_bcusnqt8']),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this device has only 1 model/fingerprint, I propose to update the vendor and model instead (and remove the whitelabel)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sens. I don't know if this device is sold by another brand. Should I push a new PR with the change or you update directly on the main ? Thanks

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just update this directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, sorry I didn't know I can update the PR. Thanks

model: 'SPM01',
vendor: 'TuYa',
description: 'Smart energy monitor for 1P+N system',
Expand Down Expand Up @@ -5368,6 +5368,9 @@ const definitions: Definition[] = [
// [9,'',tuya.valueConverter.raw] // Unknown / datatype=5 (bitmap)
],
},
whiteLabel: [
tuya.whitelabel('Yagusmart', 'SPM01-D2TZ', 'Smart Energy Sensors', ['_TZE200_bcusnqt8']),
],
},
{
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE204_ves1ycwx'}, {modelID: 'TS0601', manufacturerName: '_TZE200_ves1ycwx'}],
Expand Down