mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-15 10:04:35 +00:00
Teach it to talk! Teach it to tweet!
This commit is contained in:
@@ -141,12 +141,6 @@ speech_engine:
|
||||
{% endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro pihole() -%}
|
||||
{% if states.sensor.pihole_ads_blocked_today.state|int > 10000 -%}
|
||||
We blocked {{ states.sensor.pihole_ads_blocked_today.state }} ads. That is {{ states.sensor.pihole_ads_percentage_blocked_today.state }}% of our internet traffic.
|
||||
{% endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro moon() -%}
|
||||
{%- if states.sensor.moon.state == 'Full moon' -%}
|
||||
Check out the full moon tonight!
|
||||
@@ -221,7 +215,7 @@ speech_engine:
|
||||
{% endif %}
|
||||
|
||||
{# call a Random fact about the house #}
|
||||
{{ ([iss, pihole, moon]|random)() }}
|
||||
{{ ([iss, moon]|random)() }}
|
||||
|
||||
{{ holiday() }}
|
||||
|
||||
|
Reference in New Issue
Block a user