nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
149 stars 50 forks source link

Partially working after automatic update 5/4/2024 #97

Closed JazMTaz closed 2 months ago

JazMTaz commented 2 months ago

Devices can be turned on however the icon no longer recognizes that the devices are in the 'on' state and they cannot be turned off.

web250 commented 2 months ago

Confirming I also have this issue

MrJCleary commented 2 months ago

Me too.

GreggTom commented 2 months ago

Same problem

sbs0518 commented 2 months ago

Same here. Though it would seem that HA broke it not the add-in itself.

david-j-duran commented 2 months ago

Same. Also log now filling up with lots of errors in last day.

Logger: custom_components.cync_lights.cync_hub Source: custom_components/cync_lights/cync_hub.py:110 integration: Cync Lights (documentation) First occurred: May 5, 2024 at 6:25:58 PM (2725 occurrences) Last logged: 3:40:07 PM Connection to Cync server reset, restarting in 15 seconds

This error originated from a custom integration.

Logger: custom_components.cync_lights.cync_hub Source: custom_components/cync_lights/cync_hub.py:106 integration: Cync Lights (documentation) First occurred: May 5, 2024 at 6:25:58 PM (2726 occurrences) Last logged: 3:40:07 PM

RuntimeError: Detected that custom integration 'cync_lights' calls async_write_ha_state from a thread at custom_components/cync_lights/cync_hub.py, line 638: self._update_callback(). Please report it to the author of the 'cync_lights' custom integration. ShuttingDown:

web250 commented 2 months ago

There's a fix on #95 which involves editing 4 files.

sbs0518 commented 2 months ago

@web250, Not seeing the fix. just a pointer to #94. Admittedly I'm not a python guy so not entirely clear on the 4 files that need to be adjusted and what the adjustment is. Really wishing HA provided support for Cync.

mmstano commented 2 months ago

@nschimme made the fix but it appears that the main branch is no longer active. I just deleted the integration and the main branch HACS repository, added nschimme’s fork at https://github.com/nschimme/cync_lights as the repository. Reinstalled the integration and all is working good again.

JazMTaz commented 2 months ago

Same for me, I just removed the existing configuration and repository and added nschimme’s fork at https://github.com/nschimme/cync_lights as the repository and then reinstalled the integration and all is working good again.

sbs0518 commented 2 months ago

@mmstano, thx but i I am stuck on getting that repo to work. I've removed the devices, deleted the original integration and have tried to remove the Cync reference in the HACS integration so that I can reinstall from the updated repo but can't seem to get rid of it.

mmstano commented 2 months ago

@sbs0518 HACS can be weird sometimes when adding/removing repos. After you remove the repo line in the custom repo window, try restarting home assistant. Then add the new custom repo. You might need to refresh the browser to get it to show up. Then install it and restart home assistant again.

sbs0518 commented 2 months ago

@mmstano, thank you but I ended up bouncing HA more times that I can recall trying to get it installed. The only place it still exists in under Settings>Devices & Services>HACS>Services (1 of 12). Even after deleting the cync_lights folder that was under the custom_components folder. It's like there's a DB or config entry somewhere that I can't find. And when I attempt to add the new repo under HACS>3 dot menu>Custom repositories, it will add (initially) but once I restart HA, it's gone...

sbs0518 commented 2 months ago

Well, the good news is that i got it working using the files from the updated repo (thx for that). the bad news is it's a bit of a hacked reinstall. By that I mean (including details here in case someone else can benefit) that I simply downloaded the repo from the https://github.com/nschimme/cync_lights page, extracted them and the uploaded the cync_lights folder and files to the custom_components folder in HA and then re-added the devices.

It survived the restart and actually find (knock on wood) that the dashboard icons actually respond much quicker and accurately reflect the correct state of the devices. I have Cync switches (not lights) but up until now, I could click one of them in my dashboard and they would take a few seconds to respond or not respond at all, so win-win.

GreggTom commented 2 months ago

Working for me also. Thanks

On Tue, May 7, 2024 at 9:27 AM sbs0518 @.***> wrote:

Well, the good news is that i got it working using the files from the updated repo (thx for that). the bad news is it's a bit of a hacked reinstall. By that I mean (including details here in case someone else can benefit) that I simply downloaded the repo from the https://github.com/nschimme/cync_lights page, extracted them and the uploaded the cync_lights folder and files to the custom_components folder in HA and then re-added the devices.

It survived the restart and actually find (knock on wood) that the dashboard icons actually respond much quicker and accurately reflect the correct state of the devices. I have Cync switches (not lights) but up until now, I could click one of them in my dashboard and they would take a few seconds to respond or not respond at all, so win-win.

— Reply to this email directly, view it on GitHub https://github.com/nikshriv/cync_lights/issues/97#issuecomment-2098540485, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7MZNRZMAPJUTXCVML2B34TZBDQGBAVCNFSM6AAAAABHIJREEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJYGU2DANBYGU . You are receiving this because you commented.Message ID: @.***>

jkjunk42 commented 2 months ago

I had a rough time with this. Turns out the switches disconnected from the wifi. If you have problems make sure the switches work in the cync app.

RichardSchaper commented 1 month ago

I got the nschimme repo installed, and when I try to add devices I am getting an error saying "Invalid or unsupported Cync configuration, please ensure there is at least one WiFi connected Cync device in your Home(s)". However, I have a plug that is connected via wifi. When I go to logs I am getting:

This error originated from a custom integration.

Logger: custom_components.cync_lights.config_flow Source: custom_components/cync_lights/config_flow.py:105 integration: Cync Lights (documentation) First occurred: 12:54:21 AM (6 occurrences) Last logged: 1:12:26 AM

KeyError: ''