I think we are close now #285
This commit is contained in:
parent
aa7fdf6457
commit
936a4ea475
|
@ -13,14 +13,23 @@ sensor:
|
|||
value_template: >
|
||||
{%- set domains = ['device_tracker'] -%}
|
||||
{%- for domain in domains -%}
|
||||
{%- for item in states[domain] if (item.attributes.source_type is defined and item.state != 'home') -%}
|
||||
{%- for item in states[domain]
|
||||
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 }}
|
||||
{%- if not loop.last -%}
|
||||
{{', '}}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}
|
||||
#-------------------------------------------
|
||||
|
||||
group:
|
||||
network:
|
||||
entities:
|
||||
|
@ -31,7 +40,7 @@ group:
|
|||
- sensor.speedtest_download
|
||||
- sensor.speedtest_upload
|
||||
- binary_sensor.carlowink
|
||||
|
||||
- sensor.network
|
||||
#-------------------------------------------------------------------------------------
|
||||
automation:
|
||||
- alias: 'Device Status'
|
||||
|
@ -40,6 +49,7 @@ automation:
|
|||
- platform: state
|
||||
entity_id:
|
||||
- sensor.network
|
||||
- binary_sensor.carlowink
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
|
@ -48,6 +58,6 @@ automation:
|
|||
value3: "{{ trigger.to_state.state }}"
|
||||
who: 'carlo'
|
||||
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
value1: "The following Devices are in an Offline state {{ trigger.to_state.state }}"
|
||||
# - service: script.speech_engine
|
||||
# data_template:
|
||||
# value1: "The following Devices are in an Offline state {{ trigger.to_state.state }}"
|
||||
|
|
|
@ -47,11 +47,6 @@ sensor:
|
|||
monitored_conditions:
|
||||
- chime_level
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
skybell:
|
||||
value_template: "{{ 'Online' if is_state_attr('binary_sensor.skybell_stone_door_button', 'status', 'up') else 'Offline' }}"
|
||||
|
||||
switch:
|
||||
- platform: skybell
|
||||
monitored_conditions:
|
||||
|
|
Loading…
Reference in New Issue