HomarrH
Homarr2y ago
pd0lpu

Home Assistant automation

HI there,

Is someone able to explain to me how to integrate a Home Assistant automation for a simple toggle switch (Shelly plug). I am especially lost on what the trigger ("When", see screenshot) should be for the Homarr widget in HA. Any help would be greatly appreciated.
CleanShot_2024-05-03_at_08.46.132x.png
Solution
Hi @pd0lpu , you must configure this inside Homarr. The trigger here can be left empty - Homarr itself will trigger and not Home Assistant.
You need to copy the automation ID and paste it to the automation ID field in the widget.
https://github.com/ajnart/homarr/pull/2015 will also significantly improve the handling of generic switches (eg lights, fans, shelly switches, ...).
GitHub
Added support for generic toggle on Home Assistant entities that support it. For entities that does not support toggle the feature will silently fail. This way matches how Home Assistant handles it...
Was this page helpful?