-
Notifications
You must be signed in to change notification settings - Fork 3k
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 basic support for ZigDC #7686
Conversation
src/devices/xyzroe.ts
Outdated
@@ -54,6 +67,22 @@ function getSortedList(source: { [key: string]: number }): string[] { | |||
return result; | |||
} | |||
|
|||
const getKey = (object: { [key: string]: number }, value: number) => { |
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.
Use utils.getKey
instead
src/devices/xyzroe.ts
Outdated
@@ -33,6 +33,19 @@ const bindCommandList = { | |||
'recall_scene_5': 0x0B, | |||
}; | |||
|
|||
const switchTypesList = { | |||
'switch': 0x00, | |||
'single click': 0x01, |
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.
'single click': 0x01, | |
'single_click': 0x01, |
src/devices/xyzroe.ts
Outdated
const switchTypesList = { | ||
'switch': 0x00, | ||
'single click': 0x01, | ||
'multi-click': 0x02, |
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.
'multi-click': 0x02, | |
'multi_click': 0x02, |
src/devices/xyzroe.ts
Outdated
'switch': 0x00, | ||
'single click': 0x01, | ||
'multi-click': 0x02, | ||
'reset to defaults': 0xff, |
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.
'reset to defaults': 0xff, | |
'reset_to_defaults': 0xff, |
It seems like everything has been fixed. Thank you! |
Thanks! Could you also submit a picture for the docs? This can be done by:
Make sure that:
|
Add basic support for ZigDC - Zigbee 6ch DC power meter