mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Check for external IP changes!
This commit is contained in:
@@ -41,7 +41,13 @@
|
||||
brightness: 150
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.kitchen_accents
|
||||
- delay: 00:08:00
|
||||
- delay: '00:00:30'
|
||||
- service: switch.turn_on
|
||||
- entity_id: switch.living_room_outlet
|
||||
- delay: '00:00:30'
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.foyer_outlet
|
||||
- delay: '00:08:00'
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.S1
|
||||
@@ -106,3 +106,16 @@
|
||||
entity_id: group.outdoor_lights
|
||||
|
||||
##############################################################################
|
||||
|
||||
- alias: "NOTIFY IF IP CHANGES"
|
||||
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 Cahnge DNS!'
|
||||
|
||||
Reference in New Issue
Block a user