-
-
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
[Problem]: Keypad dis/arm mqtt messages are empty #10504
Comments
Same Problem here. |
Same here |
Did an attempt to fix it, please let me know if it works Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
Hi Koen, can you guide me in how to test this? |
@ikke-zelf switch to the edge version (uninstall normal, install edge (no repairing required)) |
Just installed the edge version.
{"action":"arm_day_zones","action_code":"1234","action_transaction":27,"action_zone":23,"battery":100,"battery_low":false,"contact":true,"linkquality":15,"occupancy":true,"presence":null,"tamper":false,"temperature":15,"voltage":6100}
{"action":"disarm","action_code":"1234","action_transaction":30,"action_zone":23,"battery":100,"battery_low":false,"contact":true,"linkquality":15,"occupancy":true,"presence":null,"tamper":false,"temperature":15,"voltage":6100}
{"warning":{"duration":0,"mode":"stop","strobe":false}} I will now go back to the dev/naster version and test if the messages come in twice as well and to verify if the 'warning' message appears in that release also. |
@ikke-zelf that is expected when the home assistant integration is enabled. https://www.zigbee2mqtt.io/guide/faq/#why-is-the-action-property-always-empty |
okay, didn't knew that. are you going to put it in the next release (and if so, is that every month or...) |
The fix will be included on the next release on 1 February. |
I've improved the fix a bit, can you guys check if it still works correctly on the latest-dev? |
Hi Koen, I installed and checked and all seems to be oke and working as far as I can see. |
@ikke-zelf - can you share your node red code please? I'm pulling my hair out, having bought 3 keypads. I can arm and disarm from the keypads (using a blueprint and Alarmo), but no status is shown on the keypad itself. cc: @Koenkk - please help with the keypad state status color |
@kbgators the issue/solution is that you need to send the code somewhat the same twice.
|
@ikke-zelf - Thank you for replying! I might be doing something wrong. Here is the Automation I just used: and this is the JSON in Node Red for the service mqtt.publish: |
[{"id":"e797c1b28720f32d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"0aea3fed5e5d3cec","type":"link in","z":"e797c1b28720f32d","name":"link_in_Keypads","links":["2e0c14ead2f1acbf","32fe0534ab3ad8e3","8d7d29d68c686f38","c6f9cf46803e1bfc","c71f42bf7e80e94f","e495f7cdc914bad7","f9139445cfa31234"],"x":685,"y":400,"wires":[["6a4a96b0b85bb71b","042c9cb5f4e82253"]]},{"id":"042c9cb5f4e82253","type":"mqtt out","z":"e797c1b28720f32d","name":"mqtt_KeypadBoven","topic":"zigbee2mqtt/Keypad_Boven/set","qos":"2","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"a7e95831.3143b8","x":840,"y":420,"wires":[]},{"id":"6a4a96b0b85bb71b","type":"debug","z":"e797c1b28720f32d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1120,"y":500,"wires":[]},{"id":"4b5b1f70ea657776","type":"api-call-service","z":"e797c1b28720f32d","name":"SetArmMode","server":"6d000dde.3e0b04","version":5,"debugenabled":true,"domain":"input_text","service":"set_value","areaId":[],"deviceId":[],"entityId":["input_text.armstatus"],"data":"{"value":msg.payload.arm_mode.mode}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":820,"y":520,"wires":[[]]},{"id":"3752a03f1afb6954","type":"comment","z":"e797c1b28720f32d","name":"Set arm mode in HA","info":"","x":840,"y":482,"wires":[]},{"id":"e30b4e59cee711b7","type":"comment","z":"e797c1b28720f32d","name":"Send Status and Mode to Keypads","info":"","x":800,"y":340,"wires":[]},{"id":"9ec944e9571693c7","type":"template","z":"e797c1b28720f32d","name":"Arm night zones pre","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n "arm_mode": {\n "mode": "arm_night_zones",\n "transaction": 23\n }\n}","output":"json","x":110,"y":260,"wires":[["f561248959f7bff7","2e0c14ead2f1acbf"]]},{"id":"f561248959f7bff7","type":"template","z":"e797c1b28720f32d","name":"Arm night zones","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n "arm_mode": {\n "mode": "arm_night_zones"\n }\n}","output":"json","x":330,"y":300,"wires":[["2e0c14ead2f1acbf","5b0e9117ce101193"]]},{"id":"2e0c14ead2f1acbf","type":"link out","z":"e797c1b28720f32d","name":"send_ArmNightZones","mode":"link","links":["0aea3fed5e5d3cec"],"x":525,"y":260,"wires":[]},{"id":"5b0e9117ce101193","type":"link out","z":"e797c1b28720f32d","name":"ArmMode HA","links":["9977f5fae431ff37"],"x":585,"y":300,"wires":[]},{"id":"c8b47707ae3ec2de","type":"comment","z":"e797c1b28720f32d","name":"Debugging","info":"","x":1110,"y":460,"wires":[]},{"id":"9977f5fae431ff37","type":"link in","z":"e797c1b28720f32d","name":"link_in_HomeAssistant","links":["128eeedbaffb2293","3708c4bd2da32d55","3c647a3d41b3a454","74a3e38daf61e633","86c376fc4ce311d3","5b0e9117ce101193","b4e9383f07ba06f0"],"x":685,"y":520,"wires":[["4b5b1f70ea657776"]]},{"id":"7397cedf181d5211","type":"comment","z":"e797c1b28720f32d","name":"MQTT link","info":"","x":500,"y":220,"wires":[]},{"id":"d7101c760ca4a16c","type":"comment","z":"e797c1b28720f32d","name":"Set Status and Modes","info":"","x":120,"y":200,"wires":[]},{"id":"d8485bfd0aeda5c7","type":"comment","z":"e797c1b28720f32d","name":"ArmMode link","info":"","x":630,"y":260,"wires":[]},{"id":"a7e95831.3143b8","type":"mqtt-broker","name":"MasterPi","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"6d000dde.3e0b04","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}] |
@kbgators can you do something with the exported json for one state ? |
Not sure of your question @ikke-zelf. Can you explain? |
[ |
@kbgators try that one (first one was 'compact'. this one 'formatted') |
@ikke-zelf - sorry. Same error. I assume you want me to import that into node red? |
and l ike this? |
|
probably this is better.... the damn editor removes a backslash in front of the v for value |
@kbgators which keypad device do you actually have? there are different versions |
@ikke-zelf - This device. It shows 3400 on the back. When I paired it in Z2M, it calls it 3400-D Thanks for continuing to help! |
Then most likely that's the issue. |
How did you manage to pair the device to z2m? |
For some reason, the sonoff dongle P does not pick up the keypad to connect. |
What happened?
Since last update (1.22.2), my XHK1-EU keypad doesn't react to arming / disarming commands.
MQTT messages are empty. No action, action_code, action_transaction, action_zone.
What did you expect to happen?
Fill action, action_code, action_transaction and action_zone like in 1.22.1
How to reproduce it (minimal and precise)
Update to 1.22.2 and enter a code on the keypad.
Zigbee2MQTT version
1.22.2
Adapter firmware version
20210120
Adapter
Electrolama zzh
Debug log
1.22.1 logs :
log_1.22.1.txt
1.22.2 logs :
log_1.22.2.txt
The text was updated successfully, but these errors were encountered: