#Check for Switch Trigger by Hand or automation
1 messages · Page 1 of 1 (latest)
Take a look at this: https://community.home-assistant.io/t/how-to-use-context/723136
Home Assistant Community
By checking three conditions you can tell if it was an automation, a physical device or a person performing an action in a dashboard that changed an entity. This can be useful if you need to know if a person or an automation did something, e.g. were the lights turned on automatically or by a person operating a physical switch or dashboard contro...