PyMonitorMQTT
Battery Sensor
This sensor reports the battery level and if it’s charging.
It should only be used on laptop computers.
Compatibility
- macOS
- Linux
- Windows
Data and Topics
.../battery/battery_level_percentage
basic
Battery level (0-100) [%]
.../battery/battery_charging
basic
Battery charging status: True if the battery is charging, else False
Configuration
custom_topics
optional
List of String
List of topics to which the sensor will send the data.
If the sensor sends to a single topic, you will have to put one topic in the list.
If the sensor sends to more than one topic, you can register more topics; each topic in the list will be assigned in the same order as topics are added from the single sensor (order that you can check in the each individual sensor file).
If the sensor sends to a single topic, you will have to put one topic in the list.
If the sensor sends to more than one topic, you can register more topics; each topic in the list will be assigned in the same order as topics are added from the single sensor (order that you can check in the each individual sensor file).
formatted_values
optional
default: False
Boolean
If set to True, data will be sent in a more readable way, with the unit of measure and with K, M, G and T sizes.
Topics with the unit of measure in square brackets are those involved with this option