Le module est déjà intégré dans le plugin zigbee. Je suppose donc que @Loic a déjà les informations brutes et le json.
Mais les voici dans le cas contraire.
Informations brutes
{
"ieee": "94:de:b8:ff:fe:0c:75:e5",
"nwk": 14895,
"status": 2,
"lqi": "160",
"rssi": "-60",
"last_seen": "1670245980.106849",
"node_descriptor": "01:40:8e:24:12:52:52:00:00:2c:52:00:00",
"endpoints": [
{
"id": 1,
"status": 1,
"device_type": 257,
"profile_id": 260,
"manufacturer": "Sunricher",
"model": "HK-SL-DIM-A",
"output_clusters": [
{
"id": 25,
"name": "Ota",
"attributes": []
}
],
"input_clusters": [
{
"id": 0,
"name": "Basic",
"attributes": [
{
"id": 0,
"name": "zcl_version",
"value": 3
},
{
"id": 1,
"name": "app_version",
"value": 0
},
{
"id": 2,
"name": "stack_version",
"value": 0
},
{
"id": 3,
"name": "hw_version",
"value": 1
},
{
"id": 4,
"name": "manufacturer",
"value": "Sunricher"
},
{
"id": 5,
"name": "model",
"value": "HK-SL-DIM-A"
},
{
"id": 6,
"name": "date_code",
"value": "NULL"
},
{
"id": 7,
"name": "power_source",
"value": 1
},
{
"id": 16384,
"name": "sw_build_id",
"value": "2.9.2_r54"
}
]
},
{
"id": 3,
"name": "Identify",
"attributes": []
},
{
"id": 4,
"name": "Groups",
"attributes": []
},
{
"id": 5,
"name": "Scenes",
"attributes": []
},
{
"id": 6,
"name": "On\/Off",
"attributes": [
{
"id": 0,
"name": "on_off",
"value": 0
}
]
},
{
"id": 8,
"name": "Level control",
"attributes": [
{
"id": 0,
"name": "current_level",
"value": 94
}
]
},
{
"id": 1794,
"name": "Metering",
"attributes": [
{
"id": 0,
"name": "current_summ_delivered",
"value": 5120568
}
]
},
{
"id": 2820,
"name": "Electrical Measurement",
"attributes": [
{
"id": 1285,
"name": "rms_voltage",
"value": 39
},
{
"id": 1288,
"name": "rms_current",
"value": 0
},
{
"id": 1291,
"name": "active_power",
"value": 0
}
]
},
{
"id": 2821,
"name": "Diagnostic",
"attributes": []
},
{
"id": 4096,
"name": "LightLink",
"attributes": []
}
]
},
{
"id": 242,
"status": 1,
"device_type": 102,
"profile_id": 41440,
"manufacturer": null,
"model": null,
"output_clusters": [
{
"id": 33,
"name": "GreenPowerProxy",
"attributes": []
}
],
"input_clusters": [
{
"id": 33,
"name": "GreenPowerProxy",
"attributes": []
}
]
}
],
"signature": {
"manufacturer": "Sunricher",
"model": "HK-SL-DIM-A",
"node_desc": {
"logical_type": 1,
"complex_descriptor_available": 0,
"user_descriptor_available": 0,
"reserved": 0,
"aps_flags": 0,
"frequency_band": 8,
"mac_capability_flags": 142,
"manufacturer_code": 4644,
"maximum_buffer_size": 82,
"maximum_incoming_transfer_size": 82,
"server_mask": 11264,
"maximum_outgoing_transfer_size": 82,
"descriptor_capability_field": 0
},
"endpoints": {
"1": {
"profile_id": 260,
"device_type": 257,
"input_clusters": [
0,
3,
4,
5,
6,
8,
1794,
2820,
2821,
4096
],
"output_clusters": [
25
]
},
"242": {
"profile_id": 41440,
"device_type": 102,
"input_clusters": [
33
],
"output_clusters": [
33
]
}
}
},
"class": "zigpy.device"
}
JSON
{
"name": "Sunricher.HK-SL-DIM-A",
"configuration": [],
"commands": [
{
"logicalId": "1::6::0",
"generic_type": "LIGHT_STATE",
"name": "Etat",
"type": "info",
"subType": "binary",
"isHistorized": "0",
"isVisible": "0"
},
{
"logicalId": "1::on_off::on",
"generic_type": "LIGHT_ON",
"name": "On",
"type": "action",
"subType": "other",
"isHistorized": "0",
"template": {
"dashboard": "core::light",
"mobile": "core::light"
},
"value": "Etat",
"isVisible": "1"
},
{
"logicalId": "1::on_off::off",
"generic_type": "LIGHT_OFF",
"name": "Off",
"type": "action",
"subType": "other",
"isHistorized": "0",
"template": {
"dashboard": "core::light",
"mobile": "core::light"
},
"value": "Etat",
"isVisible": "1"
},
{
"logicalId": "1::level::move_to_level::#slider#::0",
"generic_type": "LIGHT_SLIDER",
"name": "Luminosité",
"type": "action",
"subType": "slider",
"isHistorized": "0",
"configuration": {
"minValue": "0",
"maxValue": "254"
},
"value": "Etat Luminosité",
"isVisible": "1"
},
{
"logicalId": "1::on_off::toggle",
"generic_type": "LIGHT_TOGGLE",
"name": "Toggle",
"type": "action",
"subType": "other",
"isHistorized": "0",
"display": {
"icon": "<\/i>"
},
"isVisible": "1"
},
{
"logicalId": "1::8::0",
"generic_type": "LIGHT_BRIGHTNESS",
"name": "Etat Luminosité",
"type": "info",
"subType": "numeric",
"isHistorized": "0",
"configuration": {
"minValue": "0",
"maxValue": "254"
},
"isVisible": "0"
},
{
"logicalId": "1::2820::1291",
"generic_type": "POWER",
"name": "Puissance",
"type": "info",
"subType": "numeric",
"isHistorized": "1",
"unite": "W",
"configuration": {
"historizeRound": "2",
"calculValueOffset": "#value# \/ 10",
"historyPurge": "-1 month",
"repeatEventManagement": "never",
"alert::messageReturnBack": "0"
},
"template": {
"dashboard": "default",
"mobile": "default"
},
"isVisible": "1"
},
{
"logicalId": "1::2820::1285",
"generic_type": "VOLTAGE",
"name": "Voltage",
"type": "info",
"subType": "numeric",
"isHistorized": "1",
"unite": "V",
"configuration": {
"historizeRound": 2,
"calculValueOffset": "#value# \/ 10"
},
"isVisible": "1"
},
{
"logicalId": "1::2820::1288",
"name": "Courant",
"type": "info",
"subType": "numeric",
"isHistorized": "1",
"unite": "A",
"configuration": {
"historizeRound": 2,
"calculValueOffset": "#value# \/ 100"
},
"isVisible": "1"
},
{
"logicalId": "1::1794::0",
"generic_type": "CONSUMPTION",
"name": "Consommation",
"type": "info",
"subType": "numeric",
"isHistorized": "1",
"unite": "kWh",
"configuration": {
"historyPurge": "-1 month",
"repeatEventManagement": "never",
"alert::messageReturnBack": "0"
},
"template": {
"dashboard": "default",
"mobile": "default"
},
"isVisible": "1"
}
],
"ref": "Sunricher.HK-SL-DIM-A"
}