From 4e226a5bd913bc3e1f0fbc432882118836c269f2 Mon Sep 17 00:00:00 2001 From: ccostan Date: Fri, 19 Jan 2018 16:22:03 -0500 Subject: [PATCH] Very Close to a final answer here #285 thanks to @arsaboo --- packages/network.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/network.yaml b/packages/network.yaml index d33eeacb..d1745430 100755 --- a/packages/network.yaml +++ b/packages/network.yaml @@ -17,15 +17,18 @@ sensor: if (item.attributes.source_type is defined and item.state != 'home' and item.attributes.friendly_name not in [ 'Chromecast Audio 2', - 'Entry Alarm Panel', - 'Dash Button', - 'Master Bedroom Roku', - 'Wii', - 'Withings Scale' - ]) -%} - {{ item.attributes.friendly_name }} + 'Entry Alarm Panel', + 'Dash Button', + 'Master Bedroom Roku', + 'Brother Printer', + 'Wii', + 'Withings Scale' + ]) + 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 -%} - {{', '}} + {{' + '}} {%- endif -%} {%- endfor -%} {%- endfor -%}