mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Update sensor.rest.markdown for external IP address sensor (#36503)
This commit is contained in:
parent
654e17e802
commit
a5bb5daa70
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user