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

Skip discovering disabled devices #2095

Closed
ymj0424 opened this issue Dec 17, 2024 · 3 comments
Closed

Skip discovering disabled devices #2095

ymj0424 opened this issue Dec 17, 2024 · 3 comments

Comments

@ymj0424
Copy link

ymj0424 commented Dec 17, 2024

Devices that are only used in summer or winter are always disconnected during the off-season. I manually disable these devices, but it seems the component continues to discover them, leading to log flooding.

那些仅在夏季或冬季使用的设备在其他季节都会断开连接。我手动禁用了这些设备,但似乎组件仍然会继续发现它们,导致大量错误日志。

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

al-one commented Dec 17, 2024

Try master branch.

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

@ymj0424
Copy link
Author

ymj0424 commented Dec 18, 2024

Thanks, it worked.

@ymj0424 ymj0424 closed this as completed Dec 18, 2024
@abu9
Copy link

abu9 commented Dec 25, 2024

Try master branch.

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

Hi @al-one, log flooding remaining after update to master branch, here's the debug logs:

debug logs
�[36m2024-12-25 20:34:04.749 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1 data in 2.525 seconds (success: True)�[0m
�[36m2024-12-25 20:34:04.797 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/check_new_msg {'begin_at': 1735129984} result: bytearray(b'{"code":0,"message":"ok","result":false}')�[0m
�[36m2024-12-25 20:34:04.798 DEBUG (MainThread) [custom_components.xiaomi_miot] Setup xiaomi cloud for user: xxx@gmail.com, 4 devices�[0m
�[36m2024-12-25 20:34:04.955 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Device disabled by: user�[0m
�[36m2024-12-25 20:34:04.956 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Miot coordinators: [{'interval': 10, 'props': 'on,fan_level'}, {'alarm': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}]�[0m
�[36m2024-12-25 20:34:04.956 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}}�[0m
�[31m2024-12-25 20:34:09.962 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}, max_properties: 3/3�[0m
�[36m2024-12-25 20:34:09.962 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1 data in 5.006 seconds (success: True)�[0m
�[36m2024-12-25 20:34:09.962 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 米家直流变频落地扇(dmaker.fan.p10): Coordinator updated: ['5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7f30837b00d0>]�[0m
�[36m2024-12-25 20:34:09.962 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'alarm': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}}�[0m
�[31m2024-12-25 20:34:14.969 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'alarm': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}, max_properties: 9/9�[0m
�[36m2024-12-25 20:34:14.969 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-miot_status data in 5.007 seconds (success: True)�[0m
�[36m2024-12-25 20:34:14.969 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 米家直流变频落地扇(dmaker.fan.p10): Coordinator updated: ['5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-miot_status', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7f307d7963d0>]�[0m
�[36m2024-12-25 20:34:14.969 DEBUG (MainThread) [custom_components.xiaomi_miot] Xiaomi cloud device: {'device': <custom_components.xiaomi_miot.core.device.Device object at 0x7f309418ccd0>, 'name': '米家直流变频落地扇', 'host': '192.168.10.49', 'token': '****', 'model': 'dmaker.fan.p10', 'miot_did': '242226269', 'miot_type': 'urn:miot-spec-v2:device:fan:0000A005:dmaker-p10:2', 'miio_info': dmaker.fan.p10 v2.1.3 (5c:xx:0c:xx:xx:xx) @ 192.168.10.49 - token: 131966a24maskedc243d4a6cd, 'conn_mode': 'auto', 'miot_local': True, 'miot_cloud': False, 'home_name': 'LaiKong', 'room_name': '客厅', 'entry_id': 'c7c7a9ba559xxxxxxxxx1ad6c6', 'config_version': 0.3}�[0m
�[32m2024-12-25 20:34:15.304 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['sensor', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=sensor platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.313 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['binary_sensor', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=binary_sensor platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.313 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['switch', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=switch platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.314 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['number', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=number platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.314 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['select', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=select platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.317 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['button', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=button platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.318 INFO (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] New entity: <entity unknown.unknown=unknown>�[0m
�[32m2024-12-25 20:34:15.320 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['text', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=text platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.320 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['light', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=light platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.320 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['fan', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=fan platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.320 INFO (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] 米家直流变频落地扇(dmaker.fan.p10): Initializing miot device with mapping: {'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}�[0m
�[36m2024-12-25 20:34:15.321 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}}�[0m
�[32m2024-12-25 20:34:15.321 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['climate', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=climate platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.324 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['cover', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=cover platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.324 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['humidifier', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=humidifier platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.325 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['media_player', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=media_player platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.325 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['camera', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=camera platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.326 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['vacuum', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=vacuum platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.326 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['water_heater', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=water_heater platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.326 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['device_tracker', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=device_tracker platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.326 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['remote', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=remote platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[32m2024-12-25 20:34:15.326 INFO (MainThread) [custom_components.xiaomi_miot.core.hass_entry] New adder: ['alarm_control_panel', <bound method EntityPlatform._async_schedule_add_entities_for_entry of <EntityPlatform domain=alarm_control_panel platform_name=xiaomi_miot config_entry=<ConfigEntry entry_id=c7c7a9ba559xxxxxxxxx1ad6c6 version=1 domain=xiaomi_miot title=Xiaomi: 1414490468 state=ConfigEntryState.SETUP_IN_PROGRESS unique_id=None>>>]�[0m
�[36m2024-12-25 20:34:15.533 DEBUG (SyncWorker_4) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: miotspec/action {'params': {'did': '492617754', 'siid': 7, 'aiid': 2, 'in': []}} result: bytearray(b'{"code":0,"message":"ok","result":{"did":"492617754","miid":0,"siid":7,"aiid":2,"code":0,"exe_time":0,"withLatency":0}}')�[0m
�[36m2024-12-25 20:34:15.751 DEBUG (SyncWorker_4) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: miotspec/action {'params': {'did': '492617754', 'siid': 7, 'aiid': 1, 'in': [1]}} result: bytearray(b'{"code":0,"message":"ok","result":{"did":"492617754","miid":0,"siid":7,"aiid":1,"code":-706010002,"description":"remote error code : -4","exe_time":0,"withLatency":0}}')�[0m
�[31m2024-12-25 20:34:20.334 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}, max_properties: 3/3�[0m
�[36m2024-12-25 20:34:20.334 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1 data in 5.014 seconds (success: True)�[0m
�[36m2024-12-25 20:34:20.335 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 米家直流变频落地扇(dmaker.fan.p10): Coordinator updated: ['5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7f3083e76950>]�[0m
�[36m2024-12-25 20:34:20.335 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] 米家直流变频落地扇 Fan: Got new state: {'state_updater': None}�[0m
�[36m2024-12-25 20:34:24.972 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'alarm': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}}�[0m
�[36m2024-12-25 20:34:25.183 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/user/statistics {'did': '318414910', 'key': 'powerCost', 'data_type': 'stat_day', 'time_start': 1732365265, 'time_end': 1735130125, 'limit': 31} result: bytearray(b'{"code":0,"message":"ok","result":[{"value":"[25]","time":1735056000},{"value":"[28]","time":1734969600},{"value":"[29]","time":1734883200},{"value":"[29]","time":1734796800},{"value":"[29]","time":1734710400},{"value":"[28]","time":1734624000},{"value":"[29]","time":1734537600},{"value":"[29]","time":1734451200},{"value":"[29]","time":1734364800},{"value":"[28]","time":1734278400},{"value":"[29]","time":1734192000},{"value":"[28]","time":1734105600},{"value":"[28]","time":1734019200},{"value":"[29]","time":1733932800},{"value":"[29]","time":1733846400},{"value":"[28]","time":1733760000},{"value":"[29]","time":1733673600},{"value":"[29]","time":1733587200},{"value":"[29]","time":1733500800},{"value":"[28]","time":1733414400},{"value":"[29]","time":1733328000},{"value":"[29]","time":1733241600},{"value":"[29]","time":1733155200},{"value":"[29]","time":1733068800},{"value":"[28]","time":1732982400},{"value":"[29]","time":1732896000},{"value":"[29]","time":1732809600},{"value":"[29]","time":1732723200},{"value":"[29]","time":1732636800},{"value":"[28]","time":1732550400},{"value":"[29]","time":1732464000}]}')�[0m
�[36m2024-12-25 20:34:25.254 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/user/statistics {'did': '335269041', 'key': 'powerCost', 'data_type': 'stat_day', 'time_start': 1732365265, 'time_end': 1735130125, 'limit': 31} result: bytearray(b'{"code":0,"message":"ok","result":[{"value":"[30]","time":1735056000},{"value":"[36]","time":1734969600},{"value":"[36]","time":1734883200},{"value":"[36]","time":1734796800},{"value":"[36]","time":1734710400},{"value":"[36]","time":1734624000},{"value":"[36]","time":1734537600},{"value":"[36]","time":1734451200},{"value":"[36]","time":1734364800},{"value":"[36]","time":1734278400},{"value":"[36]","time":1734192000},{"value":"[36]","time":1734105600},{"value":"[36]","time":1734019200},{"value":"[36]","time":1733932800},{"value":"[36]","time":1733846400},{"value":"[36]","time":1733760000},{"value":"[36]","time":1733673600},{"value":"[36]","time":1733587200},{"value":"[36]","time":1733500800},{"value":"[36]","time":1733414400},{"value":"[36]","time":1733328000},{"value":"[36]","time":1733241600},{"value":"[36]","time":1733155200},{"value":"[36]","time":1733068800},{"value":"[36]","time":1732982400},{"value":"[36]","time":1732896000},{"value":"[36]","time":1732809600},{"value":"[36]","time":1732723200},{"value":"[36]","time":1732636800},{"value":"[36]","time":1732550400},{"value":"[36]","time":1732464000}]}')�[0m
�[36m2024-12-25 20:34:25.371 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: miotspec/prop/get {'params': [{'did': '492617754', 'siid': 6, 'piid': 1}, {'did': '492617754', 'siid': 6, 'piid': 2}, {'did': '492617754', 'siid': 4, 'piid': 1}, {'did': '492617754', 'siid': 4, 'piid': 2}, {'did': '492617754', 'siid': 4, 'piid': 3}, {'did': '492617754', 'siid': 4, 'piid': 4}, {'did': '492617754', 'siid': 3, 'piid': 1}, {'did': '492617754', 'siid': 3, 'piid': 2}, {'did': '492617754', 'siid': 3, 'piid': 3}, {'did': '492617754', 'siid': 3, 'piid': 4}, {'did': '492617754', 'siid': 3, 'piid': 5}, {'did': '492617754', 'siid': 3, 'piid': 6}, {'did': '492617754', 'siid': 3, 'piid': 7}, {'did': '492617754', 'siid': 3, 'piid': 8}, {'did': '492617754', 'siid': 8, 'piid': 9}, {'did': '492617754', 'siid': 7, 'piid': 9}, {'did': '492617754', 'siid': 5, 'piid': 1}, {'did': '492617754', 'siid': 5, 'piid': 2}, {'did': '492617754', 'siid': 5, 'piid': 3}, {'did': '492617754', 'siid': 2, 'piid': 1}, {'did': '492617754', 'siid': 2, 'piid': 2}, {'did': '492617754', 'siid': 2, 'piid': 3}, {'did': '492617754', 'siid': 2, 'piid': 4}, {'did': '492617754', 'siid': 2, 'piid': 5}]} result: bytearray(b'{"code":0,"message":"ok","result":[{"did":"492617754","siid":6,"piid":1,"value":101,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":6,"piid":2,"value":"idle","code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":4,"piid":1,"value":0,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":4,"piid":2,"value":15,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":4,"piid":3,"value":true,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":4,"piid":4,"value":false,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":3,"piid":1,"value":false,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":3,"piid":2,"value":30,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":3,"piid":3,"value":true,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":3,"piid":4,"value":14,"code":0,"updateTime":1735124917,"exe_time":0},{"did":"492617754","siid":3,"piid":5,"value":0,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":3,"piid":6,"value":-52,"code":0,"updateTime":1735129921,"exe_time":0},{"did":"492617754","siid":3,"piid":7,"value":true,"code":0,"updateTime":1735129921,"exe_time":0},{"did":"492617754","siid":3,"piid":8,"value":50,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":8,"piid":9,"value":1,"code":0,"updateTime":1734861292,"exe_time":0},{"did":"492617754","siid":7,"piid":9,"value":1,"code":0,"updateTime":1734861292,"exe_time":0},{"did":"492617754","siid":5,"piid":1,"value":true,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":5,"piid":2,"value":0,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":5,"piid":3,"value":100,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":2,"piid":1,"value":true,"code":0,"updateTime":1734861437,"exe_time":0},{"did":"492617754","siid":2,"piid":2,"value":180,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":2,"piid":3,"value":0,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":2,"piid":4,"value":true,"code":0,"updateTime":1734861291,"exe_time":0},{"did":"492617754","siid":2,"piid":5,"value":true,"code":0,"updateTime":1734861291,"exe_time":0}]}')�[0m
�[31m2024-12-25 20:34:29.974 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'alarm': {'siid': 4, 'piid': 1}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'fan.mode': {'siid': 2, 'piid': 3}, 'fan.horizontal_swing': {'siid': 2, 'piid': 4}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.off_delay_time': {'siid': 2, 'piid': 6}, 'fan.brightness': {'siid': 2, 'piid': 7}, 'fan.alarm': {'siid': 2, 'piid': 8}, 'fan.speed_level': {'siid': 2, 'piid': 10}}, max_properties: 9/9�[0m
�[36m2024-12-25 20:34:29.974 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-miot_status data in 5.003 seconds (success: True)�[0m
�[36m2024-12-25 20:34:29.974 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 米家直流变频落地扇(dmaker.fan.p10): Coordinator updated: ['5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-miot_status', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7f30838319d0>]�[0m
�[36m2024-12-25 20:34:30.078 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}}�[0m
�[31m2024-12-25 20:34:35.084 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}, max_properties: 3/3�[0m
�[36m2024-12-25 20:34:35.084 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Finished fetching 5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1 data in 5.007 seconds (success: True)�[0m
�[36m2024-12-25 20:34:35.084 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 米家直流变频落地扇(dmaker.fan.p10): Coordinator updated: ['5c:xx:0c:xx:xx:xx-c7c7a9ba559xxxxxxxxx1ad6c6-chunk_1', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7f307ce870d0>]�[0m
�[36m2024-12-25 20:34:45.078 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Update miot status: {'use_local': [True, True, <MiotDevice: 192.168.10.49 (token: 131966a24maskedc243d4a6cd)>], 'use_cloud': [False, False, None], 'mapping': {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}}�[0m
�[31m2024-12-25 20:34:50.083 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p10] Got MiioException while fetching the state: Unable to discover the device 192.168.10.49, mapping: {'indicator_light.on': {'siid': 5, 'piid': 1}, 'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}}, max_properties: 3/3�[0m

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

3 participants