-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update devices/tuya.ts #8383
Update devices/tuya.ts #8383
Conversation
New equipment GX04
Update tuya.ts
Add a new device GX04
Update tuya.ts
src/devices/tuya.ts
Outdated
@@ -13124,6 +13124,25 @@ const definitions: DefinitionWithExtend[] = [ | |||
], | |||
}, | |||
}, | |||
{ | |||
fingerprint: tuya.fingerprint('TS0601', ['_TZE284_nhgdf6qr']), |
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.
Since the definition is the same, could you add this to the TS0601_soil
definition and use tuya.whitelabel
for correct detections (search in this file for some examples)
Hello. I noticed that they indeed have the same definition. However, the brand and model are different, and the product appearance also varies. I was wondering if it could be treated as a new product? Or is there another way to map TZE284_nhgdf6qr to the correct image, brand, and model?
| |
GIEX-CINLIN-RAUL
|
|
***@***.***
|
---- Replied Message ----
| From | Koen ***@***.***> |
| Date | 11/27/2024 15:14 |
| To | ***@***.***> |
| Cc | ***@***.***> ,
***@***.***> |
| Subject | Re: [Koenkk/zigbee-herdsman-converters] Update devices/tuya.ts (PR #8383) |
@Koenkk commented on this pull request.
In src/devices/tuya.ts:
@@ -13124,6 +13124,25 @@ const definitions: DefinitionWithExtend[] = [
],
},
},
+ {
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE284_nhgdf6qr']),
Since the definition is the same, could you add this to the TS0601_soil definition and use tuya.whitelabel for correct detections (search in this file for some examples)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This exactly the usecase for
|
Okay, I understand. I will modify it. |
Hello, I have added the code for the new device GX04 at line 2158 according to your guidance, and I have also added the new device GX03 at the end. Please review it. |
@@ -2155,6 +2155,7 @@ const definitions: DefinitionWithExtend[] = [ | |||
[15, 'battery', tuya.valueConverter.raw], | |||
], | |||
}, | |||
whiteLabel: [tuya.whitelabel('GIEX', 'GX04', 'Soil Moisture Sensor', ['_TZE284_nhgdf6qr'])], |
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.
Also update fingerprint: tuya.fingerprint('TS0601', ['_TZE284_aao3yzhs']),
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Thanks |
Thanks! |
Add a new device GX04