sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
122 stars 16 forks source link

Battery percentage for non IKEA sensors. #62

Closed dreamfalcon closed 2 months ago

dreamfalcon commented 3 months ago

Would be possible to add battery percentage for non IKEA sensors? { "id":"xxx", "type":"sensor", "deviceType":"environmentSensor", "createdAt":"2024-08-05T13:24:30.000Z", "isReachable":true, "lastSeen":"2024-08-06T09:08:49.000Z", "attributes":{ "customName":"Sensor rua", "model":"SNZB-02P", "manufacturer":"eWeLink", "firmwareVersion":"2.1.0", "hardwareVersion":"0", "serialNumber":"A", "batteryPercentage":100, "currentTemperature":22.7, "currentRH":75, "permittingJoin":false, "otaStatus":"upToDate", "otaState":"readyToCheck", "otaProgress":0, "otaPolicy":"autoUpdate", "otaScheduleStart":"00:00", "otaScheduleEnd":"00:00" }, "capabilities":{ "canSend":[

     ],
     "canReceive":[
        "customName"
     ]
  }

},

sanjoyg commented 3 months ago

I could, but SonOff devices have a great add-on. Or is this linked to the IKEA dirigera hub?

dreamfalcon commented 3 months ago

I could, but SonOff devices have a great add-on. Or is this linked to the IKEA dirigera hub?

Its linked to the IKEA hub. I have a tuya hub with Matter but dosent play well wit the sensor. The dirigera hub seems to be much better with the mesh part.

sanjoyg commented 3 months ago

The JSON doesnt include deviceSet and remoteLinks mandatory json elements. Does this even appear in the device list?

dreamfalcon commented 3 months ago

The JSON doesnt include deviceSet and remoteLinks mandatory json elements. Does this even appear in the device list?

image image
dreamfalcon commented 2 months ago

Matter support was just added for more devices and they included the battery state for this sensors.