Improved split of addon climate files
To make it easier to maintain
This commit is contained in:
@@ -22,6 +22,33 @@ substitutions:
|
|||||||
addon_climate_heat: "false"
|
addon_climate_heat: "false"
|
||||||
##############################
|
##############################
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: thermostat
|
||||||
|
name: ${device_name} Thermostat
|
||||||
|
id: thermostat_embedded
|
||||||
|
sensor: temp_nspanel
|
||||||
|
min_idle_time: ${min_idle_time}s
|
||||||
|
visual:
|
||||||
|
min_temperature: ${temp_min} ${temp_units}
|
||||||
|
max_temperature: ${temp_max} ${temp_units}
|
||||||
|
temperature_step: ${temp_step} ${temp_units}
|
||||||
|
idle_action:
|
||||||
|
- switch.turn_off: relay_${heater_relay}
|
||||||
|
default_preset: "Off"
|
||||||
|
on_boot_restore_from: memory
|
||||||
|
preset:
|
||||||
|
- name: "Off"
|
||||||
|
default_target_temperature_low: ${temp_min} ${temp_units}
|
||||||
|
mode: "off"
|
||||||
|
- name: Home
|
||||||
|
default_target_temperature_low: 21 ${temp_units}
|
||||||
|
internal: false
|
||||||
|
on_state:
|
||||||
|
- logger.log: Climate state changed - Start
|
||||||
|
- script.execute: addon_climate_update_page_climate
|
||||||
|
- script.execute: addon_climate_update_page_home
|
||||||
|
- logger.log: Climate state changed - End
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
##### Is embedded thermostat visible on climate page? #####
|
##### Is embedded thermostat visible on climate page? #####
|
||||||
- id: is_addon_climate_visible
|
- id: is_addon_climate_visible
|
||||||
|
|||||||
@@ -17,35 +17,17 @@ substitutions:
|
|||||||
##############################
|
##############################
|
||||||
|
|
||||||
climate:
|
climate:
|
||||||
- platform: thermostat
|
- id: !extend thermostat_embedded
|
||||||
name: ${device_name} Thermostat
|
|
||||||
id: thermostat_embedded
|
|
||||||
sensor: temp_nspanel
|
|
||||||
min_cooling_off_time: ${min_off_time}s
|
min_cooling_off_time: ${min_off_time}s
|
||||||
min_cooling_run_time: ${min_run_time}s
|
min_cooling_run_time: ${min_run_time}s
|
||||||
min_idle_time: ${min_idle_time}s
|
|
||||||
visual:
|
|
||||||
min_temperature: ${temp_min} ${temp_units}
|
|
||||||
max_temperature: ${temp_max} ${temp_units}
|
|
||||||
temperature_step: ${temp_step} ${temp_units}
|
|
||||||
cool_action:
|
cool_action:
|
||||||
- switch.turn_on: relay_${cooler_relay}
|
- switch.turn_on: relay_${cooler_relay}
|
||||||
idle_action:
|
|
||||||
- switch.turn_off: relay_${cooler_relay}
|
|
||||||
default_preset: "Off"
|
|
||||||
on_boot_restore_from: memory
|
|
||||||
preset:
|
preset:
|
||||||
- name: "Off"
|
- name: "Off"
|
||||||
default_target_temperature_high: ${temp_min} ${temp_units}
|
default_target_temperature_high: ${temp_min} ${temp_units}
|
||||||
mode: "off"
|
mode: "off"
|
||||||
- name: Home
|
- name: Home
|
||||||
default_target_temperature_high: 21 ${temp_units}
|
default_target_temperature_high: 21 ${temp_units}
|
||||||
internal: false
|
|
||||||
on_state:
|
|
||||||
- logger.log: Climate state changed - Start
|
|
||||||
- script.execute: addon_climate_update_page_climate
|
|
||||||
- script.execute: addon_climate_update_page_home
|
|
||||||
- logger.log: Climate state changed - End
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include nspanel_esphome_addon_climate_base.yaml
|
core_package: !include nspanel_esphome_addon_climate_base.yaml
|
||||||
|
|||||||
@@ -17,35 +17,17 @@ substitutions:
|
|||||||
##############################
|
##############################
|
||||||
|
|
||||||
climate:
|
climate:
|
||||||
- platform: thermostat
|
- id: !extend thermostat_embedded
|
||||||
name: ${device_name} Thermostat
|
|
||||||
id: thermostat_embedded
|
|
||||||
sensor: temp_nspanel
|
|
||||||
min_heating_off_time: ${min_off_time}s
|
min_heating_off_time: ${min_off_time}s
|
||||||
min_heating_run_time: ${min_run_time}s
|
min_heating_run_time: ${min_run_time}s
|
||||||
min_idle_time: ${min_idle_time}s
|
|
||||||
visual:
|
|
||||||
min_temperature: ${temp_min} ${temp_units}
|
|
||||||
max_temperature: ${temp_max} ${temp_units}
|
|
||||||
temperature_step: ${temp_step} ${temp_units}
|
|
||||||
heat_action:
|
heat_action:
|
||||||
- switch.turn_on: relay_${heater_relay}
|
- switch.turn_on: relay_${heater_relay}
|
||||||
idle_action:
|
|
||||||
- switch.turn_off: relay_${heater_relay}
|
|
||||||
default_preset: "Off"
|
|
||||||
on_boot_restore_from: memory
|
|
||||||
preset:
|
preset:
|
||||||
- name: "Off"
|
- name: "Off"
|
||||||
default_target_temperature_low: ${temp_min} ${temp_units}
|
default_target_temperature_low: ${temp_min} ${temp_units}
|
||||||
mode: "off"
|
mode: "off"
|
||||||
- name: Home
|
- name: Home
|
||||||
default_target_temperature_low: 21 ${temp_units}
|
default_target_temperature_low: 21 ${temp_units}
|
||||||
internal: false
|
|
||||||
on_state:
|
|
||||||
- logger.log: Climate state changed - Start
|
|
||||||
- script.execute: addon_climate_update_page_climate
|
|
||||||
- script.execute: addon_climate_update_page_home
|
|
||||||
- logger.log: Climate state changed - End
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include nspanel_esphome_addon_climate_base.yaml
|
core_package: !include nspanel_esphome_addon_climate_base.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user