-
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
Added support for xfinity uei xhk1 ue #1873
Added support for xfinity uei xhk1 ue #1873
Conversation
Added Panel Status Enumeration as per Table 8-16 of the ZigBee Cluster Library Specification. Also added additonal 2 enumerations for armmode as per table 8-15
converters/toZigbee.js
Outdated
key: ['set_status'], | ||
convertSet: async (entity, key, value, meta) => { | ||
const panelStatus = utils.getKeyByValue(common.panStat, value.panelstatus, undefined); | ||
const secondsRemain = value.secondsremain = 0; |
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've never seen this syntax before, what does it do?
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.
This one set's the indicator LED's and the beeping tones for the keypad. It's different to arm mode which is simply keeps the keypad mode in sync with the server mode but doesn't actually change any indications on the panel
converters/toZigbee.js
Outdated
set_status: { | ||
key: ['set_status'], | ||
convertSet: async (entity, key, value, meta) => { | ||
const panelStatus = utils.getKeyByValue(common.panStat, value.panelstatus, undefined); |
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.
Please make everything in value snake case, e.g. panelStatus
-> panel_status
.
This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
@Koenkk @dettrick When will this be merged? I'm trying to merge this with the dev version of zigbee2mqtt and can't get it to work as it should. [EDIT]: As far as i can see the merge is incompatible because of the common.js. Some of the code has moved to /lib/constants.js |
Ok not sure how to close this one out now. Can someone please help |
@dettrick I'm sorry to bother you but i have some changes for your code but since i can't get it to work on dev right now because of troubles on my setup(i think) maybe you can take a look at it and get you on track faster? In devices.js: Must be: The changes you made to common.js must now be done in constants.js The set_status must be ..i think..from:
|
Thanks i've added this to the new PR |
The PR isn't done yet so that's why i will post my findings here. I'll hope you don't mind and i hop it's usefull Another fix: Currently on the last dev version i get this error when i try to set the status through MQTT: I can't figure out what's wrong but maybe you can! zigbee2mqtt version: current dev |
I have look all along what @dettrick has proposed, and I think that the arm_mode and panel_status should have been separated as he suggested. There is a decent overlap between the two, but they are not the same. I know there is a bit quirky solution to fix this outside of Z2M as after sending the 'exit_delay' the last arm mode has to be resent as well. But @dettrick's suggested way was providing a full solution for panel status and arm mode. |
Would love for this to be implemented. There is also a difference when the keypad is used with ZHA. In ZHA when pushing one of the zone buttons: the zone selected lights up. So when typing in the code, you know what zone is going to be activated. I don't know how they do it in zha because in the mqtt messages in Z2M I'm unable to get the zone status before the arming code has been typed in. When I first go to the keypad the following message gets send:
Then when I have selected the zone and entered the code, this gets send.
So I wonder how they intercept the zone option. Would anyone know? When sending the the entry or exit_delay mode I'm unable to stop it from beeping. The only way to stop the keypad from beeping is sending a disarm code. That is something I don't want when the keypad is arming. |
No description provided.