hass-xiaomi-miot
hass-xiaomi-miot copied to clipboard
yeelink.light.ceil26 缺少 light.off_delay_time
Device model / 设备型号
Component version / 插件版本
1.33.0
HA core version / HA版本
core-2024.1.2
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
在米家App上是有这个功能的。 Debug Log中在Initializing miot device with mapping阶段,yeelink.light.ceil26 就没有这个 light.off_delay_time参数。 尝试在miio2miot_specs.py添加yeelink.light.ceil26的数据,试了下套用另一个有延迟功能的灯(yeelink.light.ceiling8),也没效果。(需要重启容器才会生效?)
Entity attributes / 实体属性
min_color_temp_kelvin: 2702
max_color_temp_kelvin: 6493
min_mireds: 154
max_mireds: 370
effect_list: 日光, 夜光
supported_color_modes: brightness, color_temp, onoff
color_mode: null
brightness: null
color_temp_kelvin: null
color_temp: null
hs_color: null
rgb_color: null
xy_color: null
effect: null
model: yeelink.light.ceil26
lan_ip:
mac_address:
entity_class: MiotLightEntity
miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-ceil26:1
light.on: false
light.mode: 1
light.brightness: 3003
state_updater: lan
friendly_name: 小屋_灯 灯光
supported_features: 36
Home Assistant Logs / 系统日志
2024-01-16 00:21:59.784 INFO (MainThread) [custom_components.xiaomi_miot.light] 大屋_灯(yeelink.light.ceiling8): Initializing miot device with mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 2}, 'light.color_temperature': {'siid': 2, 'piid': 3}, 'light.mode': {'siid': 2, 'piid': 4}, 'light.off_delay_time': {'siid': 2, 'piid': 102}} 2024-01-16 00:21:59.785 INFO (MainThread) [custom_components.xiaomi_miot.light] 门厅_灯(yeelink.light.ceiling24): Initializing miot device with mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 2}, 'light.color_temperature': {'siid': 2, 'piid': 3}, 'light.off_delay_time': {'siid': 2, 'piid': 102}} 2024-01-16 00:21:59.785 INFO (MainThread) [custom_components.xiaomi_miot.light] 小屋_灯(yeelink.light.ceil26): Initializing miot device with mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.mode': {'siid': 2, 'piid': 2}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flow': {'siid': 2, 'piid': 6}}
Hi, the ceiling light is not working at all. It displays as UNAVAILABLE. Same situation with MI Bedside Lamp2
Hi, the ceiling light is not working at all. It displays as UNAVAILABLE. Same situation with MI Bedside Lamp2
Looks like the issue has resolved itself?
Hi, the ceiling light is not working at all. It displays as UNAVAILABLE. Same situation with MI Bedside Lamp2
Looks like the issue has resolved itself?
No solution yet, the ceiling light 26 is working fine for me, just missing light.off_delay_time, use home assistant automated delay function instead
yeelink.light.ceil*
系列似乎都是原生支持miot协议,而其miot规格中无off_delay_time
属性。
如果想修改miio2miot_specs.py
,还需在miot_specs_extend.json
中添加对应的spec。
当然你也可以通过xiaomi_miot.send_command服务直接测试设备是否支持延迟关闭,如果支持还可通过辅助元素+自动化实现。
service: xiaomi_miot.send_command
data:
entity_id: light.yeelink_color1_164f
method: set_scene
params:
- auto_delay_off
- 100 # bright
- 3000 # delay