Tweak climate news in welcome home briefing #97, close #116

This commit is contained in:
2023-08-30 16:12:38 -04:00
parent aaa5bb9b91
commit 595330c9ad

View File

@ -68,9 +68,9 @@
<p>
{% 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 {{ states('sensor.master_bedroom_aircon_indoor_temperature') | int }} degrees. "
{% if not is_state('climate.master_bedroom_aircon','off') %}
{% 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') %}
@ -82,10 +82,11 @@
{% else %}
"and the master bedroom air conditioner is currently not speaking to me. Was it something I said? "
{% endif %}
{% else %}
{% endif %}
{% elif is_state('input_boolean.master_bedroom_aircon_installed','off') %}
"There is no air conditioner or temperature sensor installed in the master bedroom. "
{% endif %}
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %}
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') and is_state('fan.emma_air_conditioner','on') %}
"Emma's air conditioner is {{ states('fan.emma_air_conditioner') }}. "
{% endif %}
{% endif %}