Snippets

Winni Neessen 5eMELq: Untitled snippet

Created by Winni Neessen
  - alias: 'auto_WoZi_Spannung_aus_wenn_Wohnung_verlassen'
    initial_state: True
    trigger:
      platform: state
      entity_id: 'sensor.home_or_not'
      to: 'on'
      for:
        minutes: 15
    condition:
      condition: and
      conditions:
        - condition: state
          entity_id: 'input_boolean.guestmode_bool'
          state: 'off'
    action:
      - service: switch.turn_off
        entity_id: switch.lautsprecher_pc
  - alias: 'auto_WoZi_Spannung_an_wenn_Wohnung_betreten'
    initial_state: True
    trigger:
      platform: zone
      entity_id: device_tracker.owntracks_iphone8_iphone8_owntracks
      zone: zone.home
      event: enter
    condition:
      condition: and
      conditions:
        - condition: state
          entity_id: 'switch.lautsprecher_pc'
          state: 'off'
    action:
      - service: switch.turn_on
        entity_id: switch.lautsprecher_pc

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.