I’m trying to create an automation to alert me if something on my network changes to not_home. I’m using the asuswrt tracker.
So Have this group of devices I want to keep an eye on
network_devices_to_track:
name: Network Devices to Track
view: no
entities:
- device_tracker.ecobee_downstairs
- device_tracker.ecobee_upstairs
- device_tracker.front_doorbell_camera
- device_tracker.harmony_hub_1
- device_tracker.harmonyhub_2
- device_tracker.hue
- device_tracker.office
- device_tracker.plex
- device_tracker.tvdeice
- device_tracker.sonos_sub
- device_tracker.sonosplaybar
- device_tracker.sony_tv
- device_tracker.tivomini
And I have this automation
- alias: Notify me if device falls off the network
trigger:
- platform: state
entity_id: network_devices_to_track
from: 'home'
to: 'not_home'
action:
- service: notify.my_iphone
data:
message: "Something is off the network"
title: "network device off the network"
How to I get the Message to tell me which device is “not_home”?