Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aqara door sensors + value_template #38

Open
m4r1k opened this issue May 14, 2024 · 1 comment
Open

aqara door sensors + value_template #38

m4r1k opened this issue May 14, 2024 · 1 comment

Comments

@m4r1k
Copy link

m4r1k commented May 14, 2024

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.

@RainerStaude
Copy link
Owner

RainerStaude commented May 18, 2024

Anything in the log with log level debug enabled?
There should be something in the log whenever the result of the template changes
Is the template properly returning 0 or None?

I guess you also have a master remote. So check the log and add the remote_id to the config remote_id: "12345:2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants