device tracker network
This commit is contained in:
parent
30c91d7e0d
commit
c803b91fea
@ -1,11 +1,10 @@
|
|||||||
automation:
|
automation:
|
||||||
- alias: light_still_on_notification
|
- alias: light_still_on_still_needed_notify
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.all_lights
|
- light.all_lights
|
||||||
from: "off"
|
|
||||||
to: "on"
|
to: "on"
|
||||||
for:
|
for:
|
||||||
hours: 0
|
hours: 0
|
||||||
@ -25,15 +24,42 @@ automation:
|
|||||||
message: "Lights are still on."
|
message: "Lights are still on."
|
||||||
data:
|
data:
|
||||||
actions:
|
actions:
|
||||||
- action: "LIGHT_TURN_OFF"
|
- action: "LIGHTTURNOFF"
|
||||||
title: Turn them off
|
title: Turn them off
|
||||||
icon: "sfsymbols:lightbulb"
|
icon: "sfsymbols:lightbulb"
|
||||||
|
|
||||||
|
- alias: light_still_on_iphone_offline_notify
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- device_tracker.pfsense_kais_iphone_wnsrt_de
|
||||||
|
to: not_home
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 2
|
||||||
|
seconds: 0
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.all_lights
|
||||||
|
state: "on"
|
||||||
|
action:
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
message: "Lights are still on."
|
||||||
|
data:
|
||||||
|
actions:
|
||||||
|
- action: "LIGHTTURNOFF"
|
||||||
|
title: Turn them off
|
||||||
|
icon: "sfsymbols:lightbulb"
|
||||||
|
|
||||||
|
|
||||||
- alias: light_still_on_notification_event
|
- alias: light_still_on_notification_event
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: mobile_app_notification_action
|
event_type: mobile_app_notification_action
|
||||||
event_data:
|
event_data:
|
||||||
action: "LIGHT_TURN_OFF"
|
action: "LIGHTTURNOFF"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user