From acac20a932974bb3c5432e1c9696c61e22f3b83c Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 28 Aug 2023 12:51:44 -0400 Subject: [PATCH] Remove some sensors obsoleted by the new Midea integration #113 --- packages/climate.yaml | 8 -------- templates/speech/welcome_home.yaml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/climate.yaml b/packages/climate.yaml index 1950f72..88adc41 100644 --- a/packages/climate.yaml +++ b/packages/climate.yaml @@ -20,14 +20,6 @@ template: unique_id: 3f243861-6a1f-412f-b9e3-933b54793b08 state: "{{ states('input_datetime.kallen_fan') != states('input_datetime.kallen_bedtime') }}" - sensor: - - name: "Master Bedroom Current Temp" - unique_id: 40c6b591-09d3-45cd-8cab-9838517cc08a - state: "{{ state_attr('climate.master_bedroom_aircon','current_temperature') | float }}" - availability: "{{ states('climate.master_bedroom_aircon') not in ['unavailable','unknown'] }}" - - name: "Master Bedroom Outdoor Temp" - unique_id: 1a79ac59-0faf-4de5-b546-5d6d5e151dd6 - state: "{{ state_attr('climate.master_bedroom_aircon','outdoor_temperature') | float }}" - availability: "{{ states('climate.master_bedroom_aircon') not in ['unavailable','unknown'] }}" - name: "Master Bedroom Target Temp" unique_id: 2ce31844-b115-42b8-8213-feccf24e236c state: "{{ state_attr('climate.master_bedroom_aircon','temperature') | float }}" diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 9a3471c..ad961db 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -70,7 +70,7 @@ {% if (states('sensor.climate_devices_installed') | int) > 0 %} "In climate control news, " {% if is_state('input_boolean.master_bedroom_aircon_installed','on') %} - "the master bedroom temperature is {{ state_attr('climate.master_bedroom_aircon','current_temperature') }} degrees. " + "the master bedroom temperature is {{ states('sensor.master_bedroom_aircon_indoor_temperature') | int }} degrees. " {% if is_state('climate.master_bedroom_aircon','cool') %} "and the master bedroom air conditioner is set for cooling to {{ state_attr('climate.master_bedroom_aircon','temperature') }} degrees. " {% elif is_state('climate.master_bedroom_aircon','fan_only') %}