-
Notifications
You must be signed in to change notification settings - Fork 0
/
Switch standing desk studio.yaml
61 lines (52 loc) · 1.08 KB
/
Switch standing desk studio.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
esphome:
name: switch_standing_desk_studio
platform: ESP32
board: esp32cam
<<: !include wifi.yaml
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
# api:
ota:
switch:
- platform: gpio
pin: GPIO25
id: standing
- platform: template
name: "Raise standing desk"
icon: "mdi:human"
turn_on_action:
- switch.turn_on: standing
- delay: 12000ms
- switch.turn_off: standing
- platform: gpio
pin: GPIO26
id: sitting
- platform: template
name: "Lower standing desk"
icon: "mdi:table-chair"
turn_on_action:
- switch.turn_on: sitting
- delay: 12000ms
- switch.turn_off: sitting
sensor:
- platform: dht
model: DHT22
pin: GPIO14
temperature:
name: "Studio temperature"
filters:
- median:
window_size: 5
send_every: 5
send_first_at: 5
humidity:
name: "Studio humidity"
filters:
- median:
window_size: 5
send_every: 5
send_first_at: 5
update_interval: 60s
<<: !include mqtt.yaml