Advertisement
yurghie

Untitled

Nov 23rd, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. automation:
  2. - alias: lysstyring kontor på
  3. trigger:
  4. - platform: state
  5. entity_id: binary_sensor.kontor_pir_occupancy
  6. to: 'on'
  7. - platform: state
  8. entity_id: binary_sensor.kontor_tak_pir_occupancy
  9. to: 'on'
  10. action:
  11. - service: light.turn_on
  12. target:
  13. entity_id: light.kontor_tak
  14. - delay: '00:02:00'
  15. - service: light.turn_off
  16. target:
  17. entity_id: light.kontor_tak
  18. mode: restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement