-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdesk.yaml
74 lines (61 loc) · 1.22 KB
/
desk.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
esphome:
name: desk
platform: ESP8266
board: esp01_1m
external_components:
- source: github://TillFleisch/ESPHomeGenericSitStandDesk@main
# Enable logging
logger:
baud_rate: 0
uart:
id: uart_bus
tx_pin: TX
rx_pin: RX
baud_rate: 57600
# Enable Home Assistant API
api:
ota:
password: "HaHaGetRickRolled"
wifi:
ssid: !secret WiFi_Name
password: !secret WiFi_Password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Desk Fallback Hotspot"
password: "dQw4w9WgXcQ"
captive_portal:
generic_desk:
id: desk1
uart_id: uart_bus
# The Desks height measured in the lowest position
base_height: 66.4
#Optional correction factor, in case the height does not scale properly
correction_term: 1.24836
sensor:
- platform: generic_desk
desk_id: desk1
id: desk_height
name: "Desk Height"
binary_sensor:
- platform: generic_desk
desk_id: desk1
id: desk_is_moving
name: "Desk is Moving"
switch:
- platform: generic_desk
desk_id: desk1
up:
name: "Up"
down:
name: "Down"
button:
- platform: generic_desk
desk_id: desk1
M1:
name: "M1"
M2:
name: "M2"
M3:
name: "M3"
M4:
name: "M4"