Very Close to a final answer here #285 thanks to @arsaboo
This commit is contained in:
parent
936a4ea475
commit
4e226a5bd9
|
@ -17,15 +17,18 @@ sensor:
|
||||||
if (item.attributes.source_type is defined and item.state != 'home' and item.attributes.friendly_name not in
|
if (item.attributes.source_type is defined and item.state != 'home' and item.attributes.friendly_name not in
|
||||||
[
|
[
|
||||||
'Chromecast Audio 2',
|
'Chromecast Audio 2',
|
||||||
'Entry Alarm Panel',
|
'Entry Alarm Panel',
|
||||||
'Dash Button',
|
'Dash Button',
|
||||||
'Master Bedroom Roku',
|
'Master Bedroom Roku',
|
||||||
'Wii',
|
'Brother Printer',
|
||||||
'Withings Scale'
|
'Wii',
|
||||||
]) -%}
|
'Withings Scale'
|
||||||
{{ item.attributes.friendly_name }}
|
])
|
||||||
|
and(as_timestamp(now()) - as_timestamp(item.last_changed)) > 600 -%}
|
||||||
|
{{ item.attributes.friendly_name }} - {{((as_timestamp(now()) - as_timestamp(item.last_changed))/60) | round() }} minutes
|
||||||
{%- if not loop.last -%}
|
{%- if not loop.last -%}
|
||||||
{{', '}}
|
{{'
|
||||||
|
'}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Loading…
Reference in New Issue