Advertisement
arushear

Stan Okna

Aug 10th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. alias: Sypialnia termostat - stan okna
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id:
  6. - binary_sensor.okno_sypialnia_contact
  7. condition: []
  8. action:
  9. - choose:
  10. - conditions:
  11. - condition: state
  12. entity_id: binary_sensor.okno_sypialnia_contact
  13. state: "on"
  14. sequence:
  15. - type: turn_on
  16. device_id: a4157f40bb7adddf81e3b7c64aee8bc1
  17. entity_id: 60abbef37bb383021a78579a9f132a05
  18. domain: switch
  19. - conditions:
  20. - condition: state
  21. entity_id: binary_sensor.okno_sypialnia_contact
  22. state: "off"
  23. sequence:
  24. - type: turn_off
  25. device_id: a4157f40bb7adddf81e3b7c64aee8bc1
  26. entity_id: 60abbef37bb383021a78579a9f132a05
  27. domain: switch
  28. default: []
  29. mode: single
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement