其实可以用`BoolConv`,直接生成开关实体,插件的作者也写了For MIoT uint8 properties you should use `BoolConv`
新建一个xiaomi_gateway3.py更好修改,他这个可以覆盖已存在的设备信息You can write you own external converter without change integration code. Just create xiaomi_gateway3.py file in Hass config folder.
the new device is added to the top of the list, so it will have a higher priority when checking for a model match and you can override the built-in converters