Hi all.
I’m looking for a way to manually trigger the event that fires when a person enters a zone.
My use case is as follows. I have a bunch of automations that trigger when I enter my house and some other conditions are satisfied (e.g. if it is between sun set and 20:15, trigger this scene; if it is between 9:00 and 22:00, trigger that scene). Sometimes I have manually turned off some lights, and I’d like to “reset” their state. The easiest would be if I could automatically trigger all automations that normally trigger when I enter my home. I was thinking of an automation like this:
description: Manually trigger coming home home
triggers:
- trigger: state
entity_id:
- input_boolean.trigger_zone // this is connected to a button I've put on my dashboard
to: null
conditions: []
actions:
- TODO trigger me coming home
I’ve tried the following action:
actions:
- action: device_tracker.see
data:
location_name: home
dev_id: (device id of my phone)
but that doesn’t seem to work.