Add details about else
This commit is contained in:
parent
275ac4790c
commit
0bf424eecd
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ The [iCloud](/components/device_tracker.icloud/) is gathering various details ab
|
||||||
{%- endif %}{% endraw %}
|
{%- endif %}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The `else` part is used to have the sensor keep it's last state if the newest [iCloud](/components/device_tracker.icloud/) update doesn't have any battery state in it (which happens sometimes). Otherwise the sensor will be blank.
|
||||||
|
|
||||||
While running the [Owntracks](/components/device_tracker.owntracks/) device tracker you can retrieve the battery level with a MQTT sensor.
|
While running the [Owntracks](/components/device_tracker.owntracks/) device tracker you can retrieve the battery level with a MQTT sensor.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue