Updated with Number of Online cameras.

This commit is contained in:
ccostan 2018-06-12 21:55:02 -04:00
parent 64f4398918
commit 047da64886
2 changed files with 13 additions and 0 deletions

View File

@ -172,6 +172,18 @@ sensor:
{% else %} {% else %}
0 0
{% endif %} {% endif %}
camera_count:
friendly_name: 'Number of online Cameras'
value_template: >
{%- set domains = ['camera'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
group: group:
tweet_stats: tweet_stats:
@ -189,6 +201,7 @@ group:
- sensor.lights_count - sensor.lights_count
- sensor.tracker_count - sensor.tracker_count
- sensor.protect_count - sensor.protect_count
- sensor.camera_count
############################################################# #############################################################

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 152 KiB