-
Notifications
You must be signed in to change notification settings - Fork 0
/
humidity-hero.yaml
88 lines (77 loc) · 2.48 KB
/
humidity-hero.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
blueprint:
name: Humidity Hero
description: >
# Humidity Hero
The Humidity Hero blueprint is an automation that turns a humidifier or dehumidifier on or off based on the state of windows and doors.
## Features
- Automatically turns off the humidifier or dehumidifier when windows or doors are open, to save energy.
- Automatically turns on the humidifier or dehumidifier when all windows and doors are closed, to maintain a comfortable humidity level in the home.
- Customizable pause and resume delays.
- Helps to reduce energy costs and create a healthier living environment.
## Inputs
- **humidifier_device**: Climate entity used for climate control.
- **doors_windows**: Group of entities that will activate automation. (Assumes 'on' means 'open')
- **pause_delay**: Time to wait before pausing the humidifier.
- **resume_delay**: Time to wait before resuming the humidifier.
domain: automation
input:
humidifier_device:
description: Humidifier/Dehumidifier entity used for climate control.
name: Humidifier/Dehumidifier Device
selector:
entity:
domain: humidifier
doors_windows:
description: Group of entities that will activate automation. (Assumes 'on' means 'open')
name: Door and window sensors.
selector:
entity:
domain:
- group
- binary_sensor
pause_delay:
description: Time to wait before pausing the Humidifier/Dehumidifier.
name: Pause Delay
default:
hours: 00
minutes: 05
seconds: 00
selector:
duration:
resume_delay:
description: Time to wait before resuming the Humidifier/Dehumidifier.
name: Resume Delay
default:
hours: 00
minutes: 00
seconds: 30
selector:
duration:
mode: single
trigger:
- platform: state
entity_id: !input doors_windows
from: "off"
to: "on"
for: !input pause_delay
id: group_open
condition:
- condition: not
conditions:
- condition: state
entity_id: !input humidifier_device
state: "off"
action:
- service: humidifier.turn_off
target:
entity_id: !input humidifier_device
- wait_for_trigger:
- platform: state
entity_id: !input doors_windows
from: "on"
to: "off"
for: !input resume_delay
continue_on_timeout: false
- service: humidifier.turn_on
target:
entity_id: !input humidifier_device