New sensor for master bedroom aircon fan speeds

This commit is contained in:
2022-06-21 15:12:32 -04:00
parent 393f9e1775
commit dde7c9d892

View File

@ -23,8 +23,24 @@ sensor:
{% else %}
mdi:home-lightning-bolt-outline
{% endif %}
master_bedroom_aircon_fan_mode:
friendly_name: "Master Bedroom Aircon Fan Mode"
value_template: >
{{ state_attr('climate.master_bedroom_aircon','fan_mode') }}
icon_template: >
{% if is_state_attr('climate.master_bedroom_aircon','fan_mode','Auto') %}
mdi:fan-auto
{% elif is_state_attr('climate.master_bedroom_aircon','fan_mode','Low') %}
mdi:fan-speed-1
{% elif is_state_attr('climate.master_bedroom_aircon','fan_mode','Medium') %}
mdi:fan-speed-2
{% elif is_state_attr('climate.master_bedroom_aircon','fan_mode','High') %}
mdi:fan-speed-3
{% else %}
mdi:fan-off
{% endif %}
input_boolean:
master_bedroom_nighttime_protocol:
name: Master Bedroom Nighttime Protocol
icon: mdi:lightbulb-night
icon: mdi:lightbulb-night