mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Fixing the IP Change sensor to be hidden due to secrets bug in templating.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,4 +18,5 @@ phue.conf
|
|||||||
pyozw.sqlite
|
pyozw.sqlite
|
||||||
nest.conf
|
nest.conf
|
||||||
.uuid
|
.uuid
|
||||||
|
ipchange.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,11 @@
|
|||||||
name: External IP
|
name: External IP
|
||||||
value_template: '{{ value_json.ip }}'
|
value_template: '{{ value_json.ip }}'
|
||||||
|
|
||||||
- platform: template
|
#############################################################################################################
|
||||||
sensors:
|
### This part of the automation is hidden due to the IP address exposed ##
|
||||||
ipchange:
|
# - platform: template
|
||||||
entity_id: sensor.external_ip
|
# sensors:
|
||||||
value_template: "{%- if is_state('sensor.external_ip', '!secret external_ip') -%} False {%- else -%} True {%- endif %}"
|
# ipchange:
|
||||||
|
# entity_id: sensor.external_ip
|
||||||
|
# value_template: "{%- if is_state('sensor.external_ip', 'xxx.xxx.xxx.xxx') -%} False {%- else -%} True {%- endif %}"
|
||||||
|
#############################################################################################################
|
||||||
Reference in New Issue
Block a user