mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
Fixed the IP Sensor Change to account for quota limit errors.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
- type: since_last_boot
|
- type: since_last_boot
|
||||||
- type: disk_use_percent
|
- type: disk_use_percent
|
||||||
arg: /
|
arg: /
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
since_last_boot_templated:
|
since_last_boot_templated:
|
||||||
@@ -52,13 +52,13 @@
|
|||||||
- platform: rest
|
- platform: rest
|
||||||
resource: http://ip.jsontest.com
|
resource: http://ip.jsontest.com
|
||||||
name: External IP
|
name: External IP
|
||||||
value_template: '{{ value_json.ip }}'
|
value_template: '{{ value_json.ip }}'
|
||||||
|
|
||||||
#############################################################################################################
|
#############################################################################################################
|
||||||
### This part of the automation is hidden due to the IP address exposed ##
|
### This part of the automation is hidden due to the IP address exposed ##
|
||||||
# - platform: template
|
# - platform: template
|
||||||
# sensors:
|
# sensors:
|
||||||
# ipchange:
|
# ipchange:
|
||||||
# entity_id: sensor.external_ip
|
# entity_id: sensor.external_ip
|
||||||
# value_template: "{%- if is_state('sensor.external_ip', 'xxx.xxx.xxx.xxx') -%} False {%- else -%} True {%- endif %}"
|
# value_template: "{%- if is_state('sensor.external_ip', 'xxx.xxx.xxx.xxx') -%} False {%- elif is_state('sensor.external_ip', 'unknown' ) -%} False {%- else -%} True {%- endif %}"
|
||||||
#############################################################################################################
|
#############################################################################################################
|
||||||
|
Reference in New Issue
Block a user