Probably after upgrade to Appdaemon 1.6 my xiaomi wirleess smart switch don’t works…
Single click, double click or long time press … haven’t any effect
@ReneTode can you help me?
Probably after upgrade to Appdaemon 1.6 my xiaomi wirleess smart switch don’t works…
Single click, double click or long time press … haven’t any effect
@ReneTode can you help me?
not without logs.
double click or longpress are not in any widget i know.
or do you mean in an app?
Hi @ReneTode
I use alarmsystem by runningman84
it have an app alarm.py in wich is defined the three way to use alarm button
for button in self._alarm_control_buttons:
self.listen_event(self.alarm_arm_home_button_callback,
'click', entity_id=button, click_type="single")
self.listen_event(self.alarm_disarm_button_callback,
'click', entity_id=button, click_type="double")
self.listen_event(self.alarm_arm_away_button_callback,
'click', entity_id=button, click_type="long_click_press")
and in apps.yaml is defined the button:
alarm_control_buttons:
- binary_sensor.switch_158d00019c9ac6
There was a breaking change in HA 0.83 that might be the problem.
#17354 ) (binary_sensor.xiaomi_aqara docs ) (breaking change)
You need to change the prefix in all automations to xiaomi_aqara.click instead of click.
Excuse me… it happens with all xiaomi buttons!
So, you need to change
self.listen_event(self.alarm_arm_home_button_callback,
'click', entity_id=button, click_type="single")
to
self.listen_event(self.alarm_arm_home_button_callback,
event="xiaomi_aqara.click", entity_id=button, click_type="single")
Many thanks @tjntomas
You have right!
The right code is…
self.listen_event(self.alarm_arm_home_button_callback,
‘xiaomi_aqara.click’, entity_id=button, click_type=“single”)
now it works again