Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法控制浴霸的风速档位, 型号 yeelink.bhf_light.v6 #436

Closed
keniji opened this issue Feb 15, 2022 · 3 comments
Closed

无法控制浴霸的风速档位, 型号 yeelink.bhf_light.v6 #436

keniji opened this issue Feb 15, 2022 · 3 comments
Labels
device: bath-heater miio2miot spec-missing MIoT Spec service/property/action missing

Comments

@keniji
Copy link

keniji commented Feb 15, 2022

Hi~
我是昨天来问过浴霸的, 我改用这个组件来控制浴霸了, 感谢~

不过我发现好像控制不了浴霸的风速档位. 这个浴霸在米家APP里的界面大致是这样的:
image

我昨天通过hass-miio-yeelink添加这个浴霸时, 会出来6个fan的实体:

fan.xiaomi_yeelink_coolwind
fan.xiaomi_yeelink_drying
fan.xiaomi_yeelink_fastdefog
fan.xiaomi_yeelink_fastwarm
fan.xiaomi_yeelink_venting
fan.xiaomi_yeelink_warmwind

例如fan.xiaomi_yeelink_coolwind它的属性是这样的:

speed_list: low, high
preset_modes: null
direction: forward
oscillating: true
speed: low
percentage: 0
percentage_step: 1
preset_mode: null
model: yeelink.bhf_light.v6
lan_ip: XXX.XXX.XXX.XXX
mac_address: AA:AA:AA:AA:AA:AA
firmware_version: 2.2.2
hardware_version: esp32
entity_class: BathHeaterEntityV5
mode: coolwind
parent_entity: warmwind
power: on
bh_mode: bh_off
fan_speed_idx: 0
swing_action: swing
swing_angle: 90
bh_cfg_delayoff: 0
bh_delayoff: 0
light_cfg_delayoff: 0
delayoff: 0
aim_temp: 28
friendly_name: Xiaomi Yeelink coolwind
supported_features: 7

然后我可以通过设置speedlow或者high来打开对应米家APP中浴霸的吹风低档或者吹风高档. 但是在用现在这个hass-xiaomi-miot添加浴霸后, 是直接出来一个实体climate.yeelink_v6_4d4b_ptc_bath_heater, 属性是这些:

hvac_modes: off, heat, dry, fan_only
min_temp: 25
max_temp: 45
target_temp_step: 1
fan_modes: null
preset_modes: Ventilate, off
current_temperature: 21
temperature: 28
fan_mode: null
preset_mode: off
model: yeelink.bhf_light.v6
lan_ip: XXX.XXX.XXX.XXX
mac_address: AA:AA:AA:AA:AA:AA
entity_class: MiotClimateEntity
home_room: 浴室
miot_type: urn:miot-spec-v2:device:bath-heater:0000A028:yeelink-v6:2
ptc_bath_heater.mode: 0
target_temperature-3-2: 28
ptc_bath_heater.temperature: 21
state_updater: lan
light.on: true
light.mode: 0
light.brightness: 100
sub_entities: Ventilate
friendly_name: 浴霸 PTC Bath Heater
supported_features: 25

我在打开例如fan_only之后, 直接就是吹风高档了 (切换其他模式也直接都是高档位), 而且好像没有调整档位的选项, 请问这个是否可以通过自定义来修改呢? 非常感谢!

@al-one al-one added device: bath-heater spec-missing MIoT Spec service/property/action missing labels Feb 15, 2022
@al-one
Copy link
Owner

al-one commented Feb 15, 2022

由于本插件是通过miot协议接入设备的,而该设备的miot-spec中未定义风速相关属性。不过由于该设备可以通过hass-miio-yeelink接入,猜测它应该同时支持miot/miio两种协议,后面会考虑通过miio2miot来解决该问题,请加入QQ群198841186并联系我。

@keniji
Copy link
Author

keniji commented Feb 15, 2022

了解, 已在QQ联系, 多谢~

@al-one
Copy link
Owner

al-one commented Feb 18, 2022

请更新到master分支后尝试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device: bath-heater miio2miot spec-missing MIoT Spec service/property/action missing
Projects
None yet
Development

No branches or pull requests

2 participants