Work on house status report
This commit is contained in:
@ -2,3 +2,12 @@
|
||||
{% set current = state_attr(entity_id,'brightness') %}
|
||||
{{ ((current / 255) * 100) | float | round(2) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro lightsOn(type,method) %}
|
||||
{% set lights = states('sensor.current_lights_on') %}
|
||||
{% if method == 'tts' %}
|
||||
'Around the house, there {% if lights == '1' %}is{% else %}are{% endif %}currently{{ lights }} {% if lights == '1' %}light {% else %}lights {% endif %} on. '
|
||||
{% elif method == 'text' %}
|
||||
There {% if lights == '1' %}is {% else %}are {% endif %}currently {{ lights }} {% if lights == '1' %}light {% else %}lights {% endif %}on.
|
||||
{% endif %}
|
||||
{% endmacro %}
|
Reference in New Issue
Block a user