Home-AssistantConfig/config/sensor/systemmonitor.yaml

15 lines
716 B
YAML
Executable File

- platform: rest
scan_interval: 86400
resource: https://api.ipify.org/
name: External IP
value_template: '{{ value }}'
#############################################################################################################
### This part of the automation is hidden due to the External IP address being exposed ##
# - 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 %}"
#############################################################################################################