-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Linkind Keypad ZS130000078 #6242
Comments
Seems like the zip file is not uploaded properly. So here it is again. Oh and about zigbee herdsmann debug here is capture as well. Received Zigbee message from '0x680ae2fffee56c49', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryPercentageRemaining":200}' from endpoint 1 with groupID null and it doesn't find a converter for Panelstatus: Received Zigbee message from '0x680ae2fffee56c49', type 'commandGetPanelStatus', cluster 'ssIasAce', data '{}' from endpoint 1 with groupID null |
I try to configure the same device, and went a little bit further. A captured the communication between the original hub and keypad. The command "7" is the "getPanelStatus". Then the hub after an ack message sent back to the keypad a response: The command "5" is the "getPanelStatusRsp" with the payload "00 00 00 00". I believe the keypad is waits for this response, but i don't know, how to write this into the tozigbee part.
A put this code to the js: `const ias_panel_status = {
};` I don't know this is necessary or just hide the error about no converter. I can send the full capture with the key in private, if you think it is help. |
Hi kloodhu, That was a scenario ( panel wake up by proximity) I didn't look into, but mine only produces this after interviewing. Anyways, it still does not explain what happens after the hub is synced with the keypad. I'm unable to register a single line after it. Can you reach out anything related to arm or disarm? @Koenkk or @goodwin or anyone of the mighty Gods of Z2M, based on the info we provided, can you give us a hint? |
The |
The panelstatus is the same at my side as well, but I think it's not the main issue that we don't manage to get the panelstatus converted. Do you know how to find out where does the communication flow now? |
@kloodhu is there any progress at your side? |
@Koenkk Can you tell me please what does this mean below? I got this when the hub and the keypad are connected and I replace the batteries. |
Any chance that someone would answer my question? I mean it is a great product and easily accessible across Europe. I'm sure if we could integrate this keypad many would benefit from it. |
This issue 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 |
Hello, I would like to resurrect this topic. And make some further progress with some help from someone, who knows what has to be done. I started from the OP's code, which had a typo, and I managed to reach some success, but I am confused and stuck. So this is the OP's code with some minor changes, if you use it as an external converter. But unfortunately it is not working due to the onEvent's panelStatus part.
But if I remove some of it and hardcode the panelStatus, the panel wakes up and accept codes.
Indeed the panel starts to accept codes, when { "arm_mode": { "mode": "disarm" } } like messages are passed to it with the non-hardcoded values as well, but I am not fully convinced what is the logic behind this panel, or how it really should work. If someone has a better understanding how the panel should work, and what are the messages which should be passed from the coordinator to the panel when wakes up, that would make development a bit easier. So far looks like, once awakes, it needs a panelStatus/armMode, in response to commandGetPanelStatus, but I don't know what is stored under panelStatus, as I cannot see it anywhere. @Koenkk, could you re-open this issue please, and if you have any input, that would be appreciated. |
It really looks like, when paired a panelStatus 0x00 has to be sent first. |
The device is working almost perfect with ZHA now. |
Can you share some details what do you mean "almost"? I will have a look how the code works there. It would be nice to make it work with Z2M as well. Just need to understand the quirks. |
Hi @GSzabados / Szia GSzabados! In fact I just tried ZHA and everything works perfectly (no "almost" for me ), although I have to use a separate Zigbee receiver (CC2531) for that purpose, cause Z2M and ZHA cannot work in parallel on the same device. Nevertheless If you can find the right way to get your configuration pulled in, I'd switch back to Z2M with the keypads. So this issue is still not solved @Koenkk and as I see more users tends to be interested about the product. GSzabados, If I can help with anything please let me know, I have all the means for it now,.(but lack the knowledge :P) |
@HASSHUN, I have a spare CC2531 as well, but I do not want to build another Zigbee network. I have already three of them, Z2M, Hue and SmartThings, and yesterday I redone my Z2M network with a CC2652P dongle after struggling for weeks with another firmware on the dongle. I reflashed to Koenkk's last firmware and re-paired everything. So no intention at the moment to have another for just the keypad. I saw an ongoing PR and issue for the Xfinity keypad which has had the panel status handled in some different way, but that PR hasn't been fully merged. Koenkk/zigbee-herdsman-converters#1873 I really need some help to understand what messages are passed to the device and what it is sending to the coordinator. And how to output that to a log. I turned on herdsman logging and debug for Z2M, but that didn't provide enough information. I would love to get some information how I can add some debug to the external converter. @Koenkk can you advise on that please? |
@GSzabados. I have a sniffer set , I'll look it up tomorrow morning what's happening through ZHA. |
@Koenkk, Never mind, I just realized, that the zigbee-herdsman debug is working, but it outputs only to the log (file), but not to the web interface's Log view. I think, I have now what I need to look at. :) @HASSHUN, if you can provide some info how the pairing happens and what information ZHA passes to the keypad, when it wakes up, that would be the best. |
Actually, I have to correct myself. I see it in the Supervisor 's Add-ons' Log Tab, but I cannot see it in the log of Zigbee2MQTT in /share/zigbee2mqtt/log. Is it logged to file? Or just STDOUT? Or is there any way to save it to file? |
@GSzabados only logged to STDOUT. |
Thanks, then I will try some different way. I have already installed Z2M on a Windows machine a few days ago, just to be able to erase the NVMEM of a CC2652. I will try to do the work with that. |
How is this command should be used on a Windows installation?
I got only this:
|
I should have Google a bit first. If anyone comes along here to find it, the command is this for a Windows environment:
|
Hi @GSzabados , Seems like I've been a bit early stating everything is perfect with ZHA and the keypad. It might be a general ZHA-raspbian issue, but by yesterday the CC2531 dongle had lost its signal and I was unable to repair it ever since then, no matter how I tried ( disabling / removing modem manager, reconfiguring ZHA integration ) . So no luck yet. I'll let you know when I manage to record something. @Koenkk I know it's off-topic here, but I wonder does the CC2531 has newer firmware than the 20201127 one? |
I spoke too soon. After fully re-pairing the device and immediately sending the payload to the original friendly name, without renaming it, it initializes successfully. |
I'm having trouble arming the keypad from the keypad itself. I'm trying to use code "123", so I press Arm Away, then 1 2 3, then the accept button. What it sends to z2m is:
Shouldn't the zone always be Edit: I'm using these automations for the manual alarm panel: https://gist.github.com/evilpie/ce3d7b90b0584202b5efc4fe39d1d663 |
The zone is whatever the manufacturer gives the keypad. In the case of Linkind is 23. You just need to send the appropriate response... See documentation: Also make sure you read that whole section before you jump to doing stuff :) With regards to how to hook this up into HA natively, I do not know because i don't do it myself. @stefangries made this work in his setup and is in the process of writing a "how to" guide for HA. Might be worth keeping an eye open. When this will be ready, it will be included in the z2m documentation too. LE: i suggest you see this working using mqtt only and confirm operation before you jump into HA integration. This way you know where and how to ask for help. You, like many others, have come asking for help but in their process failed to follow the instructions first. Once you do it a few times via mqtt only, then you can plan ahead what else needs to happen between z2m and your automation platform :) have fun with your setup |
Thank you for the pointers, I actually got it working now. I wasn't understanding the action codes in the gist correctly. 9998 and 9999 are actually pin codes I have to replace with mine. |
Personally I would suggest keeping it simple and using the same code for all operations. Then you just compare the code inputed with the one you expect, and decide if it is valid or not. If it is valid you need to send 2 commands, 1 to confirm the operation to the keypad, and another to actually set the arm_mode (that may be disarm, exit_delay etc) If it is invalid you need to send 1 single command with an arm_mode of invalid_code. All possible values are described in the documentation I have mentioned above |
Hi, can I have a bit of help? |
This behavior is correct and normal. Doing this while the keypad is blinking green solves the issue: |
Hi there, I've made a custom hass component for the supported devices, to get rid of the automations. Basically the I extended the If you're interested, please take a look: https://github.com/kvj/hass_transaction_alarm_panel |
@stefangries also created a blueprint a while ago for this device. The link was posted as part of a different thread where we discussed some of the limitations and recurring questions. https://community.home-assistant.io/t/zigbee2mqtt-sync-keypad-and-alarm-control-panel-states/345311 |
btw, I think it might make more sense to add separate I also found that sending a |
Hi, after several hours of try and error I need some help from an expert? The linkind keypad is paired and from zigbee2mqtt I got the message : Every 3 seconds I receive the following status message: Zigbee2MQTT:info 2021-12-28 18:00:59: MQTT publish: topic 'zigbee2mqtt/0xec1bbdfffe715343', payload '{"ac_status":false,"battery":100,"battery_low":false,"linkquality":123,"occupancy":true,"restore_reports":true,"smoke":false,"supervision_reports":true,"tamper":true,"test":false,"trouble":false,"voltage":3100}' If I type a command on the keypad nothing is send to the MQTT broker. What is necessary to bring the keypad in communication with the server? |
4 comments above |
@robertalexa , ok I dived a bit deeper into the exchanged comments of the topic and got it now to work. I stumpled upon the z2m device description https://www.zigbee2mqtt.io/devices/ZS130000078.html as it's not clear pointed out which mode value has to be published by the server after the device is paired. Imo it would help also other people if the description would have a section 'pairing' or 'setup' where this would be described more in depth. The description of 'Arming/Disarming from the server' needs to be revised as the Linkind Keypad ZS130000078 does not support the 'arm_night_zones' mode (only 'arm_day_zones' and 'arm_all_zones'). |
Glad it is all good. The values specified are all the available values as per ZCL standard and not just device specific. So it would be a case of figuring out what works for it. The reason is because when i have reviewed the whole code for alarms i only had the hive keypad, so i could not verify each device individually. With testing, people that own certain devices can confirm what values work and then submit PRs to remove them As to better instructions after pairing i agree, i will try to find some time to put something together. |
I've had the same pairing issues as described above, finally got my unit paired after reading this conversation.
Pressing panic produces the following logs
Do i still have to do something to make the arm/disarm produce a mqtt message? |
Hi, anyone else had problems with version 1.22.2-1? After upgrading I didn't received messages with the action and the action code included so I couldn't change states via the keypad. Pressing the SOS button did trigger the panic action. Luckily downgrading to 1.22.0-3 brought the previous behavior back. I couldn't find any comments in the changelog that this device has got some updates in the current version. Anyways I am curious if it worked for you. |
I do not own any keypads anymore but this situation rings a bell. If i remember correctly and it might have been @stefangries who discovered it , upon updating the server, in this case z2m, it loses the variable (which is in memory) of the alarm status. That being said after updating z2m you need to set the alarm state via mqtt command. See documentation about setting from server. Once doing that the keypad geta informed of the current status of the alarm and behaves as expected. PS. It might also be lost when restarting z2m, for some reason i dont remember. But you could create an automation that listens for z2m restart, see documentation for the message, and when that is received you set the alarm status to its previous state LE: yes it does reset after restart. Here is the comment #6242 (comment) LE2: here is confirmation of when it needs to be re-set manually: #8997 (comment) And here is how to handle the automation to set the status on restart without manual intervention: |
@robertalexa Thank you for your answer and the links. I am not sure that it is one of the mentioned issues. I use Node-Red to listen on the occupancy wake up messages from the keypad and answer them with the current state from the home assistant alarm. So it actually got the correct state and also displayed it. In the mqtt history I used to get 3 messages when I change state
After the update the keypad did send only the first message. Which seems odd so I think z2m probably didn't processed messages 2 and 3 correctly. |
I'm experiencing the same behaviour. |
@53RT Oh i might have misunderstood your situation :) Are you by any chance using "debounce"? I know there was some work done recently on this but I am not familiar with the details nor the outcome. I will have a look and see if there were any changes to the files involved in alarms, and see what i find. |
|
|
@stefangries good to have someone confirming that I am not the only one having this issue :-) @robertalexa the debounce field in the settings section of the keypad device is empty. But I cannot say if the update to |
Hey all, Seems like this has already been raised and resolved, and the fix will come as part of 1 February release. Personally I would suggest you have a test with the dev branch, and if you spot any unexpected behaviour leave your thoughts on that thread |
The edge version works for me. Thanks for the hint @robertalexa ! |
Sorry, just realized it's closed. Moved to discussions: #11453 (comment) |
Hi, i have a problem with this keypad. after pairing no problem everything works fine but after a few minutes the keypad loose config ? the action button doesn't blink when a touch them or activate the keypad by proximity. so i 'm not able to input the code. |
I'd like to ask you to help me integrating this keypad to the database. I planned to calibrate it to my alarm_control_panel, so make it able to follow commands like arm_away, arm_home and disarm.
First let's start with the configuration, cause that also can contain mistakes:
For examples, I used Xfinity and 3400-D keypads' inputs cause they looked similar (except for the fact that they are standalone devices). Here is my conf in device.js [1.17.1 (99274c7)]
I managed to get it interviewed succesfully, but the keypad only communicates to my Conbee II device if it's not connected to the Siren hub. Once it is connected, the traffic just disappears ( probably switches channel or endpoint? ).
Payloads like arm or disarm also can only be commited when it's connected.
All I can sniff is what happens between resetting the keypad and connecting to the hub. (see attached, filtered capture from Wireshark)
This issue seems very similar to Goodwin's case in #6174 with the Iris keypad. I'm trying to switch channels to be able to catch some communication between the keypad and the hub.
Any ideas or hints are welcome!
Information about the device + link
https://zigbeealliance.org/zigbee_products/linkind-keypad/
The device has a hub and it is only available in a kit.
https://www.linkind.com/product/smart-home-security-system-kit-ring-alarm/
data/database.db entry of the device
..
The text was updated successfully, but these errors were encountered: