Hi folks,
I want to be notified, when a special networkdevice will fail.
the entitiy looks like this:
source_type: router
ip: 192.168.178.65
mac: 00:EE:4D:CE:10:7E
host_name: CANBUS-CLIENT
last_time_reachable: '2021-08-31T10:56:35+00:00'
friendly_name: CANBUS-CLIENT
icon: mdi:lan-connect
and I made an automation like this:
- id: '1630407735728'
alias: Ausfall CANBUS-CLIENT
description: ''
trigger:
- platform: state
entity_id: device_tracker.canbus_client
attribute: last_time_reachable
condition:
- condition: not
conditions:
- condition: state
entity_id: device_tracker.canbus_client
state: CANBUS-CLIENT
attribute: host_name
action:
- service: notify.mobile_app_oneplus_a6003
data:
message: CANBUS-CLIENT ist ausgefallen
mode: single
Why does it not work?