Advertisement
adorobis

ventilation kitchen hood automation

Oct 23rd, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. alias: Vent - fan control on Kitchen hood
  2. description: ""
  3. trigger:
  4. - platform: numeric_state
  5. entity_id: sensor.14_zwave_plug_power
  6. for:
  7. hours: 0
  8. minutes: 0
  9. seconds: 10
  10. above: 50
  11. id: hood_on
  12. - platform: numeric_state
  13. entity_id: sensor.14_zwave_plug_power
  14. for:
  15. hours: 0
  16. minutes: 0
  17. seconds: 10
  18. below: 40
  19. - platform: event
  20. event_type: timer.finished
  21. event_data:
  22. entity_id: timer.ventilation_fan
  23. condition: []
  24. action:
  25. - choose:
  26. - conditions:
  27. - condition: trigger
  28. id:
  29. - hood_on
  30. sequence:
  31. - service: select.select_option
  32. data:
  33. option: In
  34. target:
  35. entity_id: select.ca350_fan_control
  36. - service: timer.start
  37. data:
  38. duration: "01:00:00"
  39. target:
  40. entity_id: timer.ventilation_fan
  41. default:
  42. - service: select.select_option
  43. data:
  44. option: Both
  45. target:
  46. entity_id: select.ca350_fan_control
  47. - service: timer.cancel
  48. data: {}
  49. target:
  50. entity_id: timer.ventilation_fan
  51. mode: restart
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement