Bug: Upgrade to 0.23.1 results in missing binary sensors

Hello,

It seems that the update to version 0.23.1 as resulted in missing Binary Sensors from all (3) Qubino Flush Dimmers. Each of these devices can control a dimmer, and two extra inputs. These extra inputs used to be ‘Binary Sensors’, but they seems to be missing after the upgrade to 0.23.1.

One of these inputs is attached to a physical pushbutton, and i’ll supply the logging for what happens when i press the button:

2016-07-05 07:59:04.852 Detail, Node006, Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x06, 0x07, 0x60, 0x0d, 0x01, 0x01, 0x30, 0x03, 0xff, 0x56 2016-07-05 07:59:04.852 Info, Node006, Received a MultiChannelEncap from node 6, endpoint 1 for Command Class COMMAND_CLASS_SENSOR_BINARY 2016-07-05 07:59:04.852 Info, Node006, Received SensorBinary report: Sensor:86 State=On 2016-07-05 07:59:04.852 Detail, Node006, Refreshed Value: old value=false, new value=true, type=bool 2016-07-05 07:59:04.852 Detail, Node006, Changes to this value are not verified 2016-07-05 07:59:04.852 Detail, Node006, Notification: ValueChanged 2016-07-05 07:59:05.212 Detail, Node006, Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x06, 0x07, 0x60, 0x0d, 0x01, 0x01, 0x30, 0x03, 0x00, 0xa9 2016-07-05 07:59:05.213 Info, Node006, Received a MultiChannelEncap from node 6, endpoint 1 for Command Class COMMAND_CLASS_SENSOR_BINARY 2016-07-05 07:59:05.213 Info, Node006, Received SensorBinary report: Sensor:169 State=Off 2016-07-05 07:59:05.213 Detail, Node006, Refreshed Value: old value=true, new value=false, type=bool 2016-07-05 07:59:05.213 Detail, Node006, Changes to this value are not verified 2016-07-05 07:59:05.213 Detail, Node006, Notification: ValueChanged

As you can see, the zwave portion seems to work fine. Since it is a push button it will quickly switch from state FALSE -> TRUE -> FALSE.

In my customization.yaml, i grabbed all entity_id that were detected for a single Qubino Flush Dimmer. The dimmer is working just fine, and is used to control the lights. The two binary sensors are missing, and the rest are hidden since i do not use them.
light.qubino_zmnhda2_flush_dimmer_level_6: (used to control the lights) binary_sensor.qubino_zmnhda2_flush_dimmer_sensor_6: (missing) binary_sensor.qubino_zmnhda2_flush_dimmer_sensor_6_2: (missing) light.qubino_zmnhda2_flush_dimmer_step_size_6: (hidden) switch.qubino_zmnhda2_flush_dimmer_switch_6: (hidden) sensor.qubino_zmnhda2_flush_dimmer_energy_6: (hidden) sensor.qubino_zmnhda2_flush_dimmer_power_6: (hidden) sensor.qubino_zmnhda2_flush_dimmer_previous_reading_6: (hidden) sensor.qubino_zmnhda2_flush_dimmer_temperature_6: (hidden)

The relevant zwave.xml config for the Binary Sensors (i think):
<CommandClass id="48" name="COMMAND_CLASS_SENSOR_BINARY" version="1"> <Instance index="1" endpoint="1" /> <Instance index="2" endpoint="2" /> <Value type="bool" genre="user" instance="1" index="0" label="Sensor" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="False" /> <Value type="bool" genre="user" instance="2" index="0" label="Sensor" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="False" /> <SensorMap index="0" type="86" /> <SensorMap index="0" type="169" /> <SensorMap index="0" type="170" /> </CommandClass>

Sofar this is what i have done:

  • Checked with the OZWCP to verify the working of the two binary sensors and they work as expected.
  • Checked the OZW_Log when i push the buttons and that also works as expected.
  • restarted HA a few times, since sometimes it takes a little while for the entity_ids to show up properly, but it did not result in any new sensors.

I did not exclude/include the Qubino Flush dimmers since these devices are inwall devices. If it needs to be done, i will do it. But, to me it seems that the zwave portion is working correctly so i hope there is no need to exclude/include them again…

Can someone help me find out why the binary sensors are missing?

Could you post the generic and specific id?
You’ll find it in the zwcfg xml together with the node id for the device:
<Node id="1" name="" location="" basic="2" generic="2" specific="1"

Are you sure they disappeared at HA 0.23.1 and not 0.23.0?

Ofcourse i can.

<Node id="6" name="" location="" basic="4" generic="17" specific="1" type="Multilevel Power Switch" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">

As far as the update. I updated from 0.22 to 0.23.1.

Could you open your zwave.py in component and add the GENERIC_COMMAND_CLASS_MULTILEVEL_SWITCH in there so it looks like this?:
('binary_sensor', [GENERIC_COMMAND_CLASS_BINARY_SENSOR, GENERIC_COMMAND_CLASS_MULTILEVEL_SENSOR, GENERIC_COMMAND_CLASS_MULTILEVEL_SWITCH], [SPECIFIC_DEVICE_CLASS_WHATEVER], [COMMAND_CLASS_SENSOR_BINARY], TYPE_BOOL, GENRE_USER),

Then it should work again.

I’m not at home right now, so i cannot press the actual button, but i am able to adjust the zwave.py and restart HASS and i now see all my binary sensors again when i look at the device viewer.

I assume a ‘new’ version of HA will have the above fix?

Thanks a lot for you help. The WAF is increased tenfold.

The Followup… the push buttons are working fine.

Have been on vacation so have not been able to do any changes before now.
The issue have been fixed in PR #2552