New tweet language.
This commit is contained in:
parent
2964d459b9
commit
b2bb25c65b
|
@ -31,8 +31,6 @@
|
||||||
] | random + " #SavingWater"}}
|
] | random + " #SavingWater"}}
|
||||||
image: >-
|
image: >-
|
||||||
{{ [
|
{{ [
|
||||||
"/config/www/custom_ui/floorplan/images/branding/sleeping.png",
|
|
||||||
"/config/www/custom_ui/floorplan/images/branding/sprinkler.png",
|
"/config/www/custom_ui/floorplan/images/branding/sprinkler.png",
|
||||||
"/config/www/custom_ui/floorplan/images/branding/sprinkler2.png"
|
"/config/www/custom_ui/floorplan/images/branding/sprinkler2.png"
|
||||||
|
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
|
@ -132,7 +132,28 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
tracker_count:
|
||||||
|
friendly_name: 'Number of Devices'
|
||||||
|
value_template: >
|
||||||
|
{%- set domains = ['device_tracker'] -%}
|
||||||
|
{%- for domain in domains -%}
|
||||||
|
{%- for item in states[domain] -%}
|
||||||
|
{% if loop.first %}
|
||||||
|
{{loop.length}}
|
||||||
|
{% endif %}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
lights_count:
|
||||||
|
friendly_name: 'Number of Lights'
|
||||||
|
value_template: >
|
||||||
|
{%- set domains = ['light'] -%}
|
||||||
|
{%- for domain in domains -%}
|
||||||
|
{%- for item in states[domain] -%}
|
||||||
|
{% if loop.first %}
|
||||||
|
{{loop.length}}
|
||||||
|
{% endif %}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
|
||||||
group:
|
group:
|
||||||
tweet_stats:
|
tweet_stats:
|
||||||
|
@ -147,6 +168,8 @@ group:
|
||||||
- sensor.script_count
|
- sensor.script_count
|
||||||
- sensor.binary_sensor_count
|
- sensor.binary_sensor_count
|
||||||
- sensor.automation_count
|
- sensor.automation_count
|
||||||
|
- sensor.lights_count
|
||||||
|
- sensor.device_tracker
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ tweet_engine_setup:
|
||||||
"Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
"Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
||||||
"My Home Assistant has been tested by Travis-CI and {{states('sensor.ccostanhomeassistantconfig_state')}}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
"My Home Assistant has been tested by Travis-CI and {{states('sensor.ccostanhomeassistantconfig_state')}}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
||||||
"{{((states.sensor.sensor_count.state | int) + (states.sensor.binary_sensor_count.state | int))}} sensors feed my Smart Home #data. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
"{{((states.sensor.sensor_count.state | int) + (states.sensor.binary_sensor_count.state | int))}} sensors feed my Smart Home #data. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
||||||
"{{states.sensor.automation_count.state}} automations and {{states.sensor.script_count.state}} scripts make my home smart (https://github.com/CCOSTAN/Home-AssistantConfig#logo)"
|
"{{states.sensor.automation_count.state}} automations and {{states.sensor.script_count.state}} scripts make my home smart (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
|
||||||
|
"Nevermind me. I am just keeping track of {{states.sensor.lights_count.state}} lights and {{states.sensor.devices_count.state}} devices in the house. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)"
|
||||||
],
|
],
|
||||||
|
|
||||||
"door": [
|
"door": [
|
||||||
|
|
Loading…
Reference in New Issue