-
Notifications
You must be signed in to change notification settings - Fork 2
/
garage-gate-fan.yaml
executable file
·50 lines (45 loc) · 1.48 KB
/
garage-gate-fan.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
# https://esphome.io/guides/configuration-types.html#substitutions
substitutions:
device_name: garage-gate-fan
device_comment: "Sonoff TH10 Garage Gate Fan Thermostat"
target_temperature_high: "28.0" # ~80F
# https://esphome.io/guides/configuration-types.html#packages
packages:
sonoff_th10: !include templates/sonoff-th10.yaml
# https://esphome.io/components/sensor/index
sensor:
# https://esphome.io/components/sensor/dallas.html
- platform: dallas
address: 0xEB3C01D075FBA928
name: ${device_name}_temp
id: temp
# https://esphome.io/components/sensor/index.html#sliding-window-moving-average-exponential-moving-average
filters:
- sliding_window_moving_average:
window_size: 3
send_every: 3
send_first_at: 3
# https://esphome.io/components/climate
climate:
# https://esphome.io/components/climate/thermostat.html
- platform: thermostat
name: ${device_name}_thermostat
id: thermo
sensor: temp
min_cooling_off_time: 60s
min_cooling_run_time: 60s
min_idle_time: 60s
cool_action:
- logger.log: "Thermostat : Cool Action, Turning Relay On."
- switch.turn_on: relay
idle_action:
- logger.log: "Thermostat : Idle Action, Turning Relay Off."
- switch.turn_off: relay
default_preset: Default
preset:
- name: Default
default_target_temperature_high: ${target_temperature_high}
visual:
min_temperature: 20.0
max_temperature: 40.0
temperature_step: 0.5