nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
176 stars 61 forks source link

Repository Installation #43

Open Beastie71 opened 1 year ago

Beastie71 commented 1 year ago

So I am pretty new to HomeAssistant but I've followed the instructions on installing the repo, but cannot find your integration after I've added the repository. I've tried restarting the VM, using a different browser after restart, and yet I cannot find the integration for configuration. I am using: Home Assistant 2023.2.1 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230202.0 - latest

The repository does show up in my list of repositories.

rawalter21 commented 1 year ago

Upvoting this as I am running into the same issue. The repository will not show up in my add-ons store for some reason even after doing everything noted.

bagstoper commented 1 year ago

I checked my log files and was getting this error. ERROR (SyncWorker_3) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/cync_lights/manifest.json: input length is 0: line 1 column 1 (char 0)

I installed a file editor add-on to HA and was able to view that all the files in /config/custom_components/cync_lights/ existed but were empty. I went back to HACS > integrations > cync lights. The three dots in the right will open an menu with a re-download option. Clicked that and rebooted and then cync lights showed up in the normal integrations location. Hope that helps but maybe my issue is different.

rawalter21 commented 1 year ago

@bagstoper, in my case, I can't even see the repository's add-on to install for some reason so I can't even get to the point of installing the integration. It just won't show up even after multiple resets and restarts of the VM.

bagstoper commented 1 year ago

Are you talking about step 1 or step 4 in the Installation section?

rawalter21 commented 1 year ago

Step 1

rawalter21 commented 1 year ago

Other add-ons work fine which is the strange part. I'm also not seeing anything in the logs to indicate what the problem might be

bagstoper commented 1 year ago

Do you have HACS installed? https://hacs.xyz/docs/setup/prerequisites

They install for that was a little odd and I had some trouble there. If it is installed was HACS linked to your github account?

rawalter21 commented 1 year ago

Geez, I figured it out. I was adding the repo in the wrong spot. Sorry for the confusion

bagstoper commented 1 year ago

No problem, it took me a bit to find where I was supposed to put the repo URL too.

@Beastie71 Are you getting errors in the log file?

Beastie71 commented 1 year ago

I'm not seeing anything in the log files, and not finding anything created on the filesystem. I'm even trying to find where it refers to the repo in a file, I am guessing its doing it in the .db file, because I am not finding anything in a yaml.

Beastie71 commented 1 year ago

Okay so with the information above, I did some playing around. I went through and used git to clone the repo for this repository directly. Then I setup the files in the path mentioned in one of the previous comments on this issue. Then I re-added the repository. Then I restarted the HA VM (I'm using the VM version). Then I was able to see the integration in the integrations section. I then went in and did a configure and was able to add my lights. But thats it, they don't show up anywhere to do any type of management. :/

bagstoper commented 1 year ago

Can you click on the entities associated with the integration and see the detail view? Do they show up as disabled. Mine were not disabled after being added but that might be worth checking.

Even after getting the lights and two plugs added in my system I can't control them. I can control the plugs as long as the app on my phone was opened recently. I can see the status of lights get updated as I turn them on and off in the app but HA can't actually control anything but the plugs.

I think it controlled the lights one time successfully but that could have been a fever dream as it was only once and I've not replicated it. I was to busy with something else to test at the time when it worked.

Beastie71 commented 1 year ago

Unfortunately nothing shows up in entities. I've tried removing the add-on, adding it back in as I did the first way selecting all the devices, and still nothing showing up.

ocaba002 commented 1 year ago

New to home assistant, I don't know where I should paste the repo URL. Thanks

Nessipud commented 1 year ago

Pretty new to Home Assistant here, so apologies if the answer to this is obvious. I have HACs installed and have been able to use additional integrations successfully. I'm having trouble installing the integration. I am able to add the repo to HA, and can then proceed to downloading the integration. I don't see an install button, and couldn't find one after multiple tries. After downloading (but not installing, the UI prompts to restart HA). After multiple tries, I still can't the install button. After restart, still can't find the CNYC integration in HACS, not under add integration. I've checked the /config/custom_components/cync_lights and the files are there, and there not empty. Any help would be appreciated!

Nessipud commented 1 year ago

Worked now. I don't know that I did anything different. Maybe I fat-fingered something or it was just a glitch. Anyway, now stuck on the 2FA issue

rscoops commented 11 months ago

I would love to buy you some coffees if you would please fix the Cync integration for Home Assistant. I can’t get past the two factor authentication. Is this normal ? My password has no special characters, only 12 long, letters, numbers and caps