Hi there, I have a few of the Xiaomi Smart Wireless Switch (gen1 I think - they’re round) that I was originally just using with the MiHome app to control a few Yeelights I had.
I decided to try and get them to control a LIFX light that I was given and so I turned to HomeAssistant.
I think the issue is with the time between polling of events for the switches.
I do see the last event in the HA dashboard for the switches, but they don’t seem to update for almost 10-15 minutes which isn’t particularly useful for a switch.
Is there any thing I’m missing in the Xiaomi Gateway (Aqara) configuration that would make this time less?
my configuration.yaml looks like this
xiaomi_aqara:
discovery_retry: 5
gateways:
- key: XXXXXXXXXX
I’m not certain what logs to look out for as the xiaomi gateway is responding it just doesn’t seem to be updating very often.
My automation is pretty straight forward:
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_xxxxxxxxx
click_type: single
action:
service: light.toggle
data:
entity_id: light.bedroom_lamp
It seems to work immediately if triggered from the HA dashboard. Any advice or suggestions?