Hi,
I have a problem to get my Z-wave door sensor to show up correctly in iOS Home (via Homebridge). The Z-wave door sensor shows up just fine in HA, but not in iOS Home.
I have tried to set up the sensor in configuration.yaml
I followed this guide: https://home-assistant.io/components/binary_sensor.template/
binary_sensor:
- platform: template
sensors:
door:
value_template: “{{ states.sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1 == ‘255’ }}”
sensor_class: opening
friendly_name: Door
I tried to check if the sensor state is on or off, but the outputs from HA/Homebrdige only gives me the 0 and 255 as an answer.
Homeassistant output:
17-01-27 20:43:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1=255; battery_level=100, node_id=18, friendly_name=Vision ZD2102 AU Door/Window Sensor Alarm Level @ 2017-01-27T21:43:08.673088+01:00>, old_state=<state sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1=0; battery_level=100, node_id=18, friendly_name=Vision ZD2102 AU Door/Window Sensor Alarm Level @ 2017-01-27T21:43:04.593613+01:00>, entity_id=sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1>
Homebridge output:
[1/27/2017, 8:43:08 PM] [HomeAssistant] Received event: {“data”: {“new_state”: {“last_updated”: “2017-01-27T20:43:08.673088+00:00”, “attributes”: {“battery_level”: 100, “node_id”: 18, “friendly_name”: “Vision ZD2102 AU Door/Window Sensor Alarm Level”}, “state”: “255”, “entity_id”: “sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1”, “last_changed”: “2017-01-27T20:43:08.673088+00:00”}, “old_state”: {“last_updated”: “2017-01-27T20:43:04.593613+00:00”, “attributes”: {“battery_level”: 100, “node_id”: 18, “friendly_name”: “Vision ZD2102 AU Door/Window Sensor Alarm Level”}, “state”: “0”, “entity_id”: “sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1”, “last_changed”: “2017-01-27T20:43:04.593613+00:00”}, “entity_id”: “sensor.vision_zd2102_au_doorwindow_sensor_alarm_level_18_1”}, “origin”: “LOCAL”, “event_type”: “state_changed”, “time_fired”: “2017-01-27T20:43:08.673307+00:00”}
Any suggestion?