Bonsoir, je voudrais récupérer le modèle des piles dans chaque boitier sonoff mais j ia du mal à comprendre la logique dans informations brutes.
On ma déjà aider au niveau du % de la batterie mais je n 'arrive pas à trouver la CR2032 ou la CR2450.
voici les informations brutes du SNZB-03 :
{
"ieee": "00:12:4b:00:25:13:22:0f",
"nwk": 21888,
"status": 2,
"lqi": "124",
"rssi": "-69",
"last_seen": "1671645638.690974",
"node_descriptor": "02:40:80:00:00:50:a0:00:00:00:a0:00:00",
"endpoints": [
{
"id": 1,
"status": 1,
"device_type": 1026,
"profile_id": 260,
"manufacturer": "eWeLink",
"model": "MS01",
"output_clusters": [
{
"id": 3,
"name": "Identify",
"attributes": []
}
],
"input_clusters": [
{
"id": 0,
"name": "Basic",
"attributes": [
{
"id": 0,
"name": "zcl_version",
"value": 1
},
{
"id": 1,
"name": "app_version",
"value": 5
},
{
"id": 3,
"name": "hw_version",
"value": 1
},
{
"id": 4,
"name": "manufacturer",
"value": "eWeLink"
},
{
"id": 5,
"name": "model",
"value": "MS01"
},
{
"id": 6,
"name": "date_code",
"value": "20211103"
},
{
"id": 7,
"name": "power_source",
"value": 3
}
]
},
{
"id": 3,
"name": "Identify",
"attributes": []
},
{
"id": 1280,
"name": "IAS Zone",
"attributes": [
{
"id": 16,
"name": "cie_addr",
"value": "80:4b:50:ff:fe:30:3e:9b"
}
]
},
{
"id": 1,
"name": "Power Configuration",
"attributes": [
{
"id": 32,
"name": "battery_voltage",
"value": 29
},
{
"id": 33,
"name": "battery_percentage_remaining",
"value": 186
}
]
}
]
}
],
"signature": {
"manufacturer": "eWeLink",
"model": "MS01",
"node_desc": {
"logical_type": 2,
"complex_descriptor_available": 0,
"user_descriptor_available": 0,
"reserved": 0,
"aps_flags": 0,
"frequency_band": 8,
"mac_capability_flags": 128,
"manufacturer_code": 0,
"maximum_buffer_size": 80,
"maximum_incoming_transfer_size": 160,
"server_mask": 0,
"maximum_outgoing_transfer_size": 160,
"descriptor_capability_field": 0
},
"endpoints": {
"1": {
"profile_id": 260,
"device_type": 1026,
"input_clusters": [
0,
3,
1280,
1
],
"output_clusters": [
3
]
}
}
},
"class": "zigpy.device"
}
Je vous remercie pour votre aide.
Je vous souhaite une bonne soirée