From dde7c9d89214a997ed9631c64bc526e26bf226f4 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 21 Jun 2022 15:12:32 -0400 Subject: [PATCH] New sensor for master bedroom aircon fan speeds --- packages/climate.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/climate.yaml b/packages/climate.yaml index 4c79899..9386af7 100644 --- a/packages/climate.yaml +++ b/packages/climate.yaml @@ -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 \ No newline at end of file + icon: mdi:lightbulb-night