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

Failed setup (moving from working core Roborock integration) #599

Open
Aephir opened this issue Feb 10, 2024 · 1 comment
Open

Failed setup (moving from working core Roborock integration) #599

Aephir opened this issue Feb 10, 2024 · 1 comment

Comments

@Aephir
Copy link

Aephir commented Feb 10, 2024

Version of the custom_component

1.0.13

What vacuum are you using?

Roborock S7 (A15)

Describe the bug

I have been using the core Roborock integration, which has worked fine, but I wanted to see how this compared. installed this from HACS and restarted HA and deleted the "core" integration.

I installed and set up this integration from UI. One the first try, when I entered the code received by email, it said that this was already configured (or something similar). I restarted HA and tried again, and it worked (Created successfully).

But after integrating, first off, it showed two "copies" of the same account/email address under "Needs attention". After a while, one had disappeared. Then it started saying Failed setup, will retry on a loop.

I have now tried multiple times deleting this integration (also re-downloading the component in HACS), restarting HA, and setting up again, but the result is the same (except I never saw the two accounts/emails again).

Debug log

A continuous loop of this:

2024-02-10 07:54:48.187 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:01.643 DEBUG (MainThread) [custom_components.roborock] Integration async setup entry: {'entry_id': 'REDACTED', 'version': 1, 'minor_version': 1, 'domain': 'roborock', 'title': 'REDACTED_EMAIL', 'data': {'home_data': {'id': REDACTED, 'name': 'My Home', 'products': [{'id': 'REDACTED', 'name': 'Roborock S7', 'model': 'roborock.vacuum.a15', 'capability': 0, 'category': 'robot.vacuum.cleaner', 'schema': [{'id': '101', 'name': 'rpc_request', 'code': 'rpc_request', 'mode': 'rw', 'type': 'RAW'}, {'id': '102', 'name': 'rpc_response', 'code': 'rpc_response', 'mode': 'rw', 'type': 'RAW'}, {'id': '120', 'name': '错误代码', 'code': 'error_code', 'mode': 'ro', 'type': 'ENUM'}, {'id': '121', 'name': '设备状态', 'code': 'state', 'mode': 'ro', 'type': 'ENUM'}, {'id': '122', 'name': '设备电量', 'code': 'battery', 'mode': 'ro', 'type': 'ENUM'}, {'id': '123', 'name': '清扫模式', 'code': 'fan_power', 'mode': 'rw', 'type': 'ENUM'}, {'id': '124', 'name': '拖地模式', 'code': 'water_box_mode', 'mode': 'rw', 'type': 'ENUM'}, {'id': '125', 'name': '主刷寿命', 'code': 'main_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '126', 'name': '边刷寿命', 'code': 'side_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '127', 'name': '滤网寿命', 'code': 'filter_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '128', 'name': '额外状态', 'code': 'additional_props', 'mode': 'ro', 'type': 'RAW'}, {'id': '130', 'name': '完成事件', 'code': 'task_complete', 'mode': 'ro', 'type': 'RAW'}, {'id': '131', 'name': '电量不足任务取消', 'code': 'task_cancel_low_power', 'mode': 'ro', 'type': 'RAW'}, {'id': '132', 'name': '运动中任务取消', 'code': 'task_cancel_in_motion', 'mode': 'ro', 'type': 'RAW'}, {'id': '133', 'name': '充电状态', 'code': 'charge_status', 'mode': 'ro', 'type': 'RAW'}, {'id': '134', 'name': '烘干状态', 'code': 'drying_status', 'mode': 'ro', 'type': 'RAW'}]}], 'devices': [{'duid': 'REDACTED', 'name': 'Roborock S7', 'localKey': 'REDACTED', 'fv': '02.16.12', 'productId': 'REDACTED', 'activeTime': 1706257065, 'timeZoneId': 'Europe/Copenhagen', 'iconUrl': '', 'share': False, 'online': True, 'pv': '1.0', 'tuyaMigrated': False, 'extra': '{}', 'sn': 'R14E5S14400582', 'featureSet': '0', 'newFeatureSet': '0000000000002000', 'deviceStatus': {'121': 8, '122': 100, '123': 106, '124': 204, '125': 16, '126': 0, '127': 34, '120': 0}, 'silentOtaSwitch': False}], 'receivedDevices': [], 'rooms': [{'id': 16330435, 'name': "Luca's room"}, {'id': 16330431, 'name': 'Conservatory'}, {'id': 16330430, 'name': 'Entrance'}, {'id': 16330428, 'name': 'Bedroom'}, {'id': 16330427, 'name': 'Dining room'}, {'id': 16330426, 'name': 'Kitchen'}]}, 'device_network': {'REDACTED': {'ip': '10.0.20.32', 'mac': ''}}, 'username': 'REDACTED_EMAIL', 'user_data': {'uid': 5483134, 'tokentype': '', 'token': 'REDACTED', 'rruid': 'rr63380cf5971830', 'region': 'eu', 'countrycode': '45', 'country': 'DK', 'nickname': 'Rkx8487846', 'rriot': {'u': 'REDACTED', 's': '89wez0', 'h': 'BLuSWIFYU8', 'k': 'pwlQhKbA', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-5.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}, 'tuyaDeviceState': 0, 'avatarurl': 'https://files.roborock.com/iottest/default_avatar.png'}, 'base_url': 'https://euiot.roborock.com'}, 'options': {}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'unique_id': 'REDACTED_EMAIL', 'disabled_by': None}
2024-02-10 07:55:01.645 DEBUG (MainThread) [custom_components.roborock] Requesting home data
2024-02-10 07:55:01.904 DEBUG (MainThread) [custom_components.roborock] Got home data HomeData(id=REDACTED, name='My Home', products=[HomeDataProduct(id='REDACTED', name='Roborock S7', model='roborock.vacuum.a15', code=None, iconurl=None, attribute=None, capability=0, category='robot.vacuum.cleaner', schema=[HomeDataProductSchema(id='101', name='rpc_request', code='rpc_request', mode='rw', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='102', name='rpc_response', code='rpc_response', mode='rw', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='120', name='错误代码', code='error_code', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='121', name='设备状态', code='state', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='122', name='设备电量', code='battery', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='123', name='清扫模式', code='fan_power', mode='rw', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='124', name='拖地模式', code='water_box_mode', mode='rw', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='125', name='主刷寿命', code='main_brush_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='126', name='边刷寿命', code='side_brush_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='127', name='滤网寿命', code='filter_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='128', name='额外状态', code='additional_props', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='130', name='完成事件', code='task_complete', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='131', name='电量不足任务取消', code='task_cancel_low_power', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='132', name='运动中任务取消', code='task_cancel_in_motion', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='133', name='充电状态', code='charge_status', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='134', name='烘干状态', code='drying_status', mode='ro', type='RAW', product_property=None, desc=None)])], devices=[HomeDataDevice(duid='REDACTED', name='Roborock S7', local_key='REDACTED', fv='02.16.12', product_id='REDACTED', attribute=None, active_time=1706257065, runtime_env=None, time_zone_id='Europe/Copenhagen', icon_url='', lon=None, lat=None, share=False, share_time=None, online=True, pv='1.0', room_id=None, tuya_uuid=None, tuya_migrated=False, extra='{}', sn='R14E5S14400582', feature_set='0', new_feature_set='0000000000002000', device_status={'121': 8, '122': 100, '123': 106, '124': 204, '125': 16, '126': 0, '127': 34, '120': 0}, silent_ota_switch=False)], received_devices=[], lon=None, lat=None, geo_name=None, rooms=[HomeDataRoom(id=16330435, name="Luca's room"), HomeDataRoom(id=16330431, name='Conservatory'), HomeDataRoom(id=16330430, name='Entrance'), HomeDataRoom(id=16330428, name='Bedroom'), HomeDataRoom(id=16330427, name='Dining room'), HomeDataRoom(id=16330426, name='Kitchen')])
2024-02-10 07:55:01.958 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:05.960 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:09.964 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:10.959 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:13.965 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:17.965 DEBUG (MainThread) [roborock.local_api] [Roborock S7] Connecting to 10.0.20.32
2024-02-10 07:55:17.968 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 16.011 seconds (success: False)
@adriaanh
Copy link

adriaanh commented Apr 3, 2024

I have the same issue and logs. I my logs, the IP address in HA (where it is trying to connect) is not corresponding with the IP address the Robotrock has in my router. Can you check if that is the same issue on your side?

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