I have mostly Leviton ‘R02-DZMX1-1LZ’ switches, which near as I can tell, don’t support instant notification of a manual change of status, so I’d like to have HA poll the network to update the status of switches if they are operated manually.
I originally had ‘polling_interval: 60000’ under the ‘zwave:’ portion of my config, but the status wasn’t updating. I had also read that the value there is for ms, but I also read that it might be seconds, so I also tried ‘60’ for the value, with no change. I then found a reference to ‘polling_intensity’ and added ‘polling_intensity: 1’ under ‘polling_interval’, with no change.
How do I get HA to poll the network for device status updates?
I don’t have an answer for you on the polling issue, but since I don’t have any Leviton switches in my z-wave setup, I don’t know exactly what attributes or additional sensors are added to HA when you add your switches, but when I added my Kwikset Zwave locks, they are not communicating the state of the lock entity itself to the Zwave stick or HA when I manualy lock and unlock, only when Zwave locked and unlocked them, but there is another sensor added with each Kwikset lock called alarm_state that is updating every time.
Well, it turns out, the state of that sensor changes depending on how the lock was locked or unlocked. If it is locked manually, the state of that sensor is ‘18’, and if it is unlocked manually the state is ‘19’. If it is locked by Zwave, the state is ‘24’ and unlocked by Zwave the state is ‘25’
So I created an automation that is monitoring the state change of the alarm_type sensor, and if it changes to ‘18’ I trigger the lock.lock service, and even though it is already locked, running the lock service on my lock changes the state to ‘24’ so that HA knows it is locked and it shows in the status of the switch in the HA frontend. The same for when it changes to ‘19’, I send the lock.unlock service command to the lock and it changes the alarm_type state to ‘25’, thus alerting HA that it is unlocked.
Again, this may not apply to the Leviton switches, but I would check and see if there are additional sensors added with that switch whos state changes on the status of the switch, and if so, you can monitor that state and update accordingly.
jbardi, what happens to the lock state if you restart HA? There are no additional sensors showing up in any ZWave app I’ve used for the Leviton switches, but if I restart HA, it polls the entire network and updates the proper status of the switches. While ‘instant’ update would be nice, even if HA would only update within 60 seconds or so due to limitations of the switches (supposedly, the VRMX1 DOES support instant update via a ‘hail’ command), that would still be fine for me - I had thought about triggering other switches based on a switch activation if it was possible, but I’m not doing anything of the sort.
I seem to have finally found the answer in another post here. Not the best way to do it as it seems it can take some time for the status to update, but it works for now.
You apparently need to add a ‘customize:’ section under the zwave config with the devices you want it to poll under that section: