doudz / homeassistant-zigate

zigate component for Home Assistant
MIT License
48 stars 13 forks source link

Additional HA events from zigate #20

Closed pawelka closed 5 years ago

pawelka commented 5 years ago

Event for starting and stoping zigate it's needed to delay homekit start (stop is for symmetry).

Event for attribute change this is required for example to create automation connected with aqara wireless wall swich for example to support two switch like stairs switch (wall switch + wireless switch). Wireless switch is recognize as binary sensor and click in it cause two events one by one and sometimes binary sensor doesn't recognize state change, so no event from sensor :-/. With zigate attribute change event there is no problem to have this setup work, because automation base on zigate 'on' event and doesn't relay on binary sensor event which sometimes missing (race condition).