I tried adding the repo to HACS but I get this:
<Integration Jezza34000/homeassistant_weback_component> Repository structure for main is not compliant
I have an ikohs Netbot S15 bot which I used to have integrated in HA
I tried adding the repo to HACS but I get this:
<Integration Jezza34000/homeassistant_weback_component> Repository structure for main is not compliant
I have an ikohs Netbot S15 bot which I used to have integrated in HA
Hi ! You canāt use it by HACS.
You have to dowload it dans manually installed it inside your custom_component folder, then configure your configuration.yaml and it will work
You are a geniusā¦ Ikohs Netbot S15 detected perfectly! (Pending verification that I can send on/off commands)
Thanks!!!
Tip of the day: If you still want to use weback app in parallel, I suggest creating separate account for integration where you can share your vacuum from main. That will eliminate possible syncronization issues between the two platforms. For example zone cleaning from app is always overtaken by smart clean in integration. Will investigate logs what information the integration gets when orders come from app
Yes itās true.
You canāt have 2 links opened at the same time. The last opened one is the is working one.
I made in my code a function to check if the HomeAssistant 's link with WeBackās server is still working and if not : It will reopend it (and in fact override the one from application)
Thank you for your tips i will test it
Weird issue hereā¦ donāt know if itās network related or something elseā¦
in HA, I see the entity for the vacuum and I see it go on and offline intermitently but constantlyā¦
Hi !
Yes itās weird.
After i know the are working to solve serverās problem. I sent a message to neatsvor and they know they are experiencing some problem (like HTTP 502 error code)
You can also set your log to debug to have a look to whatās happen :
logger:
default: error
logs:
custom_components.weback_vacuum: debug
Hi!
@Jezza34000 ,
I have been using @agustin-e integration, but most of the times my Abir X6 ended up disconnecting from HA, so I tried yours. Unfortunately, Iām having some issues setting up:
Logger: homeassistant.components.vacuum
Source: custom_components/homeassistant_weback_component-main/VacDevice.py:105
Integration: Vacuum (documentation, issues)
First occurred: 10:37:55 (2 occurrences)
Last logged: 10:37:55
Error adding entities for domain vacuum with platform weback_vacuum
Error while setting up weback_vacuum platform for vacuum
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
capabilities=entity.capability_attributes,
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 214, in capability_attributes
return {ATTR_FAN_SPEED_LIST: self.fan_speed_list}
File "/config/custom_components/homeassistant_weback_component-main/vacuum.py", line 171, in fan_speed_list
if self.device.vacuum_or_mop == 1:
File "/config/custom_components/homeassistant_weback_component-main/VacDevice.py", line 105, in vacuum_or_mop
if self.robot_status['fan_status'] == self.FAN_DISABLED and self.robot_status['water_level'] != self.MOP_DISABLED:
KeyError: 'fan_status
Donāt know if I messed up or if Itās something related to my vacuum itself.
Hi @DTHayakawa
It looks like your robot donāt give his fan_status.
Can you please set log into debug by adding this in your config file :
logger:
default: error
logs:
custom_components.weback_vacuum: debug
And after go to : Settings > Systems > Log
And send me in PM you full debug log.
I will fix this
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.diagnostics'
2022-10-28 11:28:30.338 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/recorder.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.recorder'
2022-10-28 11:28:30.351 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/system_health.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.system_health'
2022-10-28 11:28:30.365 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/logbook.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.logbook'
2022-10-28 11:28:30.377 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/group.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.group'
2022-10-28 11:28:30.390 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/media_source.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.media_source'
2022-10-28 11:28:30.433 ERROR (MainThread) [homeassistant.components.vacuum] Error adding entities for domain vacuum with platform weback_vacuum
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
capabilities=entity.capability_attributes,
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 214, in capability_attributes
return {ATTR_FAN_SPEED_LIST: self.fan_speed_list}
File "/config/custom_components/homeassistant_weback_component-main/vacuum.py", line 171, in fan_speed_list
if self.device.vacuum_or_mop == 1:
File "/config/custom_components/homeassistant_weback_component-main/VacDevice.py", line 105, in vacuum_or_mop
if self.robot_status['fan_status'] == self.FAN_DISABLED and self.robot_status['water_level'] != self.MOP_DISABLED:
KeyError: 'fan_status'
2022-10-28 11:28:30.487 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up weback_vacuum platform for vacuum
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
capabilities=entity.capability_attributes,
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 214, in capability_attributes
return {ATTR_FAN_SPEED_LIST: self.fan_speed_list}
File "/config/custom_components/homeassistant_weback_component-main/vacuum.py", line 171, in fan_speed_list
if self.device.vacuum_or_mop == 1:
File "/config/custom_components/homeassistant_weback_component-main/VacDevice.py", line 105, in vacuum_or_mop
if self.robot_status['fan_status'] == self.FAN_DISABLED and self.robot_status['water_level'] != self.MOP_DISABLED:
KeyError: 'fan_status'
2022-10-28 11:28:32.267 ERROR (Thread-2 (run_forever)) [websocket] error from callback <bound method WebackWssCtrl.on_message of <custom_components.homeassistant_weback_component-main.VacDevice.VacDevice object at 0x657fbbe0>>: 'working_status'
2022-10-28 11:29:06.302 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/significant_change.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.significant_change'
2022-10-28 11:29:33.764 ERROR (Thread-3 (run_forever)) [websocket] error from callback <bound method WebackWssCtrl.on_message of <custom_components.homeassistant_weback_component-main.VacDevice.VacDevice object at 0x657fbbe0>>: 'working_status'
2022-10-28 11:30:01.710 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/cast.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.cast'
2022-10-28 11:30:12.029 ERROR (Thread-2 (run_forever)) [websocket] Connection to remote host was lost. - goodbye
2022-10-28 11:30:42.445 ERROR (Thread-12 (run_forever)) [websocket] error from callback <bound method WebackWssCtrl.on_message of <custom_components.homeassistant_weback_component-main.VacDevice.VacDevice object at 0x657fbbe0>>: 'working_status'
2022-10-28 11:31:13.776 ERROR (Thread-3 (run_forever)) [websocket] Connection to remote host was lost. - goodbye
2022-10-28 11:31:23.019 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing weback_vacuum/hardware.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 722, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 739, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.homeassistant_weback_component-main.hardware'
@Jezza34000 Iām not really used to this forum, so I couldnāt PM. Thanks!
@DTHayakawa this log is not in debug modeā¦
Did you put the tree lines i gave you ? and restart you HA ?
I canāt do anything with this log
@Jezza34000 I did restart then, but only with a second restart that It showed up. the log had too many characters so I uploaded to Google docs. Also, I obscured some stuff like my url, email e token, hope you donāt mind. Thanks!
OK i push a version with a fix for you.
It looks like your robot dosenāt have a Fan parameters ?
I try to find you robot on Google āXS-X6ā but i canāt find it ? Do you have more information about ?
Yes. His integration dosenāt check anythings, my integration have more check and error control.
But when i see the robot answer iām pretty sure even it integration will not work at all
Take a look at what you robot anwser (status check) :
{'connected': 'true', 'upgrade_logic': '1.0', 'extend_function_flag': 1, 'robot_x': None, 'robot_y': None, 'point_num': None, 'clean_time': None, 'config_app': 'WeBack', 'firmware_version': '2.1.0.0420s', 'yugong_software_version': '2.1.0', 'device_2_app_proto_version': '1.2', 'device_2_app_proto_info': {'mapdata_src': 's3', 'mapdata_info': 'vs_yw_1.2', 'direction_ctl': 'user_topic', 'virtual_wall_ctl': 'array'}
VS my robot :
{'connected': 'true', 'working_status': 'ChargeDone', 'voice_switch': 'on', 'volume': 80, 'voice_pack': 'default', 'carpet_pressurization': False, 'undisturb_mode': 'on', 'fan_status': 'Quiet', 'water_level': 'None', 'error_info': 'NoError', 'yugong_debug_version': '0.3.3.1', 'yugong_software_version': '0.3.3', 'vendor_software_version': '2.2.3', 'vendor_firmware_version': '2.2.0', 'vendor_system_version': '2.0.1', 'vendor_vupdate_version': '2.1.0', 'current_status_percentage': 0, 'Voicebox_Source': 'null', 'battery_level': 100, 'continue_clean': False, 'offset_hours': 2, 'offset_minutes': 0, 'clean_area': 20.31999969482422, 'clean_time': 1303, 'save_map': 'off', 'upgrade_logic': '1.0', 'hardware_platform': '5002-1004', 'extend_function_flag': 3}, 'thing_name': 'neatsvor-x600-20-r0-x6-9e-h9-a1'}
Your robot dosenāt give working_status
, fan_status
, water_level
, and lot more ā¦
Maybe your robot is in a āspecialā state ? Try to use WeBack app and start a cleanā¦ And after this, reboot HA and give me the log line when you see this :
2022-10-29 11:41:49.143 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Msg received {'notify_info': ...
And if i still dosenāt work that mean there is an another way to ask your robot statusā¦ ?
Other things, how long have you robot ? If the answer is before November 2021.
Please remove your robot from app, delete your account, recreate account, re_add robot.
Cause since November 2021 WeBack have completly changed API and account created before this date use old server, account after this date use new serverā¦
Let me know if this solve problem ?
@Jezza34000 Oh, yesterday I updated your integration but it didnāt work.
Then, after reading your post today I started a clean, stopped it, rebooted HA and now it finally shows up!
I bought my robot this year, so I donāt think that the API update was the problem.
Anyway, Iāll keep testing this integration, thanks a lot!
edit: unfortunately, once I restared again, the integration failed setting up just like before.
Looks like your robot doesnāt report any status when idleā¦ Never saw that before !
edit : oh wait i notice something in your log 'is_admin': False,
This field should be to True
Are you using 2 or more account ? Or do you share you robot ?
@Jezza34000 yes, I was using a secondary account because this works better with @agustin-e integration. I also tried yours with my main account and it didnāt work. Really unfortunate.
OK that the problemā¦
Iāve try with my account, i got the same issue.
You must delete completely that secondary account and the sharing option.
Oh, undestood. Do you keep the app logged in on your phone and it works fine? Sorry, I didnāt read the thread quite well, just followed @kenno 's tip and it worked well with the other integration. I thought that a secondary account would not impact on it. Iāll try again soon. Thanks!