home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.47k stars 29.4k forks source link

Homekit controller not creating entity for Velux skylight #44543

Closed tokyotexture closed 3 years ago

tokyotexture commented 3 years ago

The problem

Environment

Problem-relevant configuration.yaml

Used UI setup, not configuration.yaml.

Traceback/Error logs

Additional information

Screenshot 2020-12-26 091332 Screenshot 2020-12-26 091304

tokyotexture commented 3 years ago

Here's the homekit_controller-entity-map

{
    "version": 1,
    "key": "homekit_controller-entity-map",
    "data": {
        "pairings": {
            "45:40:60:22:86:44": {
                "config_num": 7,
                "accessories": [
                    {
                        "aid": 1,
                        "services": [
                            {
                                "type": "0000003E-0000-1000-8000-0026BB765291",
                                "iid": 1,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 2,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Gateway"
                                    },
                                    {
                                        "type": "00000020-0000-1000-8000-0026BB765291",
                                        "iid": 3,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX"
                                    },
                                    {
                                        "type": "00000021-0000-1000-8000-0026BB765291",
                                        "iid": 4,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Gateway"
                                    },
                                    {
                                        "type": "00000030-0000-1000-8000-0026BB765291",
                                        "iid": 5,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "g37644d"
                                    },
                                    {
                                        "type": "00000014-0000-1000-8000-0026BB765291",
                                        "iid": 6,
                                        "perms": [
                                            "pw"
                                        ],
                                        "format": "bool"
                                    },
                                    {
                                        "type": "00000052-0000-1000-8000-0026BB765291",
                                        "iid": 7,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "70"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            },
                            {
                                "type": "000000A2-0000-1000-8000-0026BB765291",
                                "iid": 8,
                                "characteristics": [
                                    {
                                        "type": "00000037-0000-1000-8000-0026BB765291",
                                        "iid": 9,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "1.1.0"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            }
                        ]
                    },
                    {
                        "aid": 2,
                        "services": [
                            {
                                "type": "0000003E-0000-1000-8000-0026BB765291",
                                "iid": 1,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 2,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Sensor"
                                    },
                                    {
                                        "type": "00000020-0000-1000-8000-0026BB765291",
                                        "iid": 3,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX"
                                    },
                                    {
                                        "type": "00000021-0000-1000-8000-0026BB765291",
                                        "iid": 4,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Sensor"
                                    },
                                    {
                                        "type": "00000030-0000-1000-8000-0026BB765291",
                                        "iid": 5,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "p003ede"
                                    },
                                    {
                                        "type": "00000014-0000-1000-8000-0026BB765291",
                                        "iid": 7,
                                        "perms": [
                                            "pw"
                                        ],
                                        "format": "bool"
                                    },
                                    {
                                        "type": "00000052-0000-1000-8000-0026BB765291",
                                        "iid": 6,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "16"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            },
                            {
                                "type": "0000008A-0000-1000-8000-0026BB765291",
                                "iid": 8,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 9,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "Temperature sensor"
                                    },
                                    {
                                        "type": "00000011-0000-1000-8000-0026BB765291",
                                        "iid": 10,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "float",
                                        "value": 20.4,
                                        "minValue": 0.0,
                                        "maxValue": 50.0,
                                        "minStep": 0.1,
                                        "unit": "celsius"
                                    }
                                ],
                                "hidden": false,
                                "primary": true
                            },
                            {
                                "type": "00000082-0000-1000-8000-0026BB765291",
                                "iid": 11,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 12,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "Humidity sensor"
                                    },
                                    {
                                        "type": "00000010-0000-1000-8000-0026BB765291",
                                        "iid": 13,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "float",
                                        "value": 35.0,
                                        "minValue": 0.0,
                                        "maxValue": 100.0,
                                        "minStep": 1.0,
                                        "unit": "percentage"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            },
                            {
                                "type": "00000097-0000-1000-8000-0026BB765291",
                                "iid": 14,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 15,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "Carbon Dioxide sensor"
                                    },
                                    {
                                        "type": "00000092-0000-1000-8000-0026BB765291",
                                        "iid": 16,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 0,
                                        "maxValue": 1,
                                        "minValue": 0,
                                        "minStep": 1
                                    },
                                    {
                                        "type": "00000093-0000-1000-8000-0026BB765291",
                                        "iid": 17,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "float",
                                        "value": 514.0,
                                        "minValue": 0.0,
                                        "maxValue": 5000.0
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            }
                        ]
                    },
                    {
                        "aid": 3,
                        "services": [
                            {
                                "type": "0000003E-0000-1000-8000-0026BB765291",
                                "iid": 1,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 2,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Window"
                                    },
                                    {
                                        "type": "00000020-0000-1000-8000-0026BB765291",
                                        "iid": 3,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX"
                                    },
                                    {
                                        "type": "00000021-0000-1000-8000-0026BB765291",
                                        "iid": 4,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Window"
                                    },
                                    {
                                        "type": "00000030-0000-1000-8000-0026BB765291",
                                        "iid": 5,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "5632255a131702d2"
                                    },
                                    {
                                        "type": "00000014-0000-1000-8000-0026BB765291",
                                        "iid": 7,
                                        "perms": [
                                            "pw"
                                        ],
                                        "format": "bool"
                                    },
                                    {
                                        "type": "00000052-0000-1000-8000-0026BB765291",
                                        "iid": 6,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "4"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            },
                            {
                                "type": "0000008B-0000-1000-8000-0026BB765291",
                                "iid": 8,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 9,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "Roof Window"
                                    },
                                    {
                                        "type": "0000007C-0000-1000-8000-0026BB765291",
                                        "iid": 11,
                                        "perms": [
                                            "pr",
                                            "pw",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 0,
                                        "maxValue": 100,
                                        "minValue": 0,
                                        "unit": "percentage",
                                        "minStep": 1
                                    },
                                    {
                                        "type": "0000006D-0000-1000-8000-0026BB765291",
                                        "iid": 10,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 0,
                                        "maxValue": 100,
                                        "minValue": 0,
                                        "unit": "percentage",
                                        "minStep": 1
                                    },
                                    {
                                        "type": "00000072-0000-1000-8000-0026BB765291",
                                        "iid": 12,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 2,
                                        "maxValue": 2,
                                        "minValue": 0,
                                        "minStep": 1
                                    }
                                ],
                                "hidden": false,
                                "primary": true
                            }
                        ]
                    },
                    {
                        "aid": 4,
                        "services": [
                            {
                                "type": "0000003E-0000-1000-8000-0026BB765291",
                                "iid": 1,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 2,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Internal Cover"
                                    },
                                    {
                                        "type": "00000020-0000-1000-8000-0026BB765291",
                                        "iid": 3,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX"
                                    },
                                    {
                                        "type": "00000021-0000-1000-8000-0026BB765291",
                                        "iid": 4,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "VELUX Internal Cover"
                                    },
                                    {
                                        "type": "00000030-0000-1000-8000-0026BB765291",
                                        "iid": 5,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "56364a3214050f0c"
                                    },
                                    {
                                        "type": "00000014-0000-1000-8000-0026BB765291",
                                        "iid": 7,
                                        "perms": [
                                            "pw"
                                        ],
                                        "format": "bool"
                                    },
                                    {
                                        "type": "00000052-0000-1000-8000-0026BB765291",
                                        "iid": 6,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "14"
                                    }
                                ],
                                "hidden": false,
                                "primary": false
                            },
                            {
                                "type": "0000008C-0000-1000-8000-0026BB765291",
                                "iid": 8,
                                "characteristics": [
                                    {
                                        "type": "00000023-0000-1000-8000-0026BB765291",
                                        "iid": 9,
                                        "perms": [
                                            "pr"
                                        ],
                                        "format": "string",
                                        "value": "Blinds"
                                    },
                                    {
                                        "type": "0000007C-0000-1000-8000-0026BB765291",
                                        "iid": 11,
                                        "perms": [
                                            "pr",
                                            "pw",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 0,
                                        "maxValue": 100,
                                        "minValue": 0,
                                        "unit": "percentage",
                                        "minStep": 1
                                    },
                                    {
                                        "type": "0000006D-0000-1000-8000-0026BB765291",
                                        "iid": 10,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 0,
                                        "maxValue": 100,
                                        "minValue": 0,
                                        "unit": "percentage",
                                        "minStep": 1
                                    },
                                    {
                                        "type": "00000072-0000-1000-8000-0026BB765291",
                                        "iid": 12,
                                        "perms": [
                                            "pr",
                                            "ev"
                                        ],
                                        "format": "uint8",
                                        "value": 2,
                                        "maxValue": 2,
                                        "minValue": 0,
                                        "minStep": 1
                                    }
                                ],
                                "hidden": false,
                                "primary": true
                            }
                        ]
                    }
                ]
            }
        }
    }
}
tokyotexture commented 3 years ago

It seems my search-fu failed me, and it's a duplicate of this https://github.com/home-assistant/core/issues/44314 .