Closed max3163 closed 1 year ago
Assuming this is your device manual, then the switch you reference is this one:
The Switch Binary Command Class is used to enable or disable the notification sound. This sound is typically used to notify a user when the alarm system is being activated. See also the ‘Sound Notification’ section.
which has nothing to do with what you're trying to do.
Keypad unlock notifications should be mapped to values of either the Lock CC or the Door Lock CC. Unfortunately, I cannot see this in your log, since it is not on loglevel debug as requested.
Uhhhh - there's no (Door) Lock CC to map these events to.
So you'll have to implement something with MQTT discovery, but that's not a driver issue, but zwave-js UI. I'll transfer the issue. @robertsLando should be able to give you some pointers.
@max3163 Like you said in this comment you should try to create a custom component for that, once you have identified the topic where the notification is sent that based on what you said should be
domoticz/Entrée/Zipato_RFID_Clavier/113/0/Access_Control/Keypad_unlock_operation
But I use domoticz and not Home Assistant... it will work too ? I'm not sure to understand what I need to do exactly when I read the documentation ...
I don't know how/if domoticz allows to create custom components, you need to ask devs for that. Anyway as long as there are mqtt messages for that event you should be able to catch them on domoticz and show a wisdget for it.
I could also try to implement in on MQTT discovery side but I would need you to be able to test it locally. Are you able to do so?
I need to know what kind of mqtt discovery device you wish to use for it too
On hass integration side they mapped notification in this way: https://github.com/home-assistant/core/blob/dev/homeassistant/components/zwave_js/binary_sensor.py#L75
Following https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/notifications.json
The same should be done on discoverValue function here: https://github.com/zwave-js/zwave-js-ui/blob/master/lib/Gateway.ts#L1223
@robertsLando HA does not map any notification events to switches (binary switch). Also, the Z-Wave JS Notifications are events in HA, not sensors, see for this exact case: https://www.home-assistant.io/integrations/zwave_js/#node-events-notification.
The code you've linked to is mapping Notification value updates to binary sensors (not switches).
@kpine Thanks for the clarification, as you know I'm not an HA user, could you suggest me the best way to integrate notifications using MQTT discovery? Can I create events using mqtt discovery or something similar?
I don't use MQTT discovery so I'm probably not qualified to answer. I did look at the docs and don't see anything like an "event" being supported. I think that depends on what type of device the discovery categorizes it as. E.g. an MQTT Lock has different configuration and features than an MQTT Alarm Panel.
I admit, I'm totally lost... What I need to do exactly ? Ask on the domoticz side ? Wait for more details?
@max3163 You could ask to domoticx devs if there is a way to show a widget or else from a packet you receive from mqtt.
The other solution could be to wait if I find a way to implement such thing on zui but I cannot say if I will do this soon
As I understand from the Domoticz side, it's impossible to have a device without config object and Ass I understand on you side it's not the case with event ?
So I just need to resell my Zipato RFID keypad...
Nope at least until someone (or me) find some time to implement this. ATM I have no device with this and I even don't use domoticz so it's difficult for me to test.
I've written a little program in Go to parse the "/AccessControl/Keypad(un)lock_operation" topics and push on the "Zipato_RFID_Clavier/37/0/targetValue/set" topic the corresponding state.
It works, so I will close the issue even if the source of the problem persistent.
Is your problem within Home Assistant (Core or Z-Wave JS Integration)?
NO, my problem is NOT within Home Assistant or the ZWave JS integration
Is your problem within Z-Wave JS UI (formerly ZwaveJS2MQTT)?
NO, my problem is NOT within Z-Wave JS UI
Checklist
[X] I have checked the troubleshooting section and my problem is not described there.
[X] I have read the changelog and my problem was not mentioned there.
Describe the bug
The Switch is never updated when I arm or disarm my ZIPATO keypad device. Nothing is updated on any switch remote to my Domoticz system too.
In fact, when I switch home or away in the tag reader just an event/notification is fire :
But the switch remain not updated...
Is-it possible to add/update a switch corresponding to the Access_Control event for Keypad_unlock_operation/Keypad_lock_operation event?
On MQTT log :
Device information
How are you using
node-zwave-js
?zwave-js-ui
(formerlyzwavejs2mqtt
) Docker image (latest)zwave-js-ui
(formerlyzwavejs2mqtt
) Docker image (dev)zwave-js-ui
(formerlyzwavejs2mqtt
) Docker manually built (please specify branches)ioBroker.zwave2
adapter (please specify version)HomeAssistant zwave_js
integration (please specify version)pkg
node-red-contrib-zwave-js
(please specify version, double click node to find out)Which branches or versions?
2023-01-22T10:39:28.782Z DRIVER version 10.3.1 2023-01-22T10:39:28.783Z DRIVER
2023-01-22T10:39:28.805Z CONFIG version 10.3.1
Did you change anything?
no
If yes, what did you change?
No response
Did this work before?
Don't know, this is a new device
If yes, where did it work?
When I used the OpenZwave lib with domoticz it worked well.
Attach Driver Logfile
zwavejs_2023-01-22.log