Terasz le

 avatar
user_4999651
plain_text
7 months ago
2.8 kB
0
Indexable
Never
alias: Világítás - Terasz le
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.rony_bssid_room
    for:
      hours: 0
      minutes: 0
      seconds: 30
    from: null
    to: null
  - platform: state
    entity_id:
      - sensor.gyuszi_bssid_room
    for:
      hours: 0
      minutes: 0
      seconds: 30
    to: null
    from: null
  - type: no_motion
    platform: device
    device_id: 74acffc00fcb478d938be6bb70a7137f
    entity_id: binary_sensor.motion_sensor_i
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition:
  - condition: and
    conditions:
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.gyuszi_bssid_room
            state: Műhely-Garázs
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.rony_bssid_room
            state: Műhely-Garázs
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.gyuszi_bssid_room
            state: Kisgarázs
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.rony_bssid_room
            state: Kisgarázs
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.rony_bssid_room
            state: Terasz
      - condition: not
        conditions:
          - condition: state
            entity_id: sensor.gyuszi_bssid_room
            state: Terasz
      - type: is_no_motion
        condition: device
        device_id: 74acffc00fcb478d938be6bb70a7137f
        entity_id: binary_sensor.motion_sensor_i
        domain: binary_sensor
        for:
          hours: 0
          minutes: 2
          seconds: 0
        enabled: false
      - condition: or
        conditions:
          - type: is_no_motion
            condition: device
            device_id: 74acffc00fcb478d938be6bb70a7137f
            entity_id: binary_sensor.motion_sensor_i
            domain: binary_sensor
            for:
              hours: 0
              minutes: 2
              seconds: 0
          - condition: state
            entity_id: binary_sensor.motion_sensor_i
            state: unavailable
action:
  - type: turn_off
    device_id: 3f5a2bb184e889f7b66001b6d7ee06e5
    entity_id: light.dimmable_light_32
    domain: light
  - type: turn_off
    device_id: cc91d50b47188ecfa445a71b4c379dcb
    entity_id: switch.smart_plug_9
    domain: switch
  - type: turn_off
    device_id: cbab49a457a084329f232884bd30e4b8
    entity_id: switch.smart_plug_7
    domain: switch
  - service: switch.turn_off
    data: {}
    target:
      entity_id:
        - switch.smart_plug_9
        - switch.smart_plug_7
mode: restart
trace:
  stored_traces: 10
Leave a Comment