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

Long status update and change setting temperature or humidifity #2256

Open
Redram49RUS opened this issue Dec 30, 2024 · 3 comments
Open

Long status update and change setting temperature or humidifity #2256

Redram49RUS opened this issue Dec 30, 2024 · 3 comments

Comments

@Redram49RUS
Copy link

Device model / 设备型号

Zhimi.heater.mc2a and shimi.humidifier.ca4

Component version / 插件版本

1.07

HA core version / HA版本

2024.12.5

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

Screenshot_20241230-222720

When I try on/off device or change settings temperature or humidifity status change has take long time or I need tap the button twice to have effect.

Entity attributes / 实体属性

.

Home Assistant Logs / 系统日志

.

@Redram49RUS
Copy link
Author

Эта ошибка возникла в пользовательской интеграции.

Регистратор: custom_components.xiaomi_miot.core.device.zhimi.heater.mc2a
Источник: custom_components/xiaomi_miot/core/device.py:868
интеграция: Xiaomi Miot Auto (документация, проблемы)
Первое сообщение: 19:46:42 (3 сообщений)
Последнее сообщение: 19:46:58

Got MiioException while fetching the state: Unable to discover the device 192.168.1.71, mapping: {'indicator_light.on': {'siid': 7, 'piid': 1}, 'heater.on': {'siid': 2, 'piid': 1}, 'heater.target_temperature': {'siid': 2, 'piid': 5}}, max_properties: 3/3
Got MiioException while fetching the state: Unable to discover the device 192.168.1.71, mapping: {'private_service.hw_enable': {'siid': 8, 'piid': 8}, 'private_service.use_time': {'siid': 8, 'piid': 9}, 'private_service.country_code': {'siid': 8, 'piid': 10}, 'alarm': {'siid': 6, 'piid': 1}, 'physical_controls_locked': {'siid': 5, 'piid': 1}, 'environment.temperature': {'siid': 4, 'piid': 7}, 'countdown.countdown_time': {'siid': 3, 'piid': 1}, 'heater.fault': {'siid': 2, 'piid': 2}}, max_properties: 8/8

@Redram49RUS
Copy link
Author

Эта ошибка возникла в пользовательской интеграции.

Регистратор: custom_components.xiaomi_miot.core.device.roborock.vacuum.a27
Источник: helpers/update_coordinator.py:379
интеграция: Xiaomi Miot Auto (документация, проблемы)
Первое сообщение: 23:06:27 (1 сообщений)
Последнее сообщение: 23:06:27

Unexpected error fetching b0:4a:39:5b:a4:c9-add867fe9cbe045af4c0c71542836c6a-chunk_2 data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 280, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 513, in _update
result = await self.update_miot_status(mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 827, in update_miot_status
results = await self.miio2miot.async_get_miot_props(self.local, mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 112, in async_get_miot_props
return await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
partial(self.get_miot_props, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 120, in get_miot_props
if dic := self.get_miio_props(device):
~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 78, in get_miio_props
vls = device.send(c['method'], pms)
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 107, in send
return self._protocol.send(
~~~~~~~~~~~~~~~~~~~^
command, parameters, retry_count, extra_parameters=extra_parameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/miio/miioprotocol.py", line 202, in send
self.__id = payload["id"]
~~~~~~~^^^^^^
TypeError: byte indices must be integers or slices, not str

@gieljnssns
Copy link

gieljnssns commented Jan 2, 2025

I'm also seeing this error for roborock.vacuum.a15

This error originated from a custom integration.

Logger: custom_components.xiaomi_miot.core.device.roborock.vacuum.a15
Source: helpers/update_coordinator.py:379
integration: Xiaomi Miot Auto (documentation, issues)
First occurred: January 1, 2025 at 19:58:50 (1 occurrences)
Last logged: January 1, 2025 at 19:58:50

Unexpected error fetching b0:4a:39:40:3b:25-chunk_1 data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 280, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/device.py", line 513, in _update
    result = await self.update_miot_status(mapping)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/device.py", line 827, in update_miot_status
    results = await self.miio2miot.async_get_miot_props(self.local, mapping)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 112, in async_get_miot_props
    return await self.hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        partial(self.get_miot_props, *args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 120, in get_miot_props
    if dic := self.get_miio_props(device):
              ~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/miio2miot.py", line 78, in get_miio_props
    vls = device.send(c['method'], pms)
  File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 107, in send
    return self._protocol.send(
           ~~~~~~~~~~~~~~~~~~~^
        command, parameters, retry_count, extra_parameters=extra_parameters
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/miio/miioprotocol.py", line 202, in send
    self.__id = payload["id"]
                ~~~~~~~^^^^^^
TypeError: byte indices must be integers or slices, not str
This error originated from a custom integration.

Logger: custom_components.xiaomi_miot.core.device.roborock.vacuum.a15
Source: custom_components/xiaomi_miot/core/device.py:868
integration: Xiaomi Miot Auto (documentation, issues)
First occurred: January 1, 2025 at 14:00:41 (8 occurrences)
Last logged: 03:51:50

Got MiioException while fetching the state: Unable to discover the device 192.168.79.60, mapping: {'vacuum.mode': {'siid': 2, 'piid': 4}}, max_properties: 1/1
Got MiioException while fetching the state: Unable to discover the device 192.168.79.60, mapping: {'vacuum.status': {'siid': 2, 'piid': 1}}, max_properties: 1/1
Got MiioException while fetching the state: Unable to discover the device 192.168.79.60, mapping: {'filter.filter_life_level': {'siid': 11, 'piid': 1}, 'brush_life_level-10-2': {'siid': 10, 'piid': 2}, 'brush_cleaner.brush_life_level': {'siid': 9, 'piid': 2}, 'battery_level': {'siid': 3, 'piid': 1}, 'vacuum.fault': {'siid': 2, 'piid': 2}, 'vacuum.water_level': {'siid': 2, 'piid': 102}, 'vacuum.mop_mode': {'siid': 2, 'piid': 103}}, max_properties: 7/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants