NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
446 stars 77 forks source link

Xiaomi devices trigger TypeError: Cannot read property 'trim' of undefined #426

Closed lvtz closed 3 years ago

lvtz commented 3 years ago

Can you help me resolve this issue?

[3/4/2021, 10:29:42 PM] TypeError: Cannot read property 'trim' of undefined
    at Service.toAlexa (/homebridge/node_modules/homebridge-alexa/lib/parse/Service.js:256:22)
    at Accessory.toAlexa (/homebridge/node_modules/homebridge-alexa/lib/parse/Accessory.js:120:27)
    at Homebridge.toAlexa (/homebridge/node_modules/homebridge-alexa/lib/parse/Homebridge.js:212:27)
    at Homebridges.toAlexa (/homebridge/node_modules/homebridge-alexa/lib/parse/Homebridges.js:48:35)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-alexa/lib/alexaActions.js:101:26)
    at HAPNodeJSClient.HAPaccessories (/homebridge/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:207:3)
    at Object.alexaDiscovery (/homebridge/node_modules/homebridge-alexa/lib/alexaActions.js:95:14)
    at HAPNodeJSClient.<anonymous> (/homebridge/node_modules/homebridge-alexa/lib/alexaActions.js:36:20)
    at HAPNodeJSClient.emit (events.js:315:20)
    at HAPNodeJSClient.<anonymous> (/homebridge/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:116:10)

image

NorthernMan54 commented 3 years ago

Please share an accessory dump from the homebridge instance triggering the issue. Details are in the read me

lvtz commented 3 years ago

@NorthernMan54

