#Geolocation in an already made automation

1 messages · Page 1 of 1 (latest)

tall tartan
#

I would like to add in here that IF vacation mode is on and then i will enter my home zone it will turn off automatically.
how can i add in this already made automatio?

alias: Vacation Mode
description: "Will turn on automations that have label: Vacation Mode."
triggers:

  • trigger: state
    entity_id:
    • input_boolean.vacation_mode
      to: "on"
      id: Vacation On
  • trigger: state
    entity_id:
    • input_boolean.vacation_mode
      to: "off"
      id: Vacation Off
      conditions: []
      actions:
  • choose:
    • conditions:
      • condition: trigger
        id:
        • Vacation On
          sequence:
      • action: automation.turn_off
        metadata: {}
        data:
        stop_actions: true
        target:
        label_id: vacation
      • action: automation.turn_on
        metadata: {}
        data: {}
        target:
        entity_id: automation.led_kitchen_and_doorbell
    • conditions:
      • condition: trigger
        id:
        • Vacation Off
          sequence:
      • action: automation.turn_on
        metadata: {}
        data: {}
        target:
        label_id: vacation
      • action: automation.turn_off
        metadata: {}
        data:
        stop_actions: true
        target:
        entity_id: automation.led_kitchen_and_doorbell
        mode: single
mossy obsidian
#

Add a trigger for you entering the zone, then add a third option to you Choose action that turns the input boolean off.