Advertisement
yurghie

Untitled

May 15th, 2024
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.63 KB | None | 0 0
  1. binary_sensor:
  2.   - platform: trend
  3.     sensors:
  4.       bad_noen_dusjer:
  5.         max_samples: 3
  6.         entity_id: sensor.bad_klima_humidity
  7.         min_gradient: 0.04167 # (5/(60*2))%
  8.  
  9. automation:
  10.   - alias: bad vifte på når noen dusjer
  11.     trigger:
  12.       platform: state
  13.       entity_id: binary_sensor.bad_noen_dusjer
  14.       to: 'on'
  15.     action:
  16.       - service: switch.turn_on
  17.         entity_id: switch.bad_avtrekk
  18.       - delay: '00:20:00'
  19.       - service: switch.turn_off
  20.         entity_id: switch.bad_avtrekk
  21.     mode: single #eller restart hvis den skal kjøre hver gang fuktigheten stiger
  22.     max_exceeded: silent
  23.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement