mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-03-21 11:24:54 +00:00
Updated with Number of Online cameras.
This commit is contained in:
parent
64f4398918
commit
047da64886
config
@ -172,6 +172,18 @@ sensor:
|
||||
{% else %}
|
||||
0
|
||||
{% 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:
|
||||
tweet_stats:
|
||||
@ -189,6 +201,7 @@ group:
|
||||
- sensor.lights_count
|
||||
- sensor.tracker_count
|
||||
- sensor.protect_count
|
||||
- sensor.camera_count
|
||||
|
||||
#############################################################
|
||||
|
||||
|
Binary file not shown.
Before ![]() (image error) Size: 149 KiB After ![]() (image error) Size: 152 KiB ![]() ![]() |
Loading…
x
Reference in New Issue
Block a user