hass-becker-component-plus-pybecker
hass-becker-component-plus-pybecker copied to clipboard
aqara door sensors + value_template
Hey there!
I'm in love with this integration! It has automated one of the last remaining item at home.
All doors and windows have aqara sensors, integrated in HA through the Aqara E1 hub. On HA side their status is exposed through the native HomeKit integration.
Now, with the following config, the window state (open, opening, closing, closed) becomes unresponsive.
cover:
- platform: becker
device: "/dev/ttyACM0"
filename: "my-centronic-stick.db"
covers:
bathroom:
friendly_name: "Bathroom Velux"
channel: "1"
tilt_intermediate: off
travelling_time_up: 40
travelling_time_down: 50
value_template: "{{ 0 if is_state('binary_sensor.bathroom_velux_sensor', 'closed') else None }}"
The Window "Value Template" status in HA remains also unknown.
I kinda have a clue this issue might be related to the type of sensors exposed by the HomeKit integration, which is a binary_sensor
.
Any clue if I'm doing something wrong? The code doesn't show, to me at least, a preference for a specific type of HA sensor. Any help is greatly appreciated.