Open mazige1997 opened 8 months ago
![Uploading 实体id.JPG…]()
麻烦走过路过的大神们看看这个问题
尝试master分支
尝试master分支 更新了最新的miot,还是只有一个 控制灯的开关。我看产品规格里有PTC Bath Heater 、Fan Control,也看了您添加支持的代码,接入该设备后没有switch_properties、select_properties、button_actions这些
尝试master分支
另外在你 add support for leishi.bhf_light.lsyb01之前也可以像目前一样控制灯的开关,但是PTC Bath Heater 、Fan Control,还是跟现在一样无法操作,也没有生成相关的实体
Device model / 设备型号
leishi.bhf_light.lsyb01
Component version / 插件版本
0.7.14
HA core version / HA版本
2023.12.3
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
浴霸实体id只有一个(light.leishi_lsyb01_b4fa_light),少于支持的数目 支持的设备链接:https://home.miot-spec.com/spec/leishi.bhf_light.lsyb01
Entity attributes / 实体属性
min_color_temp_kelvin: 2702 max_color_temp_kelvin: 6493 min_mireds: 154 max_mireds: 370 supported_color_modes: brightness, color_temp, onoff friendly_name: NVC Smart Bath-Heater V2 Light supported_features: 0 model: leishi.bhf_light.lsyb01 lan_ip: mac_address: entity_class: MiotLightEntity home_room: miot_type: urn:miot-spec-v2:device:bath-heater:0000A028:leishi-lsyb01:1 light.on: false light.brightness: 43 light.color_temperature: 6500 state_updater: cloud
Home Assistant Logs / 系统日志
2023-12-21 22:26:09.965 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi cloud device: {'name': 'NVC Smart Bath-Heater V2', 'host': '', 'token': '****', 'model': 'leishi.bhf_light.lsyb01', 'miot_did': '698912879', 'miot_type': 'urn:miot-spec-v2:device:bath-heater:0000A028:leishi-lsyb01:1', 'miio_info': {'ap': {'ssid': '', 'bssid': '', 'rssi': -62}, 'netif': {'localIp': '', 'gw': '', 'mask': ''}, 'fw_ver': '1.0.7', 'hw_ver': '', 'mac': '', 'model': 'leishi.bhf_light.lsyb01', 'token': ''}, 'conn_mode': 'local', 'miot_local': True, 'miot_cloud': False, 'home_name': '', 'room_name': '', 'entry_id': '8729d3603fee21943625c25f2a9865c2', 'config_version': 0.3} 2023-12-21 22:26:09.981 INFO (MainThread) [custom_components.xiaomi_miot.light] NVC Smart Bath-Heater V2(leishi.bhf_light.lsyb01): Initializing miot device with mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 2}, 'light.color_temperature': {'siid': 2, 'piid': 3}} 2023-12-21 22:26:10.063 DEBUG (MainThread) [custom_components.xiaomi_miot.light] NVC Smart Bath-Heater V2(leishi.bhf_light.lsyb01): Got new state: {'light.on': False, 'light.brightness': 43, 'light.color_temperature': 6500, 'state_updater': 'lan'} 2023-12-21 22:26:10.065 DEBUG (MainThread) [custom_components.xiaomi_miot.light] NVC Smart Bath-Heater V2(leishi.bhf_light.lsyb01): Added to hass: [{'main_miot_services': 'ptc_bath_heater', 'number_properties': 'off_delay_time'}]