Don't really need to read climate info when there's nothing to read
This commit is contained in:
@@ -137,6 +137,15 @@
|
|||||||
states.light.front_porch_light
|
states.light.front_porch_light
|
||||||
] %}
|
] %}
|
||||||
{{ lights | selectattr('state','eq','on') | list | count }}
|
{{ lights | selectattr('state','eq','on') | list | count }}
|
||||||
|
climate_devices_installed:
|
||||||
|
friendly_name: Climate Devices Installed
|
||||||
|
unit_of_measurement: 'installed'
|
||||||
|
value_template: >-
|
||||||
|
{% set devices = [
|
||||||
|
states.input_boolean.master_bedroom_aircon_installed,
|
||||||
|
states.input_boolean.nursery_aircon_installed
|
||||||
|
] %}
|
||||||
|
{{ devices | selectattr('state','eq','on') | list | count }}
|
||||||
front_porch_color_temp:
|
front_porch_color_temp:
|
||||||
friendly_name: Front Porch Color Temp
|
friendly_name: Front Porch Color Temp
|
||||||
unit_of_measurement: 'mireds'
|
unit_of_measurement: 'mireds'
|
||||||
|
|||||||
@@ -83,24 +83,26 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
"The current climate control situation is as follows. "
|
{% if (states('sensor.climate_devices_installed') | int) > 0 %}
|
||||||
{% if is_state('input_boolean.master_bedroom_aircon_installed','on') %}
|
"The current climate control situation is as follows. "
|
||||||
"the master bedroom temperature is currently {{ state_attr('climate.master_bedroom_aircon','current_temperature') }} degrees. "
|
{% if is_state('input_boolean.master_bedroom_aircon_installed','on') %}
|
||||||
{% if is_state('climate.master_bedroom_aircon','cool') %}
|
"the master bedroom temperature is currently {{ state_attr('climate.master_bedroom_aircon','current_temperature') }} degrees. "
|
||||||
"and the master bedroom air conditioner is currently set for cooling to {{ state_attr('climate.master_bedroom_aircon','temperature') }} degrees. "
|
{% if is_state('climate.master_bedroom_aircon','cool') %}
|
||||||
{% elif is_state('climate.master_bedroom_aircon','fan_only') %}
|
"and the master bedroom air conditioner is currently set for cooling to {{ state_attr('climate.master_bedroom_aircon','temperature') }} degrees. "
|
||||||
"and the master bedroom air conditioner is currently in fan only mode. "
|
{% elif is_state('climate.master_bedroom_aircon','fan_only') %}
|
||||||
{% elif is_state('climate.master_bedroom_aircon','dry') %}
|
"and the master bedroom air conditioner is currently in fan only mode. "
|
||||||
"and the master bedroom air conditioner is currently moonlighting as a dehumidifier. "
|
{% elif is_state('climate.master_bedroom_aircon','dry') %}
|
||||||
{% elif is_state('climate.master_bedroom_aircon','off') %}
|
"and the master bedroom air conditioner is currently moonlighting as a dehumidifier. "
|
||||||
"and the master bedroom air conditioner is currently not running. "
|
{% elif is_state('climate.master_bedroom_aircon','off') %}
|
||||||
{% elif is_state('climate.master_bedroom_aircon','auto') %}
|
"and the master bedroom air conditioner is currently not running. "
|
||||||
"and the master bedroom air conditioner is making its own decisions. Be afraid, be very afraid. "
|
{% elif is_state('climate.master_bedroom_aircon','auto') %}
|
||||||
{% else %}
|
"and the master bedroom air conditioner is making its own decisions. Be afraid, be very afraid. "
|
||||||
"and the master bedroom air conditioner is currently not speaking to me. Was it something I said? "
|
{% else %}
|
||||||
{% endif %}
|
"and the master bedroom air conditioner is currently not speaking to me. Was it something I said? "
|
||||||
{% else %}
|
{% endif %}
|
||||||
"There is no air conditioner or temperature sensor currently installed in the master bedroom. "
|
{% else %}
|
||||||
|
"There is no air conditioner or temperature sensor currently installed in the master bedroom. "
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user