-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsensor.yaml
48 lines (47 loc) · 2.71 KB
/
sensor.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
#sensors:
#House Pellet Stove
- platform: template
sensors:
house_error_code_decoded:
value_template: >
{% set Pval2 = states('sensor.house_stove_error_code') | float(0) %}
{% if Pval2 == 32768 %} E2 Failure to ignite Pot
{% elif Pval2 == 16384 %} E1 Fire went out, likely out of pellets
{% elif Pval2 == 4096 %} E7 Power previously lost
{% elif Pval2 == 2048 %} E5 Door is open
{% elif Pval2 == 256 %} MCU Comms failed. Check tx/rx wires & Restart Stove
{% elif Pval2 == 32 %} ESO3 OPEN at the room sensor, replace sensor
{% elif Pval2 == 16 %} ESC3 SHORT at the room sensor, replace sensor
{% elif Pval2 == 8 %} ESO1 OPEN at the h.temp sensor, replace sensor
{% elif Pval2 == 4 %} ESC1 SHORT at the h.temp sensor, possibly on P1 - chg to P2 or lower
{% elif Pval2 == 2 %} ESO2 OPEN at the protection sensor. replace sensor
{% elif Pval2 == 1 %} ESC2 SHORT at the protection sensor. replace sensor
{% elif Pval2 == 0 %} Normal Operation
{% endif %}
#display yes or no
house_bs_error_yesno:
value_template: >
{% if is_state('binary_sensor.bs_stove_error', 'on') %} Yes
{% elif is_state('binary_sensor.bs_stove_error', 'off') %} No
{% endif %}
#just for graphing the value.
house_bs_error_10:
value_template: >
{% if is_state('binary_sensor.bs_stove_error', 'on') %} {{60}}
{% elif is_state('binary_sensor.bs_stove_error', 'off') %} {{55}}
{% endif %}
#Cooling or lighting?
house_stove_pipe_heating_or_cooling:
value_template: >
{% if is_state('binary_sensor.house_stove_pipe_temp_falling', 'on') and is_state('binary_sensor.house_stove_pipe_temp_rising', 'off') and states('sensor.house_stove_pipe_temp') | float(0) > 100 %} Cooling
{% elif is_state( 'binary_sensor.house_stove_pipe_temp_rising', 'on') and is_state('binary_sensor.house_stove_pipe_temp_falling', 'off') and states('sensor.house_stove_pipe_temp') | float(0) > 100%} Heating
{% elif states('sensor.house_stove_pipe_temp') | float(0) <= 100 %}
Idling & Cool
{% else %}
No Data
{% endif %}
# Detect Goodbye Message Failure if curr. temp is 4 degrees <= set temp
house_stove_error:
value_template: "{{ states('sensor.house_stove_current_temp')|float(0) +4 <= states('sensor.house_stove_set_temp')|float(0) }}"
house_stove_hvac_action:
value_template: = "{{state_attr('climate.dev32_wood_pellet_stove','hvac_action')}}"