Intégration de multiprise LIDL Silvercrest

Je propose de faire un zha_toolkit.scan_device ce qui permettra d’en savoir techniquement un peu plus.

La version d’avant donne ceci - il y a bien un endpoint par relais ce qui est idéal:

{
    "ieee": "bc:33:ac:ff:fe:6d:7f:8a",
    "nwk": "0x72ad",
    "model": "TS011F",
    "manufacturer": "_TZ3000_vzopcetz",
    "manufacturer_id": "0x4098",
    "endpoints": [
        {
            "id": 1,
            "device_type": "0x010a",
            "profile": "0x0104",
            "in_clusters": {
                "0x0000": {
                    "cluster_id": "0x0000",
                    "title": "Basic",
                    "name": "basic",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "zcl_version",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 3
                        },
                        "0x0001": {
                            "attribute_id": "0x0001",
                            "attribute_name": "app_version",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 69
                        },
                        "0x0002": {
                            "attribute_id": "0x0002",
                            "attribute_name": "stack_version",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0003": {
                            "attribute_id": "0x0003",
                            "attribute_name": "hw_version",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        },
                        "0x0004": {
                            "attribute_id": "0x0004",
                            "attribute_name": "manufacturer",
                            "value_type": [
                                "0x42",
                                "CharacterString",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": "_TZ3000_vzopcetz"
                        },
                        "0x0005": {
                            "attribute_id": "0x0005",
                            "attribute_name": "model",
                            "value_type": [
                                "0x42",
                                "CharacterString",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": "TS011F"
                        },
                        "0x0006": {
                            "attribute_id": "0x0006",
                            "attribute_name": "date_code",
                            "value_type": [
                                "0x42",
                                "CharacterString",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": ""
                        },
                        "0x0007": {
                            "attribute_id": "0x0007",
                            "attribute_name": "power_source",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        },
                        "0xffde": {
                            "attribute_id": "0xffde",
                            "attribute_name": "65502",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 11
                        },
                        "0xffe0": {
                            "attribute_id": "0xffe0",
                            "attribute_name": "65504",
                            "value_type": [
                                "0x48",
                                "Array",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5
                        },
                        "0xffe1": {
                            "attribute_id": "0xffe1",
                            "attribute_name": "65505",
                            "value_type": [
                                "0x48",
                                "Array",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5
                        },
                        "0xffe2": {
                            "attribute_id": "0xffe2",
                            "attribute_name": "65506",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 30
                        },
                        "0xffe3": {
                            "attribute_id": "0xffe3",
                            "attribute_name": "65507",
                            "value_type": [
                                "0x48",
                                "Array",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        },
                        "0xfffe": {
                            "attribute_id": "0xfffe",
                            "attribute_name": "65534",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0003": {
                    "cluster_id": "0x0003",
                    "title": "Identify",
                    "name": "identify",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "identify_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0004": {
                    "cluster_id": "0x0004",
                    "title": "Groups",
                    "name": "groups",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0005": {
                    "cluster_id": "0x0005",
                    "title": "Scenes",
                    "name": "scenes",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "count",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0001": {
                            "attribute_id": "0x0001",
                            "attribute_name": "current_scene",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0002": {
                            "attribute_id": "0x0002",
                            "attribute_name": "current_group",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0003": {
                            "attribute_id": "0x0003",
                            "attribute_name": "scene_valid",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0004": {
                            "attribute_id": "0x0004",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0006": {
                    "cluster_id": "0x0006",
                    "title": "On/Off",
                    "name": "on_off",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "on_off",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x4001": {
                            "attribute_id": "0x4001",
                            "attribute_name": "on_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x4002": {
                            "attribute_id": "0x4002",
                            "attribute_name": "off_wait_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x8001": {
                            "attribute_id": "0x8001",
                            "attribute_name": "backlight_mode",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 1
                        },
                        "0x8002": {
                            "attribute_id": "0x8002",
                            "attribute_name": "power_on_state",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 2
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                }
            },
            "out_clusters": {
                "0x000a": {
                    "cluster_id": "0x000a",
                    "title": "Time",
                    "name": "time",
                    "attributes": {},
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0019": {
                    "cluster_id": "0x0019",
                    "title": "Ota",
                    "name": "ota",
                    "attributes": {},
                    "commands_received": {},
                    "commands_generated": {}
                }
            }
        },
        {
            "id": 2,
            "device_type": "0x010a",
            "profile": "0x0104",
            "in_clusters": {
                "0x0003": {
                    "cluster_id": "0x0003",
                    "title": "Identify",
                    "name": "identify",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "identify_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0004": {
                    "cluster_id": "0x0004",
                    "title": "Groups",
                    "name": "groups",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0005": {
                    "cluster_id": "0x0005",
                    "title": "Scenes",
                    "name": "scenes",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "count",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0001": {
                            "attribute_id": "0x0001",
                            "attribute_name": "current_scene",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0002": {
                            "attribute_id": "0x0002",
                            "attribute_name": "current_group",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0003": {
                            "attribute_id": "0x0003",
                            "attribute_name": "scene_valid",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0004": {
                            "attribute_id": "0x0004",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0006": {
                    "cluster_id": "0x0006",
                    "title": "On/Off",
                    "name": "on_off",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "on_off",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        },
                        "0x4001": {
                            "attribute_id": "0x4001",
                            "attribute_name": "on_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x4002": {
                            "attribute_id": "0x4002",
                            "attribute_name": "off_wait_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x8001": {
                            "attribute_id": "0x8001",
                            "attribute_name": "backlight_mode",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 1
                        },
                        "0x8002": {
                            "attribute_id": "0x8002",
                            "attribute_name": "power_on_state",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 2
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                }
            },
            "out_clusters": {}
        },
        {
            "id": 3,
            "device_type": "0x010a",
            "profile": "0x0104",
            "in_clusters": {
                "0x0003": {
                    "cluster_id": "0x0003",
                    "title": "Identify",
                    "name": "identify",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "identify_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 1
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0004": {
                    "cluster_id": "0x0004",
                    "title": "Groups",
                    "name": "groups",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0005": {
                    "cluster_id": "0x0005",
                    "title": "Scenes",
                    "name": "scenes",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "count",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0001": {
                            "attribute_id": "0x0001",
                            "attribute_name": "current_scene",
                            "value_type": [
                                "0x20",
                                "uint8_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0002": {
                            "attribute_id": "0x0002",
                            "attribute_name": "current_group",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0003": {
                            "attribute_id": "0x0003",
                            "attribute_name": "scene_valid",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x0004": {
                            "attribute_id": "0x0004",
                            "attribute_name": "name_support",
                            "value_type": [
                                "0x18",
                                "bitmap8",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                },
                "0x0006": {
                    "cluster_id": "0x0006",
                    "title": "On/Off",
                    "name": "on_off",
                    "attributes": {
                        "0x0000": {
                            "attribute_id": "0x0000",
                            "attribute_name": "on_off",
                            "value_type": [
                                "0x10",
                                "Bool",
                                "Discrete"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 0
                        },
                        "0x4001": {
                            "attribute_id": "0x4001",
                            "attribute_name": "on_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x4002": {
                            "attribute_id": "0x4002",
                            "attribute_name": "off_wait_time",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 0
                        },
                        "0x8001": {
                            "attribute_id": "0x8001",
                            "attribute_name": "backlight_mode",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 1
                        },
                        "0x8002": {
                            "attribute_id": "0x8002",
                            "attribute_name": "power_on_state",
                            "value_type": [
                                "0x30",
                                "enum8",
                                "Discrete"
                            ],
                            "access": "REPORT|WRITE|READ",
                            "access_acl": 7,
                            "attribute_value": 2
                        },
                        "0xfffd": {
                            "attribute_id": "0xfffd",
                            "attribute_name": "65533",
                            "value_type": [
                                "0x21",
                                "uint16_t",
                                "Analog"
                            ],
                            "access": "REPORT|READ",
                            "access_acl": 5,
                            "attribute_value": 2
                        }
                    },
                    "commands_received": {},
                    "commands_generated": {}
                }
            },
            "out_clusters": {}
        },
        {
            "id": 242,
            "device_type": "0x0061",
            "profile": "0xa1e0"
        }
    ]
}