Adjustable vent speed for duct fans.
This commit is contained in:
@@ -5,13 +5,13 @@ substitutions:
|
|||||||
friendly_name: Prj 3
|
friendly_name: Prj 3
|
||||||
duct_fan_pin: GPIO14
|
duct_fan_pin: GPIO14
|
||||||
duct_fan_name: ${sn} Duct Fan Spd
|
duct_fan_name: ${sn} Duct Fan Spd
|
||||||
duct_fan_tgt_spd_in_name: ${sn} DF Tgt Spd In
|
duct_fan_vent_spd_name: ${sn} DF Vent Spd
|
||||||
duct_fan_tgt_spd_prj_name: ${sn} DF Tgt Spd Prj
|
duct_fan_tgt_spd_prj_name: ${sn} DF Tgt Spd Prj
|
||||||
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
||||||
duct_fan_pwmfreq: 5000Hz
|
duct_fan_pwmfreq: 5000Hz
|
||||||
duct_fan_off_spd: "0.0"
|
duct_fan_off_spd: "0.0"
|
||||||
duct_fan_lo_spd: "1.0"
|
duct_fan_lo_spd: "1.0"
|
||||||
duct_fan_vent_spd: "50.0"
|
duct_fan_init_spd: "60.0"
|
||||||
duct_fan_hi_spd: "100.0"
|
duct_fan_hi_spd: "100.0"
|
||||||
prjpwr_pin: GPIO19
|
prjpwr_pin: GPIO19
|
||||||
prjpwr_name: ${sn} Pwr
|
prjpwr_name: ${sn} Pwr
|
||||||
@@ -31,9 +31,6 @@ globals:
|
|||||||
- id: duct_fan_lo_spd_id
|
- id: duct_fan_lo_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_lo_spd}
|
initial_value: ${duct_fan_lo_spd}
|
||||||
- id: duct_fan_vent_spd_id
|
|
||||||
type: float
|
|
||||||
initial_value: ${duct_fan_vent_spd}
|
|
||||||
- id: duct_fan_hi_spd_id
|
- id: duct_fan_hi_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_hi_spd}
|
initial_value: ${duct_fan_hi_spd}
|
||||||
@@ -50,7 +47,7 @@ esphome:
|
|||||||
then:
|
then:
|
||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: duct_fan_output_id
|
id: duct_fan_output_id
|
||||||
level: ${duct_fan_vent_spd}%
|
level: ${duct_fan_init_spd}%
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
@@ -97,17 +94,18 @@ binary_sensor:
|
|||||||
device_class: power
|
device_class: power
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
name: "Ventilate House"
|
name: "Ventilate House"
|
||||||
entity_id: input_boolean.ventilate_house
|
entity_id: binary_sensor.ventilate_house
|
||||||
id: ventilate_house
|
id: ventilate_house
|
||||||
|
|
||||||
number:
|
number:
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_in
|
id: duct_fan_vent_spd_id
|
||||||
name: ${duct_fan_tgt_spd_in_name}
|
name: ${duct_fan_vent_spd_name}
|
||||||
optimistic: true
|
optimistic: true
|
||||||
min_value: ${duct_fan_lo_spd}
|
min_value: ${duct_fan_lo_spd}
|
||||||
max_value: ${duct_fan_hi_spd}
|
max_value: ${duct_fan_hi_spd}
|
||||||
step: 1
|
step: 10
|
||||||
|
initial_value: ${duct_fan_init_spd}
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_prj
|
id: duct_fan_tgt_spd_prj
|
||||||
name: ${duct_fan_tgt_spd_prj_name}
|
name: ${duct_fan_tgt_spd_prj_name}
|
||||||
@@ -130,7 +128,7 @@ number:
|
|||||||
curtemp = id(dallas_prj_id).state;
|
curtemp = id(dallas_prj_id).state;
|
||||||
off_spd = id(duct_fan_off_spd_id);
|
off_spd = id(duct_fan_off_spd_id);
|
||||||
lo_spd = id(duct_fan_lo_spd_id);
|
lo_spd = id(duct_fan_lo_spd_id);
|
||||||
vent_spd = id(duct_fan_vent_spd_id);
|
vent_spd = id(duct_fan_vent_spd_id).state;
|
||||||
hi_spd = id(duct_fan_hi_spd_id);
|
hi_spd = id(duct_fan_hi_spd_id);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Current Temp: %f", curtemp);
|
ESP_LOGD("fan_speed", "DEBUG Current Temp: %f", curtemp);
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ substitutions:
|
|||||||
friendly_name: Rack 2
|
friendly_name: Rack 2
|
||||||
duct_fan_pin: GPIO13
|
duct_fan_pin: GPIO13
|
||||||
duct_fan_name: ${sn} Duct Fan Spd
|
duct_fan_name: ${sn} Duct Fan Spd
|
||||||
duct_fan_tgt_spd_in_name: ${sn} DF Tgt Spd In
|
duct_fan_vent_spd_name: ${sn} DF Vent Spd
|
||||||
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
||||||
duct_fan_pwmfreq: 5000Hz
|
duct_fan_pwmfreq: 5000Hz
|
||||||
duct_fan_off_spd: "0.0"
|
duct_fan_off_spd: "0.0"
|
||||||
duct_fan_lo_spd: "1.0"
|
duct_fan_lo_spd: "1.0"
|
||||||
duct_fan_vent_spd: "50.0"
|
duct_fan_init_spd: "60.0"
|
||||||
duct_fan_hi_spd: "100.0"
|
duct_fan_hi_spd: "100.0"
|
||||||
wall_fan_pwr_pin: GPIO21
|
wall_fan_pwr_pin: GPIO21
|
||||||
wall_fan_pwr_name: ${friendly_name} Wall Fan Power
|
wall_fan_pwr_name: ${friendly_name} Wall Fan Power
|
||||||
@@ -34,9 +34,6 @@ globals:
|
|||||||
- id: duct_fan_lo_spd_id
|
- id: duct_fan_lo_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_lo_spd}
|
initial_value: ${duct_fan_lo_spd}
|
||||||
- id: duct_fan_vent_spd_id
|
|
||||||
type: float
|
|
||||||
initial_value: ${duct_fan_vent_spd}
|
|
||||||
- id: duct_fan_hi_spd_id
|
- id: duct_fan_hi_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_hi_spd}
|
initial_value: ${duct_fan_hi_spd}
|
||||||
@@ -53,7 +50,7 @@ esphome:
|
|||||||
then:
|
then:
|
||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: duct_fan_output_id
|
id: duct_fan_output_id
|
||||||
level: ${duct_fan_vent_spd}%
|
level: ${duct_fan_init_spd}%
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -112,17 +109,18 @@ sensor:
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
name: "Ventilate House"
|
name: "Ventilate House"
|
||||||
entity_id: input_boolean.ventilate_house
|
entity_id: binary_sensor.ventilate_house
|
||||||
id: ventilate_house
|
id: ventilate_house
|
||||||
|
|
||||||
number:
|
number:
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_in
|
id: duct_fan_vent_spd_id
|
||||||
name: ${duct_fan_tgt_spd_in_name}
|
name: ${duct_fan_vent_spd_name}
|
||||||
optimistic: true
|
optimistic: true
|
||||||
min_value: ${duct_fan_lo_spd}
|
min_value: ${duct_fan_lo_spd}
|
||||||
max_value: ${duct_fan_hi_spd}
|
max_value: ${duct_fan_hi_spd}
|
||||||
step: 1
|
step: 10
|
||||||
|
initial_value: ${duct_fan_init_spd}
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_out
|
id: duct_fan_tgt_spd_out
|
||||||
name: ${duct_fan_tgt_spd_out_name}
|
name: ${duct_fan_tgt_spd_out_name}
|
||||||
@@ -145,7 +143,7 @@ number:
|
|||||||
curtemp = id(dallas_out_id).state;
|
curtemp = id(dallas_out_id).state;
|
||||||
off_spd = id(duct_fan_off_spd_id);
|
off_spd = id(duct_fan_off_spd_id);
|
||||||
lo_spd = id(duct_fan_lo_spd_id);
|
lo_spd = id(duct_fan_lo_spd_id);
|
||||||
vent_spd = id(duct_fan_vent_spd_id);
|
vent_spd = id(duct_fan_vent_spd_id).state;
|
||||||
hi_spd = id(duct_fan_hi_spd_id);
|
hi_spd = id(duct_fan_hi_spd_id);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Current Temp: %f", curtemp);
|
ESP_LOGD("fan_speed", "DEBUG Current Temp: %f", curtemp);
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ substitutions:
|
|||||||
friendly_name: Rack 3
|
friendly_name: Rack 3
|
||||||
duct_fan_pin: GPIO13
|
duct_fan_pin: GPIO13
|
||||||
duct_fan_name: ${sn} Duct Fan Spd
|
duct_fan_name: ${sn} Duct Fan Spd
|
||||||
duct_fan_tgt_spd_in_name: ${sn} DF Tgt Spd In
|
duct_fan_vent_spd_name: ${sn} DF Vent Spd
|
||||||
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
duct_fan_tgt_spd_out_name: ${sn} DF Tgt Spd Out
|
||||||
duct_fan_pwmfreq: 5000Hz
|
duct_fan_pwmfreq: 5000Hz
|
||||||
duct_fan_off_spd: "0.0"
|
duct_fan_off_spd: "0.0"
|
||||||
duct_fan_lo_spd: "1.0"
|
duct_fan_lo_spd: "1.0"
|
||||||
duct_fan_vent_spd: "50.0"
|
duct_fan_init_spd: "60.0"
|
||||||
duct_fan_amppwr_on_lo_spd: "20.0"
|
duct_fan_amppwr_on_lo_spd: "20.0"
|
||||||
duct_fan_hi_spd: "100.0"
|
duct_fan_hi_spd: "100.0"
|
||||||
amppwr_pin: GPIO19
|
amppwr_pin: GPIO19
|
||||||
@@ -32,9 +32,6 @@ globals:
|
|||||||
- id: duct_fan_amppwr_on_lo_spd_id
|
- id: duct_fan_amppwr_on_lo_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_amppwr_on_lo_spd}
|
initial_value: ${duct_fan_amppwr_on_lo_spd}
|
||||||
- id: duct_fan_vent_spd_id
|
|
||||||
type: float
|
|
||||||
initial_value: ${duct_fan_vent_spd}
|
|
||||||
- id: duct_fan_hi_spd_id
|
- id: duct_fan_hi_spd_id
|
||||||
type: float
|
type: float
|
||||||
initial_value: ${duct_fan_hi_spd}
|
initial_value: ${duct_fan_hi_spd}
|
||||||
@@ -51,7 +48,7 @@ esphome:
|
|||||||
then:
|
then:
|
||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: duct_fan_output_id
|
id: duct_fan_output_id
|
||||||
level: ${duct_fan_vent_spd}%
|
level: ${duct_fan_init_spd}%
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
@@ -94,17 +91,18 @@ binary_sensor:
|
|||||||
device_class: power
|
device_class: power
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
name: "Ventilate House"
|
name: "Ventilate House"
|
||||||
entity_id: input_boolean.ventilate_house
|
entity_id: binary_sensor.ventilate_house
|
||||||
id: ventilate_house
|
id: ventilate_house
|
||||||
|
|
||||||
number:
|
number:
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_in_id
|
id: duct_fan_vent_spd_id
|
||||||
name: ${duct_fan_tgt_spd_in_name}
|
name: ${duct_fan_vent_spd_name}
|
||||||
optimistic: true
|
optimistic: true
|
||||||
min_value: ${duct_fan_lo_spd}
|
min_value: ${duct_fan_lo_spd}
|
||||||
max_value: ${duct_fan_hi_spd}
|
max_value: ${duct_fan_hi_spd}
|
||||||
step: 1
|
step: 10
|
||||||
|
initial_value: ${duct_fan_init_spd}
|
||||||
- platform: template
|
- platform: template
|
||||||
id: duct_fan_tgt_spd_out_id
|
id: duct_fan_tgt_spd_out_id
|
||||||
name: ${duct_fan_tgt_spd_out_name}
|
name: ${duct_fan_tgt_spd_out_name}
|
||||||
@@ -127,7 +125,7 @@ number:
|
|||||||
curtemp = id(dallas_out_id).state;
|
curtemp = id(dallas_out_id).state;
|
||||||
off_spd = id(duct_fan_off_spd_id);
|
off_spd = id(duct_fan_off_spd_id);
|
||||||
lo_spd = id(duct_fan_lo_spd_id);
|
lo_spd = id(duct_fan_lo_spd_id);
|
||||||
vent_spd = id(duct_fan_vent_spd_id);
|
vent_spd = id(duct_fan_vent_spd_id).state;
|
||||||
hi_spd = id(duct_fan_hi_spd_id);
|
hi_spd = id(duct_fan_hi_spd_id);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
ESP_LOGD("fan_speed", "DEBUG Ventilate House: %d", id(ventilate_house).state);
|
||||||
ESP_LOGD("fan_speed", "DEBUG Amp Power: %d", id(amppwr_id).state);
|
ESP_LOGD("fan_speed", "DEBUG Amp Power: %d", id(amppwr_id).state);
|
||||||
|
|||||||
Reference in New Issue
Block a user