Update sensor.rest.markdown for external IP address sensor (#36503)

This commit is contained in:
Erwin B 2024-12-23 16:44:37 +01:00 committed by GitHub
parent 654e17e802
commit a5bb5daa70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ In this section you find some real-life examples of how to use this sensor.
### External IP address
You can find your external IP address using the service [JSON Test](https://www.jsontest.com/) at their [http://ip.jsontest.com/](http://ip.jsontest.com/) URL.
You can find your external IP address using the [ipify](https://www.ipify.org) service for both IPv4 and IPv6.
{% raw %}
@ -182,6 +182,11 @@ sensor:
name: "External IP"
resource: "https://api.ipify.org/?format=json"
value_template: "{{ value_json.ip }}"
- platform: rest
name: "External IPv6"
resource: "https://api6.ipify.org/?format=json"
value_template: "{{ value_json.ip }}"
```
{% endraw %}