Trigger person entering zone manually

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.

You could add a trigger to your “coming home” automations for an event. Then fire that event whenever you want to do a manual trigger; you can do that from the Development panel in the UI, but you can also send events from any script or automation, so you could connect those to a UI button or just about anything else.

Scripts are designed for actions that need to be called any way you want. Put the actions for coming home in a script. Call the script from the automation. Now you cave a script that you can manually run as well to do the same thing, e.g. from a button, triggered by voice, etc.