Advertisement
djgragra

Temp

Apr 15th, 2024
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. alias: "TEST "
  2. description: ""
  3. trigger:
  4.   - platform: state
  5.     entity_id:
  6.      - sensor.sensore_bagno_temperature
  7. condition: []
  8. action:
  9.   - if:
  10.       - condition: numeric_state
  11.         entity_id: sensor.sensore_bagno_temperature
  12.         below: 10
  13.     then:
  14.       - service: light.turn_off
  15.         metadata: {}
  16.         data: {}
  17.         target:
  18.           entity_id: light.piantana
  19.     else:
  20.       - service: light.turn_on
  21.         metadata: {}
  22.         data: {}
  23.         target:
  24.           entity_id: light.piantana
  25. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement