mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add sensor:
This commit is contained in:
parent
3a08243a5f
commit
8c1ae6d000
@ -30,6 +30,7 @@ The `else` part is used to have the sensor keep it's last state if the newest [i
|
|||||||
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
|
||||||
|
sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
state_topic: "owntracks/tablet/tablet"
|
state_topic: "owntracks/tablet/tablet"
|
||||||
name: "Battery Tablet"
|
name: "Battery Tablet"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user