Closed Extreme79 closed 3 years ago
Note that per the comment zwavejs is the secondary controller. I imagine that complicates any troubleshooting...
Okay from cross-reading the other issue, there are several things that need to be done here:
1. The device sends the external switch status as an "unknown" notification which contains the V1 alarm values. We ignore the V1 values for V2+ notifications because the Z-Wave specs say so. However we could just not do this for "unknown" notifications, so this part would be an easy fix.
2. HA doesn't like the "any" metadata for the unknown notification. We don't define any metadata for that event, but I think it's fair to make it a "number" metadata at least.
Actually it's not only the Unknown sensor that has the "any" metadata, all of the Notification values have this. It seems to happen for V2.
What would be the value for the Unknown notification if it's a number? Is it a static value of 254?
all of the Notification values have this. It seems to happen for V2.
Ok, that's https://github.com/zwave-js/node-zwave-js/issues/1899
What would be the value for the Unknown notification if it's a number? Is it a static value of 254?
Yup, it should probably be modeled as an event though, since we cannot know if it is stateful.
Please give v7.7.3 a try
I updated the zwave-js integration to v0.1.25 on home assistant, that bumps zwave js 7.7.3. I rebooted HA. So I tried to re-interview one of zd2102 I own, but unfortunately this seems not solve the main issue. Some new entities was created in home assistant, but not related to the secondary switch.
@AlCalzone Later I'll edit this post with some logs to help you to better understand.
here the list of entities that now HA create after re-interview with new zwave-js release ("porta ingresso" is the node 7 device name):
I attach the silly log got on zwavejs HA integration. In order, I:
I've no sufficient experience in zwave protocol to perfectly understand all the log messages and consequently I can't say if it's the time to come back to HA issue tracker and continue on HA side. silly_log_ZD2102_zwaveJS_latest.txt
Please post the debug logs from a re-interview. The HA side looks OK based on what's now provided (Home Security sensors have valid metadata types), however there are no V1 values. The interview might explain why.
Here the silly log of the new interview, as I posted also in HA issue side. zd2102_new_interview_silly.txt
and here the additional mini-log of a external switch open (starting with main reed already opened) >> external switch close >> main reed close. another_silly_log_zd2102.txt
2021-06-10T19:57:43.498Z DRIVER « [Node 007] [REQ] [ApplicationCommand]
└─[NotificationCCSupportedReport]
supports V1 alarm: false
supported notification types:
· Home Security
The device claims it doesn't support V1 alarms. What a mess of a device.
2021-06-10T19:57:43.498Z DRIVER « [Node 007] [REQ] [ApplicationCommand] └─[NotificationCCSupportedReport] supports V1 alarm: false supported notification types: · Home Security
The device claims it doesn't support V1 alarms. What a mess of a device.
I wrote to vision security to try the ask about the issue, to ask about a new firmware if available, and I sent the links to the gitub issues (hopeing they'll read..). the zd2102 is the unique door sensor I found able to "handle" two inputs within one device.. but as I understand, probably there is a reason if it's the unique...
The device claims it doesn't support V1 alarms
Yet it uses them (╯°□°)╯︵ ┻━┻ Well - I'll remove the condition that a device must support V1 alarm for us to preserve them.
I'll check my zd2102 after the latest release as soon as I come back home from holidays (3july).
Now the main issue seems solved. I have an alarmlevel entity that change from 0 (closed) to 255 (opened). So with that value I can detect my secondary switch. Now another problem seems present (missed entity alarmLevel on re-interviewed devices).. but I have to explore it on ha side, before. Edit: after some reboots and integration reload, the entity appeared and respond correctly to the real switch staus. Seems solved.
Vision zd2102 door sensor has a main reed and an additional external input where another sensor/reed can be connected. Unfortunately the external input isn't available in home assistant where I use zwavejs (yes, I already opened an issue on HA core GitHub that you can read it here, where a detailed analysis on the issue is available. As I understand, a fix by Zwavejs team is needed in order to get it working.
Device information
Vision Security ZD2102 door sensor, nodeID 7 in my network
Did you change anything?
Did this use to work before?
!-- fill in -->
HomeAssistant
version core-2021.06.2To Reproduce Add a vision zd2102 in the network and try to use it in home assistant detecting the open/close for each input. Additional context
Add any o
Logfile: For HomeAssistant, this is how you do it: Home Assistant -> settings -> Integrations -> Z-Wave JS -> Configure -> Create dump -> zip the json file and post it here. zwave_js_dump.zip
node7_log.txt