Closed LucasPMagno closed 3 years ago
@LucasPMagno thank you for the report! Would you be willing to join a Slack channel so we can iterate through tests more efficiently?
Sure! Send me an invite.
Just got back home from a trip, updated everything and I believe I have run into this same issue. After the update, webui/app/etc are stuck at the loading data screen, however the backend actually loads.
The only real error in the logs is:
Unable to serialize to JSON: Object of type VacuumSuction is not JSON serializable
In case you haven't figured out how to go back on a stable release, go in the docs folder, delete the wizeapi folder and reboot HA. then reinstall the plugin using the latest stable release and not any of the alpha versions.
Nice to see this moving along, great work! Just tried to test the newest alpha; upon restarting HA, my TPLink and ZHA entities all went unavailable. Didn't seem to add my Vacuum nor any Wyze items. Could still work within HA, but if I did a complete browser refresh CTRL + F5, then it get the same "Loading Data". Removed the wyzeapi folder and restarted.
I had the same issue. When using this version or the latest alpha I am unable to get HA to even start up.
Relaese v0.5.15-vacuum-alpha.9 worked, I was able to boot up, but now I get this error in my logs:
Logger: homeassistant
Source: custom_components/wyzeapi/vacuum.py:48
First occurred: 1:41:08 PM (1 occurrences)
Last logged: 1:41:08 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery.py", line 137, in discovery_platform_listener
await task
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 131, in component_platform_discovered
await self.async_setup_platform(platform, {}, info)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 220, in async_setup_platform
platform = await async_prepare_setup_platform(
File "/usr/src/homeassistant/homeassistant/setup.py", line 298, in async_prepare_setup_platform
platform = integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 499, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 504, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/wyzeapi/vacuum.py", line 47, in <module>
class HAWyzeVacuum(VacuumEntity):
File "/config/custom_components/wyzeapi/vacuum.py", line 48, in HAWyzeVacuum
_fan_speed_list = {VacuumSuction.QUIET[1]: VacuumSuction.QUIET,
TypeError: 'VacuumSuction' object is not subscriptable
Was able to get it to load and the entity for the vacuum shows up (just as vacuum.unameddevice unable to rename) but the commands seem to work; starting cleaning, stopping, returning home and suction power. No battery yet; the logs show it grabbing all the vacuums details; Name, IP, SSID, etc. Let me know anything particular that may help.
This is actively being worked on. I will be working on getting statuses going next!
I figured as much; just wanted to give feedback as I as I wasn't 100% sure what you'd were expecting should be there at this point and what isn't. Let me know if you need any other testing/info! Looking great so far!
Describe the bug After installing the alpha integration, home assistant will no longer start
To Reproduce Steps to reproduce the behavior: install alpha version of the integration from HACS, I think you have to have a wyze vacuum connected to the account for the error to appear.
Expected behavior Home assistant should start
System configuration System: hassio with supervisor on proxmox VM HA Version: 2021.2
WyzeApi Version: v0.5.15-vacuum-alpha
configuration.yaml The config isn't the problem
home-assistant.log
The error line: