I have two of these buttons linked to a xiaomi aqara hub. everything has worked for ~1 year. But now all of a sudden, both buttons stopped working. When I view their dev_state, i see that single and double presses are not registered. However, long presses and ‘hold are’.
When i go into the xiaomi app to view the buttons, the presses are correctly recorded as single / double press / etc.
I am not sure what changed - home assistant, the buttons, or the xiaomi integration. Has anyone else seen this change?
I think what you quoted here are the changes to the name of the events. The OP is referring to the state of the xiaomi button on the dev-state page. I am experiencing the same after updating from 0.82.1 to 0.83.3. The state (and last_action) of the xiaomi button on the dev-state page only changes when I long click and hold the button. Single or double click on the xiaomi button is no longer recognized or recorded on the dev-state page, and therefore not possible to trigger any automation.
Yes Valsily - you hit the nail on the head. Glad to hear I am not the only one!
This has broken my automation.
I bet it is still related to the change to events referenced above. Not sure when 0.83 came out, but this affected me within the last ~2 weeks. I am on a docker, which updates automatically.
If no one has any other ideas, I’ll return later and share my automation
Then it is different here on my side. On my Hass.io, single/double click is neither captured on dev-state page nor able to trigger automation. I have updated the event_type names in automations.yaml.
One proof is when I change click_type from single to long_click_press, which is the only type that is captured, the automation works again.
I reported this to a possibly-related issue on Github but have not heard any responses yet.
So for me in the dev-state page the last action field does not get updates. So when I do a double click (which is recolonized correctly within my HA, because the automation is triggered) the last action does still show last action: single
By following these instructions, I have fixed the automation.
Below, in my automation.yaml, i had event_type: click
I changed it to event_type: xiaomi_aqara.click, reloaded automations, and all works again.
seems like there is indeed some cleanup to be done on the dev_states though. Thanks to everyone
@syssi So since update to 0.84.0b4 (and also the stable release 0.84.1) the buttons seem to be broken again. So no last_action updates and no automation triggers
I can see the action working on the gateway, but not in HA.
Tested devices:
But all other aqara sensors are working (door, temperature, motion etc.)
I also tried to reset the gateway and re-add it, but still the same issue
Edit 2:
The only way I get the last_action not display anything different then null is to hammer on the switches. Then the gateway says something like “positive connection” (in chinese) and the last_action changes to single. But the automation is still not triggered…
For the round aqara button the hold seems to work (and also the long_click_press which is triggered during the hold)