SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
722 stars 112 forks source link

wyzeapi not found when trying to install the integration #323

Closed terrycarlin closed 2 years ago

terrycarlin commented 2 years ago

Describe the bug

After using HACS to install the new version of WyzeApi, restart HA, can't install the integration. Cant find Wyzeapi. To Reproduce 1) Steps to reproduce the behavior: 2) Use HACS to install WyzeApi 3) restart HA 4) log into HA 5) go to Configuration->Devices and Services->Integrations->Add Integrations 6) Search for wyzeapi 7) get error message: No integrations matched your search

Found that WyzeApi may be installed improperly in custom_components. Found that the WyzeApi directory only contained a WyzeApi directory. That directory contained all the code.

homeassistant@habeta:~/.homeassistant/custom_components/wyzeapi $ ls -l total 4 drwxr-xr-x 3 homeassistant homeassistant 4096 Jan 8 08:48 wyzeapi homeassistant@habeta:~/.homeassistant/custom_components/wyzeapi $ ls -l wyzeapi/ total 104 -rw-r--r-- 1 homeassistant homeassistant 4787 Jan 8 08:48 alarm_control_panel.py -rw-r--r-- 1 homeassistant homeassistant 6638 Jan 8 08:48 binary_sensor.py -rw-r--r-- 1 homeassistant homeassistant 10954 Jan 8 08:48 climate.py -rw-r--r-- 1 homeassistant homeassistant 4593 Jan 8 08:48 config_flow.py -rw-r--r-- 1 homeassistant homeassistant 417 Jan 8 08:48 const.py -rw-r--r-- 1 homeassistant homeassistant 5694 Jan 8 08:48 init.py -rw-r--r-- 1 homeassistant homeassistant 8250 Jan 8 08:48 light.py -rw-r--r-- 1 homeassistant homeassistant 5362 Jan 8 08:48 lock.py -rw-r--r-- 1 homeassistant homeassistant 360 Jan 8 08:48 manifest.json -rw-r--r-- 1 homeassistant homeassistant 6742 Jan 8 08:48 sensor.py -rw-r--r-- 1 homeassistant homeassistant 1820 Jan 8 08:48 strings.json -rw-r--r-- 1 homeassistant homeassistant 9384 Jan 8 08:48 switch.py -rw-r--r-- 1 homeassistant homeassistant 2001 Jan 8 08:48 token_manager.py drwxr-xr-x 2 homeassistant homeassistant 4096 Jan 8 08:48 translations

I used HACS to remove wyzeapi and reinstalled it again. Same result.

Expected behavior

WyzeApi integration is found and can install. I expected the ~/.homeassistant/custom_components/wyzeapi directory to contain the code not another wyzeapi directory

System configuration System: RPI Raspbian Bare Metal HA Version: v2021.12.8 WyzeApi Version: 0.1.4

home-assistant.log

<PUT YOUR LOG HERE>

Nothing in log about WyzeApi

2022-01-08 08:54:41 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration apple_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration mail_and_packages which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration honeywell which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tesla_custom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spacex which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-08 08:54:41 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration yahoofinance which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
waite19900 commented 2 years ago

Experiencing the same issue after updating to the newest HA version this AM.

MisterP58 commented 2 years ago

Also experiencing this issue after updating to the newest WyzeAPI via HACS this morning.

terrycarlin commented 2 years ago

HACS came out with another version this morning that fixed part of this issue. It no longer puts the wyzeapi files in a subfolder called wyzeapi. But still can't find wyzeapi in integrations after installing it with HACS.

sphinxlady commented 2 years ago

Think if you go into the integration ans tell it to re-download the issue gets resolved.

raoulteeuwen commented 2 years ago

I can't find Wyze anymore either (under Integrations) and a reload doesn't solve it for me.

sphinxlady commented 2 years ago

Odd it shows right up when i type search in the integration section. You may have to re-add the respiratory for it .

raoulteeuwen commented 2 years ago

Odd it shows right up when i type search in the integration section. You may have to re-add the respiratory for it .

Great it works for you :-). Just to be sure i tried your suggestion, throwing me a "Repository 'joshuamulliken/ha-wyzeapi' exists in the store.". While at it, i removed the integration in HACS again, added it, and went to the Configuration/Integration screen again, but still nothing shows when searching for Wyze

sphinxlady commented 2 years ago

What are you running home assistant on?

raoulteeuwen commented 2 years ago

What are you running home assistant on?

Home Assistant OS core-2021.12.8 on an RPi4 (has been running for quite some time, have been upgrading and updating every update that is available)

sphinxlady commented 2 years ago

Which may explain the difference as i transferred over to a rack mounted server last year.

Got backups from before the update?

terrycarlin commented 2 years ago

After the third update to HACS in the last couple of days, I can now configure WyzeApi. After installing the latest HACS update, I deleted the WyzeApi from HACS, then installed it again. I was then able to install and configure the WyzeApi using the configuration integrations process. All my devices showed back up.

jk111 commented 2 years ago

Tried removing and re-adding the repo to HACS multiple times, no luck here. Some of my bulbs won't show up anymore, and trying to control bulbs that do show up results in errors in the log. "2022-01-10 10:35:29 WARNING (MainThread) [wyzeapy.services.base_service] Failed to connect to bulb 7Cxxxxxxxxx"

raoulteeuwen commented 2 years ago

Which may explain the difference as i transferred over to a rack mounted server last year. Got backups from before the update?

Thank you for the help, did not have time to try/reply sooner. Just checked again, and now (have been rebooting and updating HA for other things in the meantime) the Wyze integration showed, so solved.

terrycarlin commented 2 years ago

With the latest HACS update, I was able to install WyzeApi successfully.