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

升级1.0.1后易来浴霸预设全部模式名称变成“模式”两个中文,无法区分不同模式,且无法控制 #2010

Closed
chenvd opened this issue Dec 5, 2024 · 10 comments
Labels

Comments

@chenvd
Copy link

chenvd commented Dec 5, 2024

Device model / 设备型号

yeelink.bhf_light.v6

Component version / 插件版本

1.0.1

HA core version / HA版本

2024.12.0

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

从0.7.25升级到1.0.1后,易来浴霸的预设从英文变成了中文,除了off以外,其他模式全部都是“模式”两个中文,没有区分不同的模式,并且切换模式无效。即原来的“Ventilate”, "Defog"这些模式,升级后都变成了“模式”两个字,并且切换模式无效。或者也可以考虑升级后默认不翻译这些属性。谢谢

iShot_2024-12-05_08 51 46

iShot_2024-12-05_09 00 23

iShot_2024-12-05_09 01 15

Entity attributes / 实体属性

device_class: update
icon: mdi:information
friendly_name: 浴霸 信息
info: 浴霸
model: yeelink.bhf_light.v6
did: 
mac: 
lan_ip: 
app_link: 
miot_type: urn:miot-spec-v2:device:bath-heater:0000A028:yeelink-v6:2
available: true
home_room: 我的家 卫生间
updater: local
updated_at: 2024-12-05 09:01:09.830304+08:00
converters: info, light.on, light.brightness, light.mode, ptc_bath_heater.temperature, target_temperature-3-2, ptc_bath_heater.heat_mode, ptc_bath_heater.cold_mode, ptc_bath_heater.vent_mode
customizes: 
sensor_properties: temperature
switch_properties: heating,blow,ventilation
select_properties: heat_mode,cold_mode,vent_mode
number_properties: target_temperature,off_delay_time
extend_miot_specs:
  - iid: 3
    properties:
      - iid: 1
        value-list:
          - value: 0
            description: Idle
          - value: 1
            description: Fan
          - value: 2
            description: Heat
          - value: 3
            description: Ventilate
          - value: 4
            description: Dry
          - value: 5
            description: Defog
          - value: 6
            description: Quick Heat
          - value: 7
            description: Quick Defog
      - iid: 101
        type: urn:miot-spec-v2:property:fan-level
        format: uint8
        access:
          - read
          - write
        value-list:
          - value: 1
            description: Low
          - value: 3
            description: High
      - iid: 111
        type: urn:miot-spec-v2:property:heat-mode
        format: uint8
        access:
          - read
          - write
        value-list:
          - value: 0
            description: 'Off'
          - value: 1
            description: Low
          - value: 2
            description: High
      - iid: 112
        type: urn:miot-spec-v2:property:cold-mode
        format: uint8
        access:
          - read
          - write
        value-list:
          - value: 0
            description: 'Off'
          - value: 1
            description: Low
          - value: 3
            description: High
      - iid: 113
        type: urn:miot-spec-v2:property:vent-mode
        format: uint8
        access:
          - read
          - write
        value-list:
          - value: 0
            description: 'Off'
          - value: 1
            description: Low
          - value: 3
            description: High

target_temperature-3-2: 35
ptc_bath_heater.temperature: 24
ptc_bath_heater.heat_mode: prop_err
ptc_bath_heater.cold_mode: prop_err
ptc_bath_heater.vent_mode: prop_err
light.on: false
light.mode: 1
method: set_properties
params: 
- siid: 2
  piid: 3
  did: ''
  value: 255

ptc_bath_heater.mode: 0
ptc_bath_heater.fan_level: 1
light.brightness: 100

Home Assistant Logs / 系统日志

No response

@senmizu
Copy link

senmizu commented Dec 5, 2024

+1
Revert to version 0.7.25, and everything seems peaceful to me.

@keniji
Copy link

keniji commented Dec 6, 2024

同型号yeelink.bhf_light.v6, 升级到1.0.2后问题仍然存在:
image
image

@chenvd
Copy link
Author

chenvd commented Dec 6, 2024

同型号yeelink.bhf_light.v6, 升级到1.0.2后问题仍然存在: image image

@al-one 验证过后确实问题依旧存在,麻烦你了,谢谢

@IvanWoo22
Copy link

依然存在

@al-one
Copy link
Owner

al-one commented Dec 10, 2024

master已修复。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@keniji
Copy link

keniji commented Dec 12, 2024

确认在homeassistant 2024.12.2hass-xiaomi-miot 1.0.3yeelink.bhf_light.v6preset_modes已恢复正常,但更新插件后原本配置的实体似乎无法同步到设备的实际工作状态,例如在浴霸关闭状态下点击“制热”,界面上仍显示“关闭”但设备实际上可以进入制热模式;然后在我尝试重新配置插件时,出现另一错误:无法加载配置向导: 500 Internal Server Error Server got itself in trouble,退回到0.7.25后正常…附上日志:

日志记录器: aiohttp.server
来源: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:451
首次出现: 20:00:29 (1 次总计出现)
上次记录: 20:00:29

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 262, in post
    return await super().post(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
    return await method(view, request, data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 77, in post
    return await self._post_impl(request, data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl
    result = await self._flow_mgr.async_init(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 332, in async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3053, in async_create_flow
    return handler.async_get_options_flow(entry)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/config/custom_components/xiaomi_miot/config_flow.py", line 261, in async_get_options_flow
    return OptionsFlowHandler(entry)
  File "/config/custom_components/xiaomi_miot/config_flow.py", line 588, in __init__
    if not hasattr(self, 'config_entry'):
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3144, in config_entry
    raise ValueError("The config entry is not available during initialisation")
ValueError: The config entry is not available during initialisation

al-one added a commit that referenced this issue Dec 12, 2024
@al-one
Copy link
Owner

al-one commented Dec 12, 2024

Fixed in 1.0.4

@keniji
Copy link

keniji commented Dec 12, 2024

Fixed in 1.0.4

感谢, 在1.0.4里插件的配置功能恢复正常了。

但是浴霸方面还是有点问题。举个例子,现在浴霸现在是完全关闭的状态,我删掉了整个集成条目(也包括浴霸)并重新添加,现在UI是显示:
image
我现在从“预设”里选择“Ventilate”,此时浴霸实际上进入了换气模式,但是在UI里“预设”在我选择完“Ventilate”之后,又自动跳到了“off”(即显示和上图一样),然后在等待一小段时间之后(在同步状态?),“预设”显示了“Ventilate”(注意左边的“模式”按钮也同时发生变化):
image
而选择“模式”的话情况类似。同时可以看到有错误日志重复出现:

2024-12-12 23:07:51.404 WARNING (MainThread) [homeassistant.components.fan] Entity fan.yeelink_v6_5da2_mode (<class 'custom_components.xiaomi_miot.climate.ClimateModeSubEntity'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
2024-12-12 23:07:51.404 WARNING (MainThread) [homeassistant.components.fan] Entity fan.yeelink_v6_5da2_mode (<class 'custom_components.xiaomi_miot.climate.ClimateModeSubEntity'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues

@al-one
Copy link
Owner

al-one commented Dec 13, 2024

@keniji 操作后更新延迟 master 已修复

@keniji
Copy link

keniji commented Dec 15, 2024

@keniji 操作后更新延迟 master 已修复

感谢,1.0.5里看起来这个issue里的问题是都修复了 👍👍👍

@al-one al-one closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants