I’ve decided to try using my Xiaomi Aqara Gateway instead of Z2M again. I disconnected the switch from Z2M, paired it with the Aqara Gateway again but it didn’t respond.
I deleted the switch from the Xiaomi App, paired it again (this time as a new switch because before I let the app kinda recognize it as the previous switch), deleted the Xiaomi Integration from HA and added it again (extreme hassle btw since they messed up the app), rebooted the host, restarted the HA core, nothing worked
I don’t see anything in the HA logs (Settings->System->Logs) regarding Xiaomi but Idk maybe I need to configure something before I can see the Xiaomi related stuff?
the automation that didn’t work was:
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0002ca2afb
click_type: single
action:
service: light.toggle
data: {}
target:
entity_id: light.hue_ambiance_lamp_1
I doublechecked that the entity ID is correct.
In the Mi Home App the clicks are recognized but I suppose HA doesn’t recognize them?
What to do now?
solution: it’s event_type: xiaomi_aqara.click
honestly, I feel like this is HAs fault because there’s no handholding when creating this automation trigger, the Xiaomi documentation seemed lackluster on how to actually create automations so I googled it and copied outdated code from this forums’ threads