sclavel / homebridge-modbus

Homebridge plugin to interface with any modbusTCP
8 stars 14 forks source link

BatteryLevel #12

Closed eliziox closed 1 year ago

eliziox commented 1 year ago

Hi

That's not an issue!

Anyone knows how we can add batterylevel for a temperature or humidity sensor ?

I tried some different ways but something is not clear with the characteristic / service battery

Thanks for help

eliziox commented 1 year ago

Hi,

I Found the solution,

Necessary to add a service battery

            {
                "name": "Netman204 Temperature",
                "type": "Battery",
                "BatteryLevel": "r223",
                "ChargingState": "c16",
                "StatusLowBattery": "c16"
            },