Description
Home Assistant release (hass --version
):
0.58.1
Python release (python3 --version
):
3.6.3
Component/platform:
zwave
Description of problem:
The wake up interval shown in Home Assistant is not correct.
My Devolo radiator thermostats are configured with a wakeup interval of 120s and also act as such (I can see in their status windows that they wake up every 120s).
But in the same window they show up with a wake up interval of 60s:
Also in the zwave configuration panel a (wrong) value of 60 is shown.
The zwcfg
-file itself has the correct values though:
<CommandClass id="132" name="COMMAND_CLASS_WAKE_UP" version="2" request_flags="2" innif="true">
<Instance index="1" />
<Value type="int" genre="system" instance="1" index="0" label="Wake-up Interval" units="Seconds" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="120" />
<Value type="int" genre="system" instance="1" index="1" label="Minimum Wake-up Interval" units="Seconds" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="60" />
<Value type="int" genre="system" instance="1" index="2" label="Maximum Wake-up Interval" units="Seconds" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="1800" />
<Value type="int" genre="system" instance="1" index="3" label="Default Wake-up Interval" units="Seconds" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="300" />
<Value type="int" genre="system" instance="1" index="4" label="Wake-up Interval Step" units="Seconds" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="60" />
</CommandClass>
And also in the OZW_Log.txt
the correct values are shown
2017-12-02 14:33:48.920 Info, Node005, Received Wakeup Interval report from node 5: Interval=120, Target Node=1
2017-12-02 14:34:13.370 Info, Node004, Received Wakeup Interval report from node 4: Interval=120, Target Node=1
2017-12-02 14:34:32.211 Info, Node003, Received Wakeup Interval report from node 3: Interval=120, Target Node=1
2017-12-02 14:34:40.670 Info, Node002, Received Wakeup Interval report from node 2: Interval=120, Target Node=1
My assumption is that maybe the "Minimum Wake-up Interval" or "Wake-up Interval Step" values are read incorrectly.
I tried to debug this but I am not familiar enough with the HA codebase to effectively do so.
The Home Assistant logfile also shows something about reading all these minimum/maximum/default/step wake-up interval values:
2017-12-02 14:32:46 DEBUG (Dummy-3) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 1, 'id': 72057594086227987, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Minimum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] zwcallback args=[{'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 1, 'id': 72057594086227987, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Minimum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}]
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] Z-Wave Notification ValueAdded : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 1, 'id': 72057594086227987, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Minimum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 2, 'id': 72057594086228003, 'genre': 'System', 'type': 'Int', 'value': 1800, 'label': 'Maximum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] zwcallback args=[{'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 2, 'id': 72057594086228003, 'genre': 'System', 'type': 'Int', 'value': 1800, 'label': 'Maximum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}]
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] Z-Wave Notification ValueAdded : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 2, 'id': 72057594086228003, 'genre': 'System', 'type': 'Int', 'value': 1800, 'label': 'Maximum Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 3, 'id': 72057594086228019, 'genre': 'System', 'type': 'Int', 'value': 300, 'label': 'Default Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] zwcallback args=[{'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 3, 'id': 72057594086228019, 'genre': 'System', 'type': 'Int', 'value': 300, 'label': 'Default Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}]
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] Z-Wave Notification ValueAdded : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 3, 'id': 72057594086228019, 'genre': 'System', 'type': 'Int', 'value': 300, 'label': 'Default Wake-up Interval', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 4, 'id': 72057594086228035, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Wake-up Interval Step', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] zwcallback args=[{'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 4, 'id': 72057594086228035, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Wake-up Interval Step', 'units': 'Seconds', 'readOnly': True}}]
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] Z-Wave Notification ValueAdded : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 4, 'id': 72057594086228035, 'genre': 'System', 'type': 'Int', 'value': 60, 'label': 'Wake-up Interval Step', 'units': 'Seconds', 'readOnly': True}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 0, 'id': 72057594086227971, 'genre': 'System', 'type': 'Int', 'value': 120, 'label': 'Wake-up Interval', 'units': 'Seconds', 'readOnly': False}}
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] zwcallback args=[{'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 0, 'id': 72057594086227971, 'genre': 'System', 'type': 'Int', 'value': 120, 'label': 'Wake-up Interval', 'units': 'Seconds', 'readOnly': False}}]
2017-12-02 14:32:46 DEBUG (Dummy-3) [openzwave] Z-Wave Notification ValueAdded : {'notificationType': 'ValueAdded', 'homeId': 4195282352, 'nodeId': 2, 'valueId': {'homeId': 4195282352, 'nodeId': 2, 'commandClass': 'COMMAND_CLASS_WAKE_UP', 'instance': 1, 'index': 0, 'id': 72057594086227971, 'genre': 'System', 'type': 'Int', 'value': 120, 'label': 'Wake-up Interval', 'units': 'Seconds', 'readOnly': False}}
Additionally, it seemed that after fully resetting the zwave settings (deleting zwcfg and other files), the correct 120s were used, but at some point (probably after a restart of HA) replaced by the incorrect 60s.
Additional info:
This is similar to #9993, but here the values in zwcfg are correct, but shown wrong in Home Assistant.