{
    "accessories": [
        {
            "aid": 1,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "homebridge.io",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "homebridge",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Homebridge C094 12D1",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "0E:90:7C:16:C0:94",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "1.3.2",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "A2",
                    "iid": 2000000008,
                    "characteristics": [
                        {
                            "type": "37",
                            "iid": 9,
                            "value": "1.1.0",
                            "perms": [
                                "pr"
                            ],
                            "description": "Version",
                            "format": "string",
                            "maxLen": 64
                        }
                    ]
                }
            ]
        },
        {
            "aid": 25,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "homebridge-alexa",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "Default-Model",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Alexa",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "ubuntu",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "0.5.30",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "80",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Alexa",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "6A",
                            "iid": 10,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Contact Sensor State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "aid": 30,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "Andreas Bauer",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "HTTP Switch",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Marshall switch",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "SW01",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "0.5.34",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "49",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Marshall switch",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "25",
                            "iid": 10,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "On",
                            "format": "bool"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 19,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 1473,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "Xiaomi",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string"
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "zhimi.humidifier.ca4",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string"
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "318985829",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "BD",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "B4",
                            "iid": 11,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Target Humidifier Dehumidifier State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "valid-values": [
                                1
                            ]
                        },
                        {
                            "type": "10",
                            "iid": 9,
                            "value": 72,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "B3",
                            "iid": 10,
                            "value": 2,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Humidifier Dehumidifier State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 3,
                            "valid-values": [
                                0,
                                2
                            ]
                        },
                        {
                            "type": "B0",
                            "iid": 12,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Active",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "29",
                            "iid": 13,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Rotation Speed",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 4,
                            "minStep": 1
                        },
                        {
                            "type": "CA",
                            "iid": 14,
                            "value": 63,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Relative Humidity Humidifier Threshold",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 30,
                            "maxValue": 80,
                            "minStep": 1
                        },
                        {
                            "type": "B5",
                            "iid": 15,
                            "value": 20,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Water Level",
                            "format": "float",
                            "minValue": 0,
                            "maxValue": 100
                        },
                        {
                            "type": "B6",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Swing Mode",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "A7",
                            "iid": 17,
                            "value": 0,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Lock Physical Controls",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "aid": 24,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 1474,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "Xiaomi",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string"
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "zhimi.humidifier.ca4",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string"
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "307379769",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "BD",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "B4",
                            "iid": 11,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Target Humidifier Dehumidifier State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "valid-values": [
                                1
                            ]
                        },
                        {
                            "type": "10",
                            "iid": 9,
                            "value": 66,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "B3",
                            "iid": 10,
                            "value": 2,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Humidifier Dehumidifier State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 3,
                            "valid-values": [
                                0,
                                2
                            ]
                        },
                        {
                            "type": "B0",
                            "iid": 12,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Active",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "29",
                            "iid": 13,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Rotation Speed",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 4,
                            "minStep": 1
                        },
                        {
                            "type": "CA",
                            "iid": 14,
                            "value": 63,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Relative Humidity Humidifier Threshold",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 30,
                            "maxValue": 80,
                            "minStep": 1
                        },
                        {
                            "type": "B5",
                            "iid": 15,
                            "value": 64.16666666666667,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Water Level",
                            "format": "float",
                            "minValue": 0,
                            "maxValue": 100
                        },
                        {
                            "type": "B6",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Swing Mode",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "A7",
                            "iid": 17,
                            "value": 0,
                            "perms": [
                                "pr",
                                "pw",
                                "ev"
                            ],
                            "description": "Lock Physical Controls",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "aid": 3,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "dresden elektronik",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "deCONZ",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Phoscon-GW",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00212EFFFF060976",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "2.7.1",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "00000012-0000-1000-8000-656261617577",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Phoscon-GW",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "00000024-0000-1000-8000-656261617577",
                            "iid": 10,
                            "value": 5,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Heartrate",
                            "format": "uint16",
                            "unit": "seconds",
                            "minValue": 1,
                            "maxValue": 30,
                            "minStep": 1
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 11,
                            "value": "Thu Mar 04 2021 22:57:10",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "0000002F-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": 0.4,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Transition Time",
                            "format": "float",
                            "unit": "seconds",
                            "minValue": 0,
                            "maxValue": 3600,
                            "minStep": 0.1
                        },
                        {
                            "type": "00000058-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Restart",
                            "format": "bool"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 11,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "Heiman",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "TS0121",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Lampka łóżko",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "842E14FFFE3667DE",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "0.12.26",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "43",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Lampka łóżko",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "77",
                            "iid": 12,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": "/lights/3",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        },
                        {
                            "type": "00000060-0000-1000-8000-656261617577",
                            "iid": 14,
                            "value": "Wed Dec 09 2020 15:18:00",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Boot",
                            "format": "string"
                        },
                        {
                            "type": "00000061-0000-1000-8000-656261617577",
                            "iid": 15,
                            "value": "Thu Mar 04 2021 22:56:00",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Seen",
                            "format": "string"
                        },
                        {
                            "type": "E863F10C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 16,
                            "value": 0.87,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Total Consumption",
                            "format": "float",
                            "unit": "kWh"
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "Thu Mar 04 2021 22:57:06",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "75",
                            "iid": 18,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 19,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "E863F10D-079E-48FF-8F27-9C2605A29F52",
                            "iid": 20,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Consumption",
                            "format": "float",
                            "unit": "W"
                        },
                        {
                            "type": "E863F126-079E-48FF-8F27-9C2605A29F52",
                            "iid": 21,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Electric Current",
                            "format": "float",
                            "unit": "A"
                        },
                        {
                            "type": "E863F10A-079E-48FF-8F27-9C2605A29F52",
                            "iid": 22,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Voltage",
                            "format": "float",
                            "unit": "V"
                        },
                        {
                            "type": "25",
                            "iid": 10,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "On",
                            "format": "bool"
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 23,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 27,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 28,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 24,
                            "value": "Lampka łóżko History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 25,
                            "value": "TXdwAAAAAADaF4ElBAECAgIHAg8DwA/AD4wrAAAAAAAAAQE=",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 26,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 16,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "_TZ3000_g5xawfcq",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "TS0121",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Marta światło",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "842E14FFFE359A95",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "0.12.26",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "43",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Marta światło",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "77",
                            "iid": 12,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": "/lights/4",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        },
                        {
                            "type": "00000060-0000-1000-8000-656261617577",
                            "iid": 14,
                            "value": "Wed Dec 16 2020 18:21:19",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Boot",
                            "format": "string"
                        },
                        {
                            "type": "00000061-0000-1000-8000-656261617577",
                            "iid": 15,
                            "value": "Thu Mar 04 2021 22:57:00",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Seen",
                            "format": "string"
                        },
                        {
                            "type": "E863F10C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 16,
                            "value": 5.19,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Total Consumption",
                            "format": "float",
                            "unit": "kWh"
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "Thu Mar 04 2021 22:57:05",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "75",
                            "iid": 18,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 19,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "E863F10D-079E-48FF-8F27-9C2605A29F52",
                            "iid": 20,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Consumption",
                            "format": "float",
                            "unit": "W"
                        },
                        {
                            "type": "E863F126-079E-48FF-8F27-9C2605A29F52",
                            "iid": 21,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Electric Current",
                            "format": "float",
                            "unit": "A"
                        },
                        {
                            "type": "E863F10A-079E-48FF-8F27-9C2605A29F52",
                            "iid": 22,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Voltage",
                            "format": "float",
                            "unit": "V"
                        },
                        {
                            "type": "25",
                            "iid": 10,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "On",
                            "format": "bool"
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 23,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 27,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 28,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 24,
                            "value": "Marta światło History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 25,
                            "value": "PRNnAAAAAADqe4olBAECAgIHAg8DwA/AD30nAAAAAAAAAQE=",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 26,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 10,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "GLEDOPTO",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "GL-C-008P",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "PC-LED",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "BC33ACFFFE8B7BE8",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "V_1_0",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "43",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "PC-LED",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "8",
                            "iid": 11,
                            "value": 89,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Brightness",
                            "format": "int",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000057-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Brightness Change",
                            "format": "int",
                            "minValue": -20,
                            "maxValue": 20,
                            "minStep": 1
                        },
                        {
                            "type": "CE",
                            "iid": 13,
                            "value": 153,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Color Temperature",
                            "format": "int",
                            "minValue": 153,
                            "maxValue": 65279,
                            "minStep": 1
                        },
                        {
                            "type": "144",
                            "iid": 14,
                            "value": "AQYBAQsCAQEAAAEGAQENAgEC",
                            "perms": [
                                "pr"
                            ],
                            "description": "Supported Transition Configuration",
                            "format": "tlv8"
                        },
                        {
                            "type": "24B",
                            "iid": 16,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Active Transition Count",
                            "format": "uint8"
                        },
                        {
                            "type": "13",
                            "iid": 17,
                            "value": 360,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Hue",
                            "format": "float",
                            "unit": "arcdegrees",
                            "minValue": 0,
                            "maxValue": 360,
                            "minStep": 1
                        },
                        {
                            "type": "2F",
                            "iid": 18,
                            "value": 100,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Saturation",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000059-0000-1000-8000-656261617577",
                            "iid": 19,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Color Loop",
                            "format": "bool"
                        },
                        {
                            "type": "0000006C-0000-1000-8000-656261617577",
                            "iid": 25,
                            "value": 25,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Color Loop Speed",
                            "format": "int",
                            "unit": "seconds",
                            "minValue": 1,
                            "maxValue": 65534
                        },
                        {
                            "type": "77",
                            "iid": 21,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "/lights/5",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        },
                        {
                            "type": "00000060-0000-1000-8000-656261617577",
                            "iid": 23,
                            "value": "n/a",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Boot",
                            "format": "string"
                        },
                        {
                            "type": "00000061-0000-1000-8000-656261617577",
                            "iid": 24,
                            "value": "Thu Mar 04 2021 22:56:00",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Seen",
                            "format": "string"
                        },
                        {
                            "type": "25",
                            "iid": 10,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "On",
                            "format": "bool"
                        },
                        {
                            "type": "143",
                            "iid": 15,
                            "value": "",
                            "perms": [
                                "pr",
                                "pw",
                                "wr"
                            ],
                            "description": "Transition Control",
                            "format": "tlv8"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 12,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "dresden elektronik",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "Daylight",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Daylight",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00212EFFFF060976-1",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "2.7.1",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "84",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Daylight",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "6B",
                            "iid": 10,
                            "value": 0.0001,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Current Ambient Light Level",
                            "format": "float",
                            "unit": "lux",
                            "minValue": 0.0001,
                            "maxValue": 100000
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 11,
                            "value": "Thu Mar 04 2021 19:19:44",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000025-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Dark",
                            "format": "bool"
                        },
                        {
                            "type": "00000026-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Daylight",
                            "format": "bool"
                        },
                        {
                            "type": "00000055-0000-1000-8000-656261617577",
                            "iid": 14,
                            "value": "Thu Mar 04 2021 06:22:36",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Sunrise",
                            "format": "string"
                        },
                        {
                            "type": "00000056-0000-1000-8000-656261617577",
                            "iid": 15,
                            "value": "Thu Mar 04 2021 17:28:04",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Sunset",
                            "format": "string"
                        },
                        {
                            "type": "00000027-0000-1000-8000-656261617577",
                            "iid": 16,
                            "value": 230,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Status",
                            "format": "int",
                            "minValue": 100,
                            "maxValue": 230
                        },
                        {
                            "type": "00000034-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "Astronomical Dusk",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Event",
                            "format": "string"
                        },
                        {
                            "type": "00000033-0000-1000-8000-656261617577",
                            "iid": 18,
                            "value": "Night",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Period",
                            "format": "string"
                        },
                        {
                            "type": "77",
                            "iid": 19,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 20,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 21,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "/sensors/1",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 13,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "LUMI",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "lumi.weather",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Temp pokój dzienny",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00158D0005867D14",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "20191205",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "8A",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Temp pokój dzienny",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "11",
                            "iid": 10,
                            "value": 23.7,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Temperature",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -40,
                            "maxValue": 100,
                            "minStep": 0.1
                        },
                        {
                            "type": "36",
                            "iid": 11,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Temperature Display Units",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": "Thu Mar 04 2021 22:32:47",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 14,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 15,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "/sensors/4",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "82",
                    "iid": 19,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 20,
                            "value": "Wilg pokój dzienny",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "10",
                            "iid": 21,
                            "value": 65,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "Thu Mar 04 2021 22:32:47",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 23,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 24,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 25,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 26,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 27,
                            "value": "/sensors/5",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "E863F00A-079E-48FF-8F27-9C2605A29F52",
                    "iid": 29,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 30,
                            "value": "Sensor pokój dzienny",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F10F-079E-48FF-8F27-9C2605A29F52",
                            "iid": 31,
                            "value": 990,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Air Pressure",
                            "format": "uint16",
                            "unit": "hPa"
                        },
                        {
                            "type": "E863F130-079E-48FF-8F27-9C2605A29F52",
                            "iid": 32,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Elevation",
                            "format": "int",
                            "unit": "m",
                            "minValue": -430,
                            "maxValue": 8850,
                            "minStep": 10
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 33,
                            "value": "Thu Mar 04 2021 22:32:47",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "77",
                            "iid": 34,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 35,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 36,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 37,
                            "value": "/sensors/6",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "96",
                    "iid": 39,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 40,
                            "value": "Temp pokój dzienny",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "79",
                            "iid": 43,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Low Battery",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "8F",
                            "iid": 42,
                            "value": 2,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Charging State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1,
                                2
                            ]
                        },
                        {
                            "type": "68",
                            "iid": 41,
                            "value": 100,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Battery Level",
                            "format": "uint8",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 44,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 48,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 49,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 45,
                            "value": "Temp pokój dzienny History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 46,
                            "value": "CXZwAAAAAAAeGYElAwECAgIDAsAPwA+LKwAAAAAAAAEB",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 47,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 14,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "LUMI",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "lumi.weather",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Temp sypialnia",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00158D00058A663E",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "20191205",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "8A",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Temp sypialnia",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "11",
                            "iid": 10,
                            "value": 24,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Temperature",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -40,
                            "maxValue": 100,
                            "minStep": 0.1
                        },
                        {
                            "type": "36",
                            "iid": 11,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Temperature Display Units",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": "Thu Mar 04 2021 22:33:32",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 14,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 15,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "/sensors/7",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "82",
                    "iid": 19,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 20,
                            "value": "Wilg sypialnia",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "10",
                            "iid": 21,
                            "value": 63,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "Thu Mar 04 2021 22:33:32",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 23,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 24,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 25,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 26,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 27,
                            "value": "/sensors/8",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "E863F00A-079E-48FF-8F27-9C2605A29F52",
                    "iid": 29,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 30,
                            "value": "Sypialnia",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F10F-079E-48FF-8F27-9C2605A29F52",
                            "iid": 31,
                            "value": 991,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Air Pressure",
                            "format": "uint16",
                            "unit": "hPa"
                        },
                        {
                            "type": "E863F130-079E-48FF-8F27-9C2605A29F52",
                            "iid": 32,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Elevation",
                            "format": "int",
                            "unit": "m",
                            "minValue": -430,
                            "maxValue": 8850,
                            "minStep": 10
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 33,
                            "value": "Thu Mar 04 2021 22:33:32",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "77",
                            "iid": 34,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 35,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 36,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 37,
                            "value": "/sensors/9",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "96",
                    "iid": 39,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 40,
                            "value": "Temp sypialnia",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "79",
                            "iid": 43,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Low Battery",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "8F",
                            "iid": 42,
                            "value": 2,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Charging State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1,
                                2
                            ]
                        },
                        {
                            "type": "68",
                            "iid": 41,
                            "value": 100,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Battery Level",
                            "format": "uint8",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 44,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 48,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 49,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 45,
                            "value": "Temp sypialnia History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 46,
                            "value": "gXJwAAAAAACmHIElAwECAgIDAsAPwA+IKwAAAAAAAAEB",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 47,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 15,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "LUMI",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "lumi.weather",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Temp Marta",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00158D00058CA523",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "20191205",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "8A",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Temp Marta",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "11",
                            "iid": 10,
                            "value": 24.6,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Temperature",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -40,
                            "maxValue": 100,
                            "minStep": 0.1
                        },
                        {
                            "type": "36",
                            "iid": 11,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Temperature Display Units",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": "Thu Mar 04 2021 22:41:20",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 14,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 15,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "/sensors/10",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "82",
                    "iid": 19,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 20,
                            "value": "Wilg Marta",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "10",
                            "iid": 21,
                            "value": 64,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "Thu Mar 04 2021 22:41:20",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 23,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 24,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 25,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 26,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 27,
                            "value": "/sensors/11",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "E863F00A-079E-48FF-8F27-9C2605A29F52",
                    "iid": 29,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 30,
                            "value": "Temp Marta",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F10F-079E-48FF-8F27-9C2605A29F52",
                            "iid": 31,
                            "value": 990,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Air Pressure",
                            "format": "uint16",
                            "unit": "hPa"
                        },
                        {
                            "type": "E863F130-079E-48FF-8F27-9C2605A29F52",
                            "iid": 32,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Elevation",
                            "format": "int",
                            "unit": "m",
                            "minValue": -430,
                            "maxValue": 8850,
                            "minStep": 10
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 33,
                            "value": "Thu Mar 04 2021 22:41:20",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "77",
                            "iid": 34,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 35,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 36,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 37,
                            "value": "/sensors/12",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "96",
                    "iid": 39,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 40,
                            "value": "Temp Marta",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "79",
                            "iid": 43,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Low Battery",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "8F",
                            "iid": 42,
                            "value": 2,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Charging State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1,
                                2
                            ]
                        },
                        {
                            "type": "68",
                            "iid": 41,
                            "value": 100,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Battery Level",
                            "format": "uint8",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 44,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 48,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 49,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 45,
                            "value": "Temp Marta History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 46,
                            "value": "MUZwAAAAAAD2SIElAwECAgIDAsAPwA9yKwAAAAAAAAEB",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 47,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        },
        {
            "aid": 21,
            "services": [
                {
                    "type": "3E",
                    "iid": 1,
                    "characteristics": [
                        {
                            "type": "14",
                            "iid": 2,
                            "perms": [
                                "pw"
                            ],
                            "description": "Identify",
                            "format": "bool"
                        },
                        {
                            "type": "20",
                            "iid": 3,
                            "value": "LUMI",
                            "perms": [
                                "pr"
                            ],
                            "description": "Manufacturer",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "21",
                            "iid": 4,
                            "value": "lumi.weather",
                            "perms": [
                                "pr"
                            ],
                            "description": "Model",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "23",
                            "iid": 5,
                            "value": "Temp garderoba",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "30",
                            "iid": 6,
                            "value": "00158D000589F78A",
                            "perms": [
                                "pr"
                            ],
                            "description": "Serial Number",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "52",
                            "iid": 7,
                            "value": "20191205",
                            "perms": [
                                "pr"
                            ],
                            "description": "Firmware Revision",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "8A",
                    "iid": 8,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 9,
                            "value": "Temp garderoba",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "11",
                            "iid": 10,
                            "value": 22.8,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Current Temperature",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -40,
                            "maxValue": 100,
                            "minStep": 0.1
                        },
                        {
                            "type": "36",
                            "iid": 11,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr",
                                "pw"
                            ],
                            "description": "Temperature Display Units",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 12,
                            "value": "Thu Mar 04 2021 22:32:10",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 13,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 14,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 15,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 16,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 17,
                            "value": "/sensors/15",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "82",
                    "iid": 19,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 20,
                            "value": "Wilg garderoba",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "10",
                            "iid": 21,
                            "value": 52,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Current Relative Humidity",
                            "format": "float",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 22,
                            "value": "Thu Mar 04 2021 22:32:10",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "00000030-0000-1000-8000-656261617577",
                            "iid": 23,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Offset",
                            "format": "float",
                            "unit": "celsius",
                            "minValue": -5,
                            "maxValue": 5,
                            "minStep": 0.1
                        },
                        {
                            "type": "77",
                            "iid": 24,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 25,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 26,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 27,
                            "value": "/sensors/16",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "E863F00A-079E-48FF-8F27-9C2605A29F52",
                    "iid": 29,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 30,
                            "value": "Temp garderoba",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F10F-079E-48FF-8F27-9C2605A29F52",
                            "iid": 31,
                            "value": 991,
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Air Pressure",
                            "format": "uint16",
                            "unit": "hPa"
                        },
                        {
                            "type": "E863F130-079E-48FF-8F27-9C2605A29F52",
                            "iid": 32,
                            "value": 0,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Elevation",
                            "format": "int",
                            "unit": "m",
                            "minValue": -430,
                            "maxValue": 8850,
                            "minStep": 10
                        },
                        {
                            "type": "00000023-0000-1000-8000-656261617577",
                            "iid": 33,
                            "value": "Thu Mar 04 2021 22:32:10",
                            "perms": [
                                "pr",
                                "ev"
                            ],
                            "description": "Last Updated",
                            "format": "string"
                        },
                        {
                            "type": "77",
                            "iid": 34,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Fault",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "75",
                            "iid": 35,
                            "value": 1,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Active",
                            "format": "bool"
                        },
                        {
                            "type": "00000022-0000-1000-8000-656261617577",
                            "iid": 36,
                            "value": 1,
                            "perms": [
                                "pr",
                                "ev",
                                "pw"
                            ],
                            "description": "Enabled",
                            "format": "bool"
                        },
                        {
                            "type": "00000021-0000-1000-8000-656261617577",
                            "iid": 37,
                            "value": "/sensors/17",
                            "perms": [
                                "pr"
                            ],
                            "description": "Resource",
                            "format": "string"
                        }
                    ]
                },
                {
                    "type": "96",
                    "iid": 39,
                    "characteristics": [
                        {
                            "type": "23",
                            "iid": 40,
                            "value": "Temp garderoba",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "79",
                            "iid": 43,
                            "value": 0,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Status Low Battery",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 1,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1
                            ]
                        },
                        {
                            "type": "8F",
                            "iid": 42,
                            "value": 2,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Charging State",
                            "format": "uint8",
                            "minValue": 0,
                            "maxValue": 2,
                            "minStep": 1,
                            "valid-values": [
                                0,
                                1,
                                2
                            ]
                        },
                        {
                            "type": "68",
                            "iid": 41,
                            "value": 95,
                            "perms": [
                                "ev",
                                "pr"
                            ],
                            "description": "Battery Level",
                            "format": "uint8",
                            "unit": "percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "minStep": 1
                        }
                    ]
                },
                {
                    "type": "E863F007-079E-48FF-8F27-9C2605A29F52",
                    "iid": 44,
                    "characteristics": [
                        {
                            "type": "E863F11C-079E-48FF-8F27-9C2605A29F52",
                            "iid": 48,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W1",
                            "format": "data"
                        },
                        {
                            "type": "E863F121-079E-48FF-8F27-9C2605A29F52",
                            "iid": 49,
                            "perms": [
                                "pw",
                                "hd"
                            ],
                            "description": "S2W2",
                            "format": "data"
                        },
                        {
                            "type": "23",
                            "iid": 45,
                            "value": "Temp garderoba History",
                            "perms": [
                                "pr"
                            ],
                            "description": "Name",
                            "format": "string",
                            "maxLen": 64
                        },
                        {
                            "type": "E863F116-079E-48FF-8F27-9C2605A29F52",
                            "iid": 46,
                            "value": "TLlkAAAAAADb1YwlAwECAgIDAsAPwA94JgAAAAAAAAEB",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R1",
                            "format": "data"
                        },
                        {
                            "type": "E863F117-079E-48FF-8F27-9C2605A29F52",
                            "iid": 47,
                            "value": "AA==",
                            "perms": [
                                "pr",
                                "ev",
                                "hd"
                            ],
                            "description": "S2R2",
                            "format": "data"
                        }
                    ]
                }
            ]
        }
    ]
}
NorthernMan54 commented 3 years ago

Please update to v0.5.32, the issue is resolved

Please note that this is triggered by your Xiaomi devices not having a 'Name'. Please raise an issue with the plugin developer to have them include a 'Name' characteristic with their plugin.

Also until a name is provided these devices will not be passed to Alexa and will trigger an error in the logs

The error looks like this

ERROR: Empty accessory name, parsing failed. {
  deviceID: 'CC:22:3D:E3:CE:30',
  homebridge: 'parseTest',
  id: 'CC:22:3D:E3:CE:30',
  opt: {
    perms: 'pw',
    events: true,
    speakers: [
      [Object], [Object],
      [Object], [Object],
      [Object], [Object],
      [Object]
    ],
    combine: [ [Object], [Object], [Object], [Object] ],
    inputs: [ [Object], [Object] ],
    channel: [ [Object], [Object] ]
  },
  aid: 24,
  name: undefined,
  manufacturer: 'Xiaomi'
}