Cleaned up climate file a bit

This commit is contained in:
2023-03-27 23:36:35 -04:00
parent 41a5ede268
commit e58c63dc86

View File

@ -4,34 +4,22 @@ sensor:
master_bedroom_current_temp: master_bedroom_current_temp:
friendly_name: "Master Bedroom Current Temp" friendly_name: "Master Bedroom Current Temp"
unique_id: 40c6b591-09d3-45cd-8cab-9838517cc08a unique_id: 40c6b591-09d3-45cd-8cab-9838517cc08a
value_template: > value_template: "{{ state_attr('climate.master_bedroom_aircon','current_temperature') | float }}"
{{ state_attr('climate.master_bedroom_aircon','current_temperature') | float }}
master_bedroom_outdoor_temp: master_bedroom_outdoor_temp:
friendly_name: "Master Bedroom Outdoor Temp" friendly_name: "Master Bedroom Outdoor Temp"
unique_id: 1a79ac59-0faf-4de5-b546-5d6d5e151dd6 unique_id: 1a79ac59-0faf-4de5-b546-5d6d5e151dd6
value_template: > value_template: "{{ state_attr('climate.master_bedroom_aircon','outdoor_temperature') | float }}"
{{ state_attr('climate.master_bedroom_aircon','outdoor_temperature') | float }}
master_bedroom_target_temp: master_bedroom_target_temp:
friendly_name: "Master Bedroom Target Temp" friendly_name: "Master Bedroom Target Temp"
unique_id: 2ce31844-b115-42b8-8213-feccf24e236c unique_id: 2ce31844-b115-42b8-8213-feccf24e236c
value_template: > value_template: "{{ state_attr('climate.master_bedroom_aircon','temperature') | float }}"
{{ state_attr('climate.master_bedroom_aircon','temperature') | float }}
master_bedroom_aircon_eco_mode: master_bedroom_aircon_eco_mode:
friendly_name: "Master Bedroom Eco Mode" friendly_name: "Master Bedroom Eco Mode"
unique_id: edf36e23-adcf-4506-80eb-a14f4ea2fce0 unique_id: edf36e23-adcf-4506-80eb-a14f4ea2fce0
value_template: >- value_template: "{{ is_state_attr('climate.master_bedroom_aircon','preset_mode','eco') }}"
{% if is_state_attr('climate.master_bedroom_aircon','preset_mode','eco') %}
On
{% elif is_state_attr('climate.master_bedroom_aircon','preset_mode','none') %}
Off
{% else %}
Off
{% endif %}
icon_template: >- icon_template: >-
{% if is_state_attr('climate.master_bedroom_aircon','preset_mode','eco') %} {% if is_state_attr('climate.master_bedroom_aircon','preset_mode','eco') %}
mdi:home-lightning-bolt mdi:home-lightning-bolt
{% elif is_state_attr('climate.master_bedroom_aircon','preset_mode','none') %}
mdi:home-lightning-bolt-outline
{% else %} {% else %}
mdi:home-lightning-bolt-outline mdi:home-lightning-bolt-outline
{% endif %} {% endif %}
@ -39,8 +27,7 @@ sensor:
master_bedroom_aircon_fan_mode: master_bedroom_aircon_fan_mode:
friendly_name: "Master Bedroom Aircon Fan Mode" friendly_name: "Master Bedroom Aircon Fan Mode"
unique_id: c0e4f9ba-0c6c-4673-9a75-13f253f2f2e8 unique_id: c0e4f9ba-0c6c-4673-9a75-13f253f2f2e8
value_template: > value_template: "{{ state_attr('climate.master_bedroom_aircon','fan_mode') }}"
{{ state_attr('climate.master_bedroom_aircon','fan_mode') }}
icon_template: > icon_template: >
{% if is_state_attr('climate.master_bedroom_aircon','fan_mode','Auto') %} {% if is_state_attr('climate.master_bedroom_aircon','fan_mode','Auto') %}
mdi:fan-auto mdi:fan-auto
@ -61,21 +48,28 @@ input_boolean:
kallen_bedtime_protocol: kallen_bedtime_protocol:
name: Kallen Bedtime Protocol name: Kallen Bedtime Protocol
icon: mdi:lightbulb-night icon: mdi:lightbulb-night
# Turn on when master bedroom air conditioner is installed, turn off in winter when we take it out, for smarter automations # Turn on when master bedroom air conditioner is installed, turn off in winter when we take it out, for smarter automations
master_bedroom_aircon_installed: master_bedroom_aircon_installed:
name: Master Bedroom Aircon Installed name: Master Bedroom Aircon Installed
icon: mdi:tools icon: mdi:tools
# Same thing, but for Emma's bedroom air conditioner # Same thing, but for Emma's bedroom air conditioner
emma_bedroom_aircon_installed: emma_bedroom_aircon_installed:
name: Emma Bedroom Aircon Installed name: Emma Bedroom Aircon Installed
icon: mdi:tools icon: mdi:tools
# Used internally for automations to know if cooling time has passed or not # Used internally for automations to know if cooling time has passed or not
master_bedroom_cooling_on: master_bedroom_cooling_on:
name: Master Bedroom Cooling On name: Master Bedroom Cooling On
icon: mdi:snowflake
# Activated if the day will be excessively hot. For use with automations for daytime climate control. # Activated if the day will be excessively hot. For use with automations for daytime climate control.
hot_day: hot_day:
name: Hot Day name: Hot Day
icon: mdi:heat-wave icon: mdi:heat-wave
# Activated if the day will be excessively cold. For use with automations for daytime climate control.
cold_day: cold_day:
name: Cold Day name: Cold Day
icon: mdi:snowflake icon: mdi:snowflake