#Start Automation

1 messages · Page 1 of 1 (latest)

last valve
#

How can I set it up so that if I haven't been home after 5 hours and then come back, the lights turn on automatically and my PC starts when I'm home? I also want my phone to be checked to see if I'm actually at home.

copper zenith
#

Do you currently have defined zones other than home, or plan to define them in the future?

karmic stag
#

its german but you'll get the idea

#
alias: Ladekabel Steckdose einschalten bei Ankunft
description: >-
  Schaltet die Steckdose ein, wenn Marvin nach Hause kommt.
triggers:
  - trigger: state
    entity_id:
      - sensor.home_bewegung_von_marvin
    from:
      - towards
    to:
      - arrived
  - device_id: phone xyz
    domain: device_tracker
    entity_id: phone xyz
    type: enters
    trigger: device
    zone: zone.home
conditions:
  - condition: device
    type: is_off
    device_id: smart socket xyz
    entity_id: smart socket xyz
    domain: switch
actions:
  - type: turn_on
    device_id: smart socket xyz
    entity_id: smart socket xyz
    domain: switch
mode: single```