2018-01-02 00:00:45 +00:00
|
|
|
- platform: rest
|
|
|
|
scan_interval: 86400
|
2018-10-15 23:23:53 +00:00
|
|
|
resource: https://api.ipify.org/
|
2018-01-02 00:00:45 +00:00
|
|
|
name: External IP
|
2018-07-07 14:23:46 +00:00
|
|
|
value_template: '{{ value }}'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
#############################################################################################################
|
2019-03-31 21:13:37 +00:00
|
|
|
### This part of the automation is hidden due to the External IP address being exposed ##
|
2018-01-02 00:00:45 +00:00
|
|
|
# - platform: template
|
|
|
|
# sensors:
|
|
|
|
# ipchange:
|
|
|
|
# entity_id: sensor.external_ip
|
|
|
|
# value_template: "{%- if is_state('sensor.external_ip', 'xxx.xxx.xxx.xxx') -%} False {%- elif is_state('sensor.external_ip', 'unknown' ) -%} False {%- else -%} True {%- endif %}"
|
|
|
|
#############################################################################################################
|