mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 16:44:46 +00:00
22 lines
758 B
YAML
22 lines
758 B
YAML
|
##############################################################################
|
||
|
### Detect when things are on and forgotten about. Like any Good Watchdog.
|
||
|
##############################################################################
|
||
|
|
||
|
##############################################################################
|
||
|
|
||
|
- alias: "NOTIFY IF IP CHANGES"
|
||
|
hide_entity: True
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: sensor.ipchange
|
||
|
from: 'False'
|
||
|
to: 'True'
|
||
|
action:
|
||
|
- service: script.ifttt_notify
|
||
|
data_template:
|
||
|
value1: 'Changed IP address:'
|
||
|
value2: "New IP: {{ states('sensor.exteral_ip') }}"
|
||
|
value3: ' - Be sure to Change DNS!'
|
||
|
|
||
|
##############################################################################
|