ScymnusRIP

Single sensor

Jul 31st, 2021
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.69 KB | None | 0 0
  1. sensor:
  2.   - platform: shtcx
  3.     humidity:
  4.       name: "Umidità"
  5.       on_value_range:
  6.         - above: 5.0
  7.           then:
  8.             - switch.turn_on: ventola1
  9.             - switch.turn_on: umidificatore1
  10.         - below: 5.0
  11.           then:
  12.             - switch.turn_off: umidificatore1
  13.             - delay: 2 min
  14.             - switch.turn_off: ventola1
  15.     temperature:
  16.       name: "Temperatura"
  17.       on_value_range:
  18.         - above: 5.0
  19.           then:
  20.             - switch.turn_on: ventola1
  21.             - switch.turn_on: scaldino1
  22.         - below: 5.0
  23.           then:
  24.             - switch.turn_off: scaldino1
  25.             - delay: 2 min
  26.             - switch.turn_off: ventola1
Advertisement
Add Comment
Please, Sign In to add comment