hass-becker-component-plus-pybecker icon indicating copy to clipboard operation
hass-becker-component-plus-pybecker copied to clipboard

aqara door sensors + value_template

Open m4r1k opened this issue 1 month ago • 1 comments

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.

Screenshot 2024-05-14 at 21 45 09

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.

m4r1k avatar May 14 '24 19:05 m4r1k