mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 16:44:46 +00:00
Check for external IP changes!
This commit is contained in:
parent
6d46688eb3
commit
031775ec64
@ -54,10 +54,8 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt
|
|||||||
|
|
||||||
#Todo List
|
#Todo List
|
||||||
|
|
||||||
* Create script/automation for staggered shutdown of switches. (Nighttime stuff)
|
|
||||||
* AutoIt script to control lights via REST and also auto light office when I am working on Laptop.
|
* AutoIt script to control lights via REST and also auto light office when I am working on Laptop.
|
||||||
* On motion from Doorbell (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors.
|
* On motion from Doorbell (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors.
|
||||||
* Notifications and Close garage doors if left open after 9 or 10 PM.
|
|
||||||
* Monitor the reflection rates of Garadget and notify when they being to drop too low when closed (indicating a shift in the controller)
|
* Monitor the reflection rates of Garadget and notify when they being to drop too low when closed (indicating a shift in the controller)
|
||||||
* Configure the Alexa Component.
|
* Configure the Alexa Component.
|
||||||
* Put Dash Buttons out there.
|
* Put Dash Buttons out there.
|
||||||
|
@ -41,7 +41,13 @@
|
|||||||
brightness: 150
|
brightness: 150
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.kitchen_accents
|
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
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.S1
|
- light.S1
|
@ -106,3 +106,16 @@
|
|||||||
entity_id: group.outdoor_lights
|
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!'
|
||||||
|
@ -50,3 +50,14 @@
|
|||||||
{{ seconds }} seconds
|
{{ seconds }} seconds
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
- platform: rest
|
||||||
|
resource: http://ip.jsontest.com
|
||||||
|
name: External IP
|
||||||
|
value_template: '{{ value_json.ip }}'
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
ipchange:
|
||||||
|
entity_id: sensor.external_ip
|
||||||
|
value_template: "{%- if is_state('sensor.external_ip', '67.8.31.24') -%} False {%- else -%} True {%- endif %}"
|
Loading…
x
Reference in New Issue
Block a user