-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathESPHome config file for wood pellet stove.yaml
138 lines (130 loc) · 3.24 KB
/
ESPHome config file for wood pellet stove.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#----------------------------------------------------------
# No physical mods required to the display to use this file other than to get it to flash this code.
# Adds local sensors for all attributes previously in Tuya cloud
#
substitutions:
device_name: wood-pellet-stove
device_description: Wood Pellet Stove running ESPHome
friendly_name: Wood Pellet Stove
#----------------------------------------------------------
esphome:
name: ${device_name}
comment: ${device_description}
platform: ESP8266
board: esp01_1m
api:
ota:
wifi:
ssid: "REDACTED"
password: "REDACTED"
power_save_mode: none
#
# Enable Home Assistant API
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "House-Wood-Pellet-Stove"
password: "REDACTED"
captive_portal:
time:
- platform: homeassistant
id: time_homeassistant
on_time_sync:
- component.update: sensor_uptime_timestamp
# Enable logging
logger:
level: DEBUG
# baud_rate: 0
uart:
rx_pin: GPIO13
tx_pin: GPIO15
baud_rate: 9600
select:
- platform: "tuya"
tuya_id: "house"
name: "ESPH House Power Select"
enum_datapoint: 4
options:
0: P1
1: P2
2: P3
3: P4
- platform: "tuya"
tuya_id: "house"
name: "ESPH House ECO Select"
enum_datapoint: 101
options:
0: ECO1
1: ECO2
##DATA POINT VALUES
#1 - Power on (Heat)
#4 - Mode P1/P2/P3P4
#101 - ECO1/ECO2
#104 - Error Code
#106 Set Temp
#107 - Current Temp
#108 - Pipe Temp
#109 - Protect Temp
#-----------------
#Datapoint 1: switch (value: OFF)
#Datapoint 105: enum (value: 0)
#Datapoint 4: enum (value: 0)
#Datapoint 101: enum (value: 0)
#Datapoint 106: int value (value: 68)
#Datapoint 107: int value (value: 64)
#Datapoint 108: int value (value: 68)
#Datapoint 109: int value (value: 72)
#Datapoint 104: bitmask (value: 0)
#GPIO Configuration: status: pin 5, reset: pin 0
#Product: '{"p":"8Dj5zVjGqPSXaUgf","v":"1.0.0","m":0}'
# Register the Tuya MCU connection
tuya:
id: "house"
#These arent needed but greatly help in debugging
sensor:
- platform: "tuya"
name: "Stove-Power On"
sensor_datapoint: 1
- platform: "tuya"
name: "Stove-Error Code"
sensor_datapoint: 104
- platform: "tuya"
name: "Stove-ECO Mode"
sensor_datapoint: 101
- platform: "tuya"
name: "Stove-Power Mode"
sensor_datapoint: 4
- platform: "tuya"
name: "Stove-DP#105"
sensor_datapoint: 105
- platform: "tuya"
name: "Stove-Set Temp"
sensor_datapoint: 106
- platform: "tuya"
name: "Stove-Current Temp"
sensor_datapoint: 107
#
- platform: uptime
id: sensor_uptime
#sensor:
- platform: wifi_signal
name: ${friendly_name} Signal
update_interval: 60s
- platform: template
id: sensor_uptime_timestamp
name: "${friendly_name} Uptime"
device_class: "timestamp"
accuracy_decimals: 0
update_interval: never
lambda: |-
static float timestamp = (
id(time_homeassistant).utcnow().timestamp - id(sensor_uptime).state
);
return timestamp;
#
climate:
- platform: tuya
reports_fahrenheit: true #bug in these stoves required this fix
name: "Wood Pellet Stove"
switch_datapoint: 1
target_temperature_datapoint: 106
current_temperature_datapoint: 107