Closed ghost closed 4 years ago
Are you running the latest ozwdaemon and did you restart it after all lights were initially imported ? Would be nice to get a dump of you mqtt data to debug this one. For now all I can conclude is that your dimmer does not support transitioning/fading to a new state, is that correct ?
The ozwdaemon is the latest docker build. It has been restarted since the lights have been initially imported. I don't think the dimmer supports a configurable transitional fade period. With the stock OZW 1.4 implementation of hass changing the "transition" value in the service service call doesn't have any effect on the speed it takes to change brightness.
A CSV dump of the mqtt is attached below. One of the leviton zwave dimmers is node 2 and the linear z-wave dimmer module is node 19.
I was able to get the lights to work by changing line 86 of sensors.py to the following:
*** light.py 2020-02-01 18:23:32.184741809 -0500
--- light.py.orig 2020-02-01 17:41:48.472209916 -0500
***************
*** 83,89 ****
0x80-0xFE = 1 minute to 127 minutes
0xFF = factory default
"""
! if self.values.dimming_duration is None:
if ATTR_TRANSITION in kwargs:
_LOGGER.debug("Dimming not supported by %s.", self.entity_id)
return
--- 83,89 ----
0x80-0xFE = 1 minute to 127 minutes
0xFF = factory default
"""
! if self.values.dimming_duration.value is None:
if ATTR_TRANSITION in kwargs:
_LOGGER.debug("Dimming not supported by %s.", self.entity_id)
return
Looking more closely, None of my zwave dimmer modules have COMMAND_CLASS_SWITCH_MULTILEVEL index number 5, aka INDEX_SWITCH_MULTILEVEL_DURATION so the object self.values.dimming_duration.value was never initialized.
This is likely due to a bug in OZW currently. See https://github.com/OpenZWave/open-zwave/issues/1981
The fix is very involved so may take some time to test properly before I push it to master.
Thanks for your info. Issue indeed identified as a typo which you spotted yourself. Issue fixed in the code.
Environment:
Zwave modules:
Issue:
Cannot turn on or off any lights. Doesn't work with any of the 2 different zwave modules listed above. I have tried via the UI and manually calling a service. Doesn't matter if a transition: value is passed in the service data. Also fails with homeassistant.turn_on/off service calls.
Error code below is produced by trying to turn off a light via the UI.