Shestak

Untitled

Nov 29th, 2021
912
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias: Освещение в гостиной (выключение без движения)
  2. trigger:
  3.   - platform: state
  4.     entity_id: binary_sensor.0x158d00044db99e_motion
  5.     to: 'off'
  6.     for:
  7.       minutes: 15
  8.     from: 'on'
  9.   - platform: device
  10.     type: turned_off
  11.     device_id: 9e10ce9bca2e4a0a44f3ca3ff7186997
  12.     entity_id: switch.0x158d00045e3180_switch
  13.     domain: switch
  14. condition:
  15.   - condition: state
  16.     entity_id: sensor.0x158d0002b31164_action
  17.     state: ''
  18.     for:
  19.       minutes: 15
  20. action:
  21.   - type: turn_off
  22.     device_id: 9e10ce9bca2e4a0a44f3ca3ff7186997
  23.     entity_id: switch.0x158d00045e3180_switch
  24.     domain: switch
  25.   - type: turn_off
  26.     device_id: 6ffb35517eef33ce8569b39fa2e39ae2
  27.     entity_id: switch.0x54ef441000075b3f_switch
  28.     domain: switch
  29.   - service: timer.cancel
  30.     target:
  31.       entity_id: timer.livingroom_timer
  32. mode: restart
  33.  
RAW Paste Data