Hi,
Maybe I’m not posting it on the right place…
I recently upgade via the docker pull homeassistant/home-assistant, and the switch from xiaomi aqara, known as binary_sensor.switch, stopped working.
It doesnt recognize double click or long press. I’m using for these automations:
-
alias:Turn on lights pressing switch
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001f35b33
click_type: single
action:- service: light.turn_on
entity_id: light.salon - service: light.turn_on
entity_id: light.dormitorio
id: 8718ddd12d1147ffae7c890014cd314c
- service: light.turn_on
-
alias: Dim on long press
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001f35b33
click_type: long_click_press
action:- service: light.turn_on
entity_id: light.room
data_template:
brightness: “{% set suggested = states.light.room.attributes.brightness|int
\ - 61 %} {% if suggested > 25 %} {{ suggested }} {% else %} 144 {% endif
\ %} \n”
id: 8e06c51f478c4f4ea861d75c0123b69d
- service: light.turn_on
Everything is working if I get back to 0.81.6