-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmoker.yaml
89 lines (75 loc) · 1.94 KB
/
smoker.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
esphome:
name: smoker
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
reboot_timeout: 0s
ota:
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Smoker Fallback Hotspot"
password: !secret wifi_passwd
captive_portal:
dallas:
- pin: D2
update_interval: 5s
web_server:
port: 80
mqtt:
broker: !secret mqtt_broker
discovery: True
id: mqttclient
sensor:
- platform: dallas
address: 0xb10000056e870728
name: "Temperature"
id: temperature_sensor
output:
- platform: esp8266_pwm
pin: D1
id: heater
inverted: false
button:
- platform: template
name: "PID Climate Autotune"
on_press:
- climate.pid.autotune: pid_smoker
# Example configuration entry
# this is not tuned for the smoker
climate:
- platform: pid
visual:
min_temperature: 3
name: "Smoker heater"
sensor: temperature_sensor
id: pid_smoker
default_target_temperature: 15°C
heat_output: heater
control_parameters:
#kp: 0.1
#ki: 0.00487
#kd: 12.56301
# kp: 0.0
# ki: 0.0
# kd: 0.0
# parameters from autotune
kp: 0.09701
ki: 0.00013
kd: 17.99511
output_averaging_samples: 5 # smooth the output over 5 samples
derivative_averaging_samples: 5 # smooth the derivative value over 10 samples
deadband_parameters:
threshold_high: 0.5°C # deadband within +/-0.5°C of target_temperature
threshold_low: -1°C
kp_multiplier: 0.05 # proportional gain turned off inside deadband
ki_multiplier: 0.05 # integral accumulates at only 5% of normal ki
kd_multiplier: 0.0 # derviative is turned off inside deadband
deadband_output_averaging_samples: 15 # average the output over 15 samples within the deadband