mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 02:37:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			716 B
		
	
	
	
		
			YAML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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 %}"
 | |
| #############################################################################################################
 |