nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
161 stars 53 forks source link

Bad redirect_uri #1

Closed Engmark32 closed 2 years ago

Engmark32 commented 2 years ago

When completing the Integration configuration within Home Assistant, you can get to the step that provides a link to acquire the Google Authentication Code. The below screenshot is the error reported from Google:

image
nikshriv commented 2 years ago

Unfortunately, Google recently changed their Oauth policy and are no longer supporting the method I use to login to assistant. I will work on it over the next couple of weeks, but should be fixable.

nikshriv commented 2 years ago

Latest update addresses this problem. Download the new version, download the client secret from "Web client" which can be found in your Google Cloud Platform console, and then install.

marc3k18 commented 2 years ago

I got this error after click autorise in Google. It come back to HA but does nothing, no error in the gui.

This error originated from a custom integration.

Logger: custom_components.cync_lights.config_flow Source: custom_components/cync_lights/config_flow.py:65 Integration: Cync Room Lights First occurred: 7:31:35 PM (1 occurrences) Last logged: 7:31:35 PM

Unexpected exception Traceback (most recent call last): File "/config/custom_components/cync_lights/config_flow.py", line 173, in async_step_client_secret self.auth_url = await get_google_auth_url(self.hass, self.google_hub, user_input, self.flow_id, redirect_uri) File "/config/custom_components/cync_lights/config_flow.py", line 65, in get_google_auth_url response = await hub.get_google_auth_url(hass, json.loads(user_input["client_secret"]), flow_id, redirect_uri) File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

nikshriv commented 2 years ago

Be sure to download the client secret from your “web client” profile that should have automatically been generated by Google. Finally, you need to edit the “web client” profile and add your externally available home assistant address with path /googleauth to the redirect uri section.

example: https://myserver.address.com/googleauth

let me know if that works for you

marc3k18 commented 2 years ago

Hello,

Yes that exactly what I did.

image

After, Im going back to the previous tab on the integration windows with this:

image

I've created a new authorization with web application. Download the file and past it when need it into the wizard.

image

I've also add the URI:

image

And I still have this error:

2022-06-20 19:30:35 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration cync_lights 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-06-20 19:31:35 ERROR (MainThread) [custom_components.cync_lights.config_flow] Unexpected exception File "/config/custom_components/cync_lights/config_flow.py", line 173, in async_step_client_secret File "/config/custom_components/cync_lights/config_flow.py", line 65, in get_google_auth_url

Thank you for your help!

Marc

On Mon, Jun 20, 2022 at 7:56 PM nikshriv @.***> wrote:

Be sure to download the client secret from your “web client” profile that should have automatically been generated by Google. Finally, you need to edit the “web client” profile and add your externally available home assistant address with path /googleauth to the redirect uri section.

example: https://myserver.address.com/googleauth

let me know if that works for you

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

marc3k18 commented 2 years ago

I restart HA and try evething again. I'm comming back on a black box with the word error on it.

There is the HA log:

This error originated from a custom integration.

Logger: aiohttp.server Source: custom_components/cync_lights/get_user_data.py:65 Integration: Cync Room Lights First occurred: 8:41:17 PM (1 occurrences) Last logged: 8:41:17 PM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 220, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 196, in get return await super().get(request, flow_id) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 95, in get result = await self._flow_mgr.async_configure(flow_id) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/cync_lights/config_flow.py", line 211, in async_step_finish_setup self.data['data']['cync_room_data'] = await self.cync_hub.get_cync_config() File "/config/custom_components/cync_lights/get_user_data.py", line 65, in get_cync_config switches[bulb['deviceID'] % 1000] = {} IndexError: list assignment index out of range

nikshriv commented 2 years ago

Are you using Cync bulbs or switches? I only use Cync dimmer switches, so I have only been able to test this integration with switches. It is possible that there may be major differences in the way the server builds its configuration for switches versus individual bulbs.

marc3k18 commented 2 years ago

I have both. Dimmer and Switch.

Le lun. 20 juin 2022, 8 h 51 p.m., nikshriv @.***> a écrit :

Are you using Cync bulbs or switches? I only use Cync dimmer switches, so I have only been able to test this integration with switches. It is possible that there may be major differences in the way the server builds its configuration for switches versus individual bulbs.

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

nikshriv commented 2 years ago

Try running the python code at https://github.com/nikshriv/cync_data and then post the cbyge_rooms.json that is generated. That will give me a glimpse into the differences between switches and bulbs in their data structure.

marc3k18 commented 2 years ago

Hello,

I try to SSH into HA and download it but could find any way to run the script.

Can you tell me exactly how to run it ?

Thanks,

Marc

On Mon, Jun 20, 2022 at 9:25 PM nikshriv @.***> wrote:

Try running the python code at https://github.com/nikshriv/cync_data and then post the cbyge_rooms.json that is generated. That will give me a glimpse into the differences between switches and bulbs in their data structure.

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

nikshriv commented 2 years ago

You can run this program on any computer that has python installed. Download the file from github to your computer, then run:

python cync_data.py

marc3k18 commented 2 years ago

I'm looking to install python.. -bash: python: command no found python cync_data.py

Marc-André Ouellette @.***

On Mon, Jun 20, 2022 at 9:37 PM nikshriv @.***> wrote:

You can run this program on any computer that has python installed. Download the file from github to your computer, then run:

python cync_data.py

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

marc3k18 commented 2 years ago

image

nikshriv commented 2 years ago

try:

pip install aiohttp

you may need to repeat the process with other dependencies

marc3k18 commented 2 years ago

{ "data": [ { "bulbsArray": [ { "ambientLightSensorSensitivity": 5, "occupancyDeactivationPeriod": 10, "motionSensorDelayTime": 10, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Cuisine Lavabo", "motionSensorEnabled": true, "loadSelection": 0, "mac": "78:6D:EB:30:F5:D6", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 0, "occupancyEnable": "true", "deviceType": 55, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 1562922939, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 10, "allowOTAUpdates": "false", "deviceID": 565559406004, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 0, "defaultBrightness": 128, "wifiMac": "78:6D:EB:31:07:CC", "lightRingMode": 0, "ambientLightSensitivity": 5, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 10 }, { "ambientLightSensorSensitivity": 10, "occupancyDeactivationPeriod": 30, "motionSensorDelayTime": 300, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Corridor", "motionSensorEnabled": false, "loadSelection": 0, "mac": "78:6D:EB:31:5E:35", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 1, "occupancyEnable": "false", "deviceType": 56, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 1121695587, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 30, "allowOTAUpdates": "false", "deviceID": 565559406009, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 1, "defaultBrightness": 128, "wifiMac": "78:6D:EB:31:61:1B", "lightRingMode": 0, "ambientLightSensitivity": 10, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 300 }, { "ambientLightSensorSensitivity": 10, "occupancyDeactivationPeriod": 30, "motionSensorDelayTime": 300, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Chambre Principale", "motionSensorEnabled": true, "loadSelection": 0, "mac": "A4:C1:38:DC:9C:BC", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 1, "occupancyEnable": "true", "deviceType": 55, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 1500132111, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 30, "allowOTAUpdates": "false", "deviceID": 565559406003, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 1, "defaultBrightness": 128, "wifiMac": "88:D0:39:82:D6:C3", "lightRingMode": 1, "ambientLightSensitivity": 10, "lightRingIndicator": 1, "nightLightColor": 0, "occupancyTimeoutPeriod": 300 }, { "ambientLightSensorSensitivity": 5, "occupancyDeactivationPeriod": 10, "motionSensorDelayTime": 10, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Cuisine Table", "motionSensorEnabled": true, "loadSelection": 0, "mac": "A4:C1:38:DC:9E:92", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 0, "occupancyEnable": "true", "deviceType": 55, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 1500139959, "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 10, "allowOTAUpdates": "false", "deviceID": 565559406001, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 0, "defaultBrightness": 128, "wifiMac": "88:D0:39:82:D8:9E", "lightRingMode": 0, "ambientLightSensitivity": 5, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 10 }, { "ambientLightSensorSensitivity": 10, "occupancyDeactivationPeriod": 30, "motionSensorDelayTime": 300, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Gar\u00e7ons", "motionSensorEnabled": true, "loadSelection": 0, "mac": "78:6D:EB:33:56:3B", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 1, "occupancyEnable": "true", "deviceType": 55, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 282104283, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 30, "allowOTAUpdates": "false", "deviceID": 565559406005, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 1, "defaultBrightness": 128, "wifiMac": "78:6D:EB:33:5E:31", "lightRingMode": 0, "ambientLightSensitivity": 10, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 300 }, { "ambientLightSensorSensitivity": 10, "occupancyDeactivationPeriod": 30, "motionSensorDelayTime": 300, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Rosalie", "motionSensorEnabled": true, "loadSelection": 0, "mac": "78:6D:EB:33:54:FD", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 1, "occupancyEnable": "true", "deviceType": 55, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 282101276, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 30, "allowOTAUpdates": "false", "deviceID": 565559406006, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 1, "defaultBrightness": 128, "wifiMac": "78:6D:EB:33:5C:DB", "lightRingMode": 0, "ambientLightSensitivity": 10, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 300 }, { "ambientLightSensorSensitivity": 5, "occupancyDeactivationPeriod": 10, "motionSensorDelayTime": 10, "nightLightBrightness": 100, "lightRingBrightness": 100, "displayName": "Lumi\u00e8re Stationnement", "motionSensorEnabled": true, "loadSelection": 4, "mac": "A4:C1:38:DC:3E:64", "lightRingColor": 0, "ambientLightEnable": "false", "firmwareVersion": "1.5.590", "occupancySensitivity": 0, "occupancyEnable": "true", "deviceType": 57, "wifiDisconnectedIndicator": true, "fadeOff": 0, "wifiDisconnectIndicatorEnable": "true", "switchID": 1281666943, "wifiSsid": "m3k", "ambientLightSensorEnabled": false, "motionSensorDeactivationPeriod": 10, "allowOTAUpdates": "false", "deviceID": 565559406002, "fadeOn": 0, "otaType": 1, "motionSensorSensitivity": 0, "defaultBrightness": 128, "wifiMac": "88:D0:39:82:74:5E", "lightRingMode": 0, "ambientLightSensitivity": 5, "lightRingIndicator": 0, "nightLightColor": 0, "occupancyTimeoutPeriod": 10 } ], "switchIsAutoUpdate": false, "admin": { "emailAddress": "marc3k@gmail.com", "lastUseDate": "2021-03-08T02:47:37Z", "userID": 0, "username": "", "createDate": "2021-03-08T02:47:37Z" }, "groupsArray": [ { "sensorSchedules": [], "displayName": "Chambre Principale", "groupID": 32768, "showOnHome": false, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 3 ] }, { "sensorSchedules": [ { "brightness": 100, "cct": 14, "displayName": "Morning", "isEnabled": true, "startTime": "2021-03-09 05:00", "id": 0, "endTime": "2021-03-09 08:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Daytime", "isEnabled": true, "startTime": "2021-03-09 09:00", "id": 1, "endTime": "2021-03-09 16:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Evening", "isEnabled": true, "startTime": "2021-03-09 17:00", "id": 2, "endTime": "2021-03-09 21:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Sleep", "isEnabled": true, "startTime": "2021-03-09 22:00", "id": 3, "endTime": "2021-03-09 04:59", "simpleMode": true } ], "displayName": "Stationnement", "groupID": 32769, "showOnHome": true, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 2 ] }, { "sensorSchedules": [ { "brightness": 100, "cct": 14, "displayName": "Morning", "isEnabled": true, "startTime": "2021-03-09 05:00", "id": 0, "endTime": "2021-03-09 08:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Daytime", "isEnabled": true, "startTime": "2021-03-09 09:00", "id": 1, "endTime": "2021-03-09 16:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Evening", "isEnabled": true, "startTime": "2021-03-09 17:00", "id": 2, "endTime": "2021-03-09 21:59", "simpleMode": true }, { "brightness": 100, "cct": 14, "displayName": "Sleep", "isEnabled": true, "startTime": "2021-03-09 22:00", "id": 3, "endTime": "2021-03-09 04:59", "simpleMode": true } ], "displayName": "Cuisine", "groupID": 32772, "showOnHome": true, "isSubgroup": false, "subgroupIDArray": [ 32770 ], "simpleMode": true, "deviceIDArray": [] }, { "sensorSchedules": [], "displayName": "Chambre Rosalie", "groupID": 32773, "showOnHome": false, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 6 ] }, { "sensorSchedules": [ { "brightness": 100, "cct": 20, "displayName": "Morning", "isEnabled": true, "startTime": "2022-01-15 05:00", "id": 0, "endTime": "2022-01-15 08:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Daytime", "isEnabled": true, "startTime": "2022-01-15 09:00", "id": 1, "endTime": "2022-01-15 16:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Evening", "isEnabled": true, "startTime": "2022-01-15 17:00", "id": 2, "endTime": "2022-01-15 21:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Sleep", "isEnabled": true, "startTime": "2022-01-15 22:00", "id": 3, "endTime": "2022-01-15 04:59", "simpleMode": true } ], "displayName": "Chambre Gar\u00e7ons", "groupID": 32771, "showOnHome": false, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 5 ] }, { "sensorSchedules": [ { "brightness": 100, "cct": 20, "displayName": "Morning", "isEnabled": true, "startTime": "2022-01-15 05:00", "id": 0, "endTime": "2022-01-15 08:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Daytime", "isEnabled": true, "startTime": "2022-01-15 09:00", "id": 1, "endTime": "2022-01-15 16:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Evening", "isEnabled": true, "startTime": "2022-01-15 17:00", "id": 2, "endTime": "2022-01-15 21:59", "simpleMode": true }, { "brightness": 100, "cct": 20, "displayName": "Sleep", "isEnabled": true, "startTime": "2022-01-15 22:00", "id": 3, "endTime": "2022-01-15 04:59", "simpleMode": true } ], "displayName": "Corridor", "groupID": 32776, "showOnHome": false, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 9 ] }, { "sensorSchedules": [], "displayName": "Ventilateur Salle De Bain", "groupID": 32775, "showOnHome": false, "isSubgroup": false, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [] }, { "sensorSchedules": [], "displayName": "Grp Cuisine", "groupID": 32770, "showOnHome": false, "isSubgroup": true, "subgroupIDArray": [], "simpleMode": true, "deviceIDArray": [ 4, 1 ] } ], "version": "NA", "standaloneDevicesArray": [], "sceneArray": [], "schedules": [], "deviceIdRecord": 0 } ] }

nikshriv commented 2 years ago

I deleted your last post because it contained your auth code, etc

nikshriv commented 2 years ago

Made a change to fix that error. It should work now. It looks like you have some bulbs missing from your list of devices. Did you remove some bulbs?

marc3k18 commented 2 years ago

Okay I got not everything setup!

Other problem for me. The state of the light switch is syncing with HA (On/Off/Brightness) when I control them by the physical switch or the cync app. From HA, nothing. No on/off/ Brightness is working.

Le mar. 21 juin 2022, 6 h 36 p.m., Marc-Andre Ouellette @.***> a écrit :

There is 2 lights (Chambre de bain) that are in the config file but not anymore in my app.

Le mar. 21 juin 2022, 6 h 34 p.m., nikshriv @.***> a écrit :

Made a change to fix that error. It should work now. It looks like you have some bulbs missing from your list of devices. Did you remove some bulbs?

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

nikshriv commented 2 years ago

Can you control the switches from the Google Home app?

marc3k18 commented 2 years ago

Yes

Le mar. 21 juin 2022, 7 h 00 p.m., nikshriv @.***> a écrit :

Can you control the switches from the Google Home app?

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

nikshriv commented 2 years ago

Post the log from the Cync addon. I'll take a look

nikshriv commented 2 years ago

Post the log from the Cync addon. I'll take a look

marc3k18 commented 2 years ago

In enable Google Assistant API and everything is now working. Thanks for your help!

Le mar. 21 juin 2022, 7 h 08 p.m., nikshriv @.***> a écrit :

Post the log from the Cync addon. I'll take a look

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

marc3k18 commented 2 years ago

I talk to fast...

It's not working. There is the log.

21:10:03 1|index | _descriptor.EnumValueDescriptor( 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:03 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:03 1|index | Started Google Assistant, awaiting commands... 21:10:03 1|index | Traceback (most recent call last): 21:10:03 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:03 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:03 1|index | _descriptor.EnumValueDescriptor( 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:03 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:03 1|index | Started Google Assistant, awaiting commands... 21:10:03 1|index | Traceback (most recent call last): 21:10:03 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:03 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:03 1|index | _descriptor.EnumValueDescriptor( 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:03 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:03 1|index | Started Google Assistant, awaiting commands... 21:10:03 1|index | Traceback (most recent call last): 21:10:03 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:03 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:03 1|index | _descriptor.EnumValueDescriptor( 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:03 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:03 1|index | Started Google Assistant, awaiting commands... 21:10:03 1|index | Traceback (most recent call last): 21:10:03 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:03 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:03 1|index | _descriptor.EnumValueDescriptor( 21:10:03 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:03 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:03 1|index | Started Google Assistant, awaiting commands... 21:10:04 1|index | Traceback (most recent call last): 21:10:04 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:04 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:04 1|index | _descriptor.EnumValueDescriptor( 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:04 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:04 1|index | Started Google Assistant, awaiting commands... 21:10:04 1|index | Traceback (most recent call last): 21:10:04 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:04 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:04 1|index | _descriptor.EnumValueDescriptor( 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:04 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:04 1|index | Started Google Assistant, awaiting commands... 21:10:04 1|index | Traceback (most recent call last): 21:10:04 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:04 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:04 1|index | _descriptor.EnumValueDescriptor( 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:04 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:04 1|index | Started Google Assistant, awaiting commands... 21:10:04 1|index | Traceback (most recent call last): 21:10:04 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:04 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:04 1|index | _descriptor.EnumValueDescriptor( 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:04 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:04 1|index | Started Google Assistant, awaiting commands... 21:10:04 1|index | Traceback (most recent call last): 21:10:04 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:04 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:04 1|index | _descriptor.EnumValueDescriptor( 21:10:04 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:04 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:04 1|index | Started Google Assistant, awaiting commands... 21:10:05 1|index | Traceback (most recent call last): 21:10:05 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:05 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:05 1|index | _descriptor.EnumValueDescriptor( 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:05 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:05 1|index | Started Google Assistant, awaiting commands... 21:10:05 1|index | Traceback (most recent call last): 21:10:05 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:05 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:05 1|index | _descriptor.EnumValueDescriptor( 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:05 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:05 1|index | Started Google Assistant, awaiting commands... 21:10:05 1|index | Traceback (most recent call last): 21:10:05 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 21:10:05 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 21:10:05 1|index | _descriptor.EnumValueDescriptor( 21:10:05 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 21:10:05 1|index | assistant_text_query.py exited, restarting Google Assistant 21:10:05 1|index | Started Google Assistant, awaiting commands...

Le mar. 21 juin 2022, 7 h 14 p.m., Marc-Andre Ouellette @.***> a écrit :

In enable Google Assistant API and everything is now working. Thanks for your help!

Le mar. 21 juin 2022, 7 h 08 p.m., nikshriv @.***> a écrit :

Post the log from the Cync addon. I'll take a look

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

nikshriv commented 2 years ago

I think since you authorized the assistant api after installing the integration, you will need to delete the integration and go through the setup again.

marc3k18 commented 2 years ago

I try this..

Delete addon Delete intégration Restart HA Delete google cloud auth user Recreate and did the setup again.

I have the same error.

Le mar. 21 juin 2022, 9 h 59 p.m., nikshriv @.***> a écrit :

I think since you authorized the assistant api after installing the integration, you will need to delete the integration and go through the setup again.

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

nikshriv commented 2 years ago

Did the integration and addon ever work for you or were they malfunctioning since you installed them? This looks like it could be a problem with the Google assistant sdk. I'll have to do some digging

marc3k18 commented 2 years ago

I make a dump of the log before uninstall the addon. Since I enable the google api, i have this error. Even after a full reinstall.

Thank you very much for your help and time by the way!

Le mer. 22 juin 2022, 12 h 56 a.m., nikshriv @.***> a écrit :

Did the integration and addon ever work for you or were they malfunctioning since you installed them? This looks like it could be a problem with the Google assistant sdk. I'll have to do some digging

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

nikshriv commented 2 years ago

I think the problem probably has to do with your Google actions profile and credentials. Probably got messed up because you didn't initially have the assistant api activated.

I would try deleting the whole Google actions project and start with a new one. Don't forget to activate the api and add your redirect uri with path /googleauth.

marc3k18 commented 2 years ago

I try again. Delete everything, redo the configuration of the Cloud Console with new project, add the API. Remove addon and integration. Reboot HA. Reinstall everything.

Got the same error message:

11:59:47 1|index | Started Google Assistant, awaiting commands... 11:59:47 1|index | Traceback (most recent call last): 11:59:47 1|index | File "/hassio-addons/cync_lights_addon/./assistant_text_query.py", line 4, in 11:59:47 1|index | from google.assistant.embedded.v1alpha2 import (embedded_assistant_pb2,embedded_assistant_pb2_grpc) 11:59:47 1|index | File "/usr/local/lib/python3.9/dist-packages/google/assistant/embedded/v1alpha2/embedded_assistant_pb2.py", line 36, in 11:59:47 1|index | _descriptor.EnumValueDescriptor( 11:59:47 1|index | File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new 11:59:47 1|index | assistant_text_query.py exited, restarting Google Assistant

On Wed, Jun 22, 2022 at 3:01 AM nikshriv @.***> wrote:

I think the problem probably has to do with your Google actions profile and credentials. Probably got messed up because you didn't initially have the assistant api activated.

I would try deleting the whole Google actions project and start with a new one. Don't forget to activate the api and add your redirect uri with path /googleauth.

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

nikshriv commented 2 years ago

I tried reinstalling the addon on my own HA server and got the same error as you. It is due to one of the dependencies recently being upgraded to a new version. I downgraded one of the dependencies in the addon Dockerfile and it works for me now. Try uninstalling the addon (not the integration) and redownloading it now. It should work for you now.

marc3k18 commented 2 years ago

That fix the error thanks!

I got some new problem ..

  1. Chambre Principale is not working at all.
  2. Chambre Garçons is only working with on/off. No brigtness.
  3. In my kitchen, i have a group of switch. In the Cync app, i see them individualy but both switch sync the state. In Google Home, when I open one switch, the other one open automaticly. In the HA, I only see Grp_Cuisine and nothing is working. I dont see the light invidualy in the HA.

And for your information, all the switch (no dimmer) are working. Only one thing is that the Brightness option is there but I dont think its really matters.

Thank you again.

Le mer. 22 juin 2022, 3 h 50 p.m., nikshriv @.***> a écrit :

I tried reinstalling the addon on my own HA server and got the same error as you. It is due to one of the dependencies recently being upgraded to a new version. I downgraded one of the dependencies in the addon Dockerfile and it works for me now. Try uninstalling the addon (not the integration) and redownloading it now. It should work for you now.

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

marc3k18 commented 2 years ago

I saw this in the logs when I toggle the group but nothing happens

17:36:38 1|index | Assistant Received Request: Set Lumière Cuisine Lavabo and Lumière Cuisine Table to 100%

Le mer. 22 juin 2022, 5 h 35 p.m., Marc-Andre Ouellette @.***> a écrit :

That fix the error thanks!

I got some new problem ..

  1. Chambre Principale is not working at all.
  2. Chambre Garçons is only working with on/off. No brigtness.
  3. In my kitchen, i have a group of switch. In the Cync app, i see them individualy but both switch sync the state. In Google Home, when I open one switch, the other one open automaticly. In the HA, I only see Grp_Cuisine and nothing is working. I dont see the light invidualy in the HA.

And for your information, all the switch (no dimmer) are working. Only one thing is that the Brightness option is there but I dont think its really matters.

Thank you again.

Le mer. 22 juin 2022, 3 h 50 p.m., nikshriv @.***> a écrit :

I tried reinstalling the addon on my own HA server and got the same error as you. It is due to one of the dependencies recently being upgraded to a new version. I downgraded one of the dependencies in the addon Dockerfile and it works for me now. Try uninstalling the addon (not the integration) and redownloading it now. It should work for you now.

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

nikshriv commented 2 years ago

My guess is that Google is having a hard time recognizing the special characters ç and è. The google assistant part of this integration uses the name of your individual switches to make a request to google to turn them on or off. The name in Google Home needs to be identical to the name in the Cync app. Check and compare these first. If they are identical, it may just be that Google is having a hard time with French. You might have to rename your switches and rooms to something that makes google happier.

marc3k18 commented 2 years ago

From what I see your integration is not controlling the light device it self but the Room.

If the room and the switch have the same name, it does not work. If the room has 2 lights inside, it does not work.

For the rest, everything looks good!

On Wed, Jun 22, 2022 at 7:54 PM nikshriv @.***> wrote:

My guess is that Google is having a hard time recognizing the special characters ç and è. The google assistant part of this integration uses the name of your individual switches to make a request to google to turn them on or off. The name in Google Home needs to be identical to the name in the Cync app. Check and compare these first. If they are identical, it may just be that Google is having a hard time with French. You might have to rename your switches and rooms to something that makes google happier.

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

nikshriv commented 2 years ago

I am working on a complete revamp of this integration that will directly control the switches, but I am having some trouble understanding the device types and capabilities. What device types do you have? I noticed from that recent data dump that it looks like you have one motion sensing switch and the rest appear to be toggle switches. Is that correct? Would you mind posting the types of switches you have with the device name?

giacinto41 commented 2 years ago

Hi, I tried installing your integration and I was just wondering, for the redirect URI do I need to put my Nabu Casa url? That is the only URL that is accessible eternally. If so then that part is correct.

When I try to add the integration I get all the way to the end, when it asks me for the Client Secret but when I paste and submit the window disappears but the integration is not added. I do not get an error message. Thank you in advance for your help. FYI I only have three of the Motion Sensing Dimmer Switches (No Neutrel Wire).

Forgot to mention I am running HA on the Blue Hardware and it is fully updated.

giacinto41 commented 2 years ago

Ah well, just noticed that I didn't publish the google app. I just did that, tried to add the integration again and finally got an error window popup in HA when I got to the end of the google authorization.

nikshriv commented 2 years ago

Ah well, just noticed that I didn't publish the google app. I just did that, tried to add the integration again and finally got an error window popup in HA when I got to the end of the google authorization.

I have a new integration almost ready to upload that works directly with these switches without the need for Google Home and my Cync addon. It is much faster and more reliable. I will be finishing it in the next few days if you can wait.

giacinto41 commented 2 years ago

Oh perfect, cant wait to try it out. Ive been trying to get these Cync lights to work with HA for like 6 months, another few days wont be that bad lol

nikshriv commented 2 years ago

Oh perfect, cant wait to try it out. Ive been trying to get these Cync lights to work with HA for like 6 months, another few days wont be that bad lol

The new integration is uploaded and ready to try out. You'll have to uninstall the old one and redownload. The integration is capable of controlling wifi and bluetooth only devices as long as you have at least one wifi device in your system. Try it out.

marc3k18 commented 2 years ago

Logger: custom_components.cync_lights.config_flow Source: custom_components/cync_lights/config_flow.py:224 Integration: Cync Lights (documentation https://github.com/nikshriv/cync_lights) First occurred: 8:07:53 AM (1 occurrences) Last logged: 8:07:53 AM Unexpected exception

Traceback (most recent call last): File "/config/custom_components/cync_lights/config_flow.py", line 104, in async_step_two_factor_code info["data"]["cync_config"] = await self.cync_hub.get_cync_config() File "/config/custom_components/cync_lights/config_flow.py", line 224, in get_cync_config home_devices[home_id][current_index] = device_id IndexError: list assignment index out of range

On Tue, Aug 30, 2022 at 8:09 AM Marc-Andre Ouellette @.***> wrote:

Good morning,

I'm having an error when trying to log into the integration: Unknown error occurred while retrieving Cync configuration.

On Tue, Aug 30, 2022 at 1:18 AM nikshriv @.***> wrote:

Oh perfect, cant wait to try it out. Ive been trying to get these Cync lights to work with HA for like 6 months, another few days wont be that bad lol

The new integration is uploaded and ready to try out. You'll have to uninstall the old one and redownload. The integration is capable of controlling wifi and bluetooth only devices as long as you have at least one wifi device in your system. Try it out.

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

giacinto41 commented 2 years ago

Hey, just tried out the new Integration and it seems to work. I will do some more testing and let you know if I run into any problems. I only have one question, is it normal that only entities were added and not devices as well?

Thank you

nikshriv commented 2 years ago

Hey, just tried out the new Integration and it seems to work. I will do some more testing and let you know if I run into any problems. I only have one question, is it normal that only entities were added and not devices as well?

Thank you

I did not include devices as it doesn't really add to the functionality. It would not be difficult to add if it's useful.

giacinto41 commented 2 years ago

As far as automations and the dashboard goes, you are correct you can use/add entities just as easy but I find having the entities grouped at the device level helps when you have a lot of entities. If it is not difficult to include I am sure it would be beneficial to a majority of users. Thank you in advance!! :-)

nikshriv commented 2 years ago

Logger: custom_components.cync_lights.config_flow Source: custom_components/cync_lights/config_flow.py:224 Integration: Cync Lights (documentation https://github.com/nikshriv/cync_lights) First occurred: 8:07:53 AM (1 occurrences) Last logged: 8:07:53 AM Unexpected exception Traceback (most recent call last): File "/config/custom_components/cync_lights/config_flow.py", line 104, in async_step_two_factor_code info["data"]["cync_config"] = await self.cync_hub.get_cync_config() File "/config/custom_components/cync_lights/config_flow.py", line 224, in get_cync_config home_devices[home_id][current_index] = device_id IndexError: list assignment index out of range On Tue, Aug 30, 2022 at 8:09 AM Marc-Andre Ouellette @.> wrote: Good morning, I'm having an error when trying to log into the integration: Unknown error occurred while retrieving Cync configuration. On Tue, Aug 30, 2022 at 1:18 AM nikshriv @.> wrote: > Oh perfect, cant wait to try it out. Ive been trying to get these Cync > lights to work with HA for like 6 months, another few days wont be that bad > lol > > The new integration is uploaded and ready to try out. You'll have to > uninstall the old one and redownload. The integration is capable of > controlling wifi and bluetooth only devices as long as you have at least > one wifi device in your system. Try it out. > > — > Reply to this email directly, view it on GitHub > <#1 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AXKJDQEXY24WJ6DL7DAS7OTV3WKTZANCNFSM5VDDGKTQ > . > You are receiving this because you commented.Message ID: > @.***> >

Just made a fix for this problem. I looked through the device info you posted a couple of months ago and it looks like your setup is missing some devices which is what generated the error. Should work now.

marc3k18 commented 1 year ago

There is 2 lights (Chambre de bain) that are in the config file but not anymore in my app.

Le mar. 21 juin 2022, 6 h 34 p.m., nikshriv @.***> a écrit :

Made a change to fix that error. It should work now. It looks like you have some bulbs missing from your list of devices. Did you remove some bulbs?

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

marc3k18 commented 1 year ago

Good morning,

I'm having an error when trying to log into the integration: Unknown error occurred while retrieving Cync configuration.

On Tue, Aug 30, 2022 at 1:18 AM nikshriv @.***> wrote:

Oh perfect, cant wait to try it out. Ive been trying to get these Cync lights to work with HA for like 6 months, another few days wont be that bad lol

The new integration is uploaded and ready to try out. You'll have to uninstall the old one and redownload. The integration is capable of controlling wifi and bluetooth only devices as long as you have at least one wifi device in your system. Try it out.

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

marc3k18 commented 1 year ago

This one was not working properly so I return it.

I only have dimmer, switch and group of light.

Le sam. 13 août 2022, 12 h 05 a.m., nikshriv @.***> a écrit :

Reopened #1 https://github.com/nikshriv/cync_lights/issues/1.

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

marc3k18 commented 1 year ago

I just gave a try, and it's now working.

Also, now I can see the group of devices in my kitchen.

Small problem, the on/off is very slow (about 60 secs) but the dimmer work instantly!

On Tue, Aug 30, 2022 at 12:30 PM nikshriv @.***> wrote:

Logger: custom_components.cync_lights.config_flow Source: custom_components/cync_lights/config_flow.py:224 Integration: Cync Lights (documentation https://github.com/nikshriv/cync_lights) First occurred: 8:07:53 AM (1 occurrences) Last logged: 8:07:53 AM Unexpected exception Traceback (most recent call last): File "/config/custom_components/cync_lights/config_flow.py", line 104, in async_step_two_factor_code info["data"]["cync_config"] = await self.cync_hub.get_cync_config() File "/config/custom_components/cync_lights/config_flow.py", line 224, in get_cync_config home_devices[home_id][current_index] = device_id IndexError: list assignment index out of range On Tue, Aug 30, 2022 at 8:09 AM Marc-Andre Ouellette @.

> wrote: … <#m6979967802760187565> Good morning, I'm having an error when trying to log into the integration: Unknown error occurred while retrieving Cync configuration. On Tue, Aug 30, 2022 at 1:18 AM nikshriv @.> wrote: > Oh perfect, cant wait to try it out. Ive been trying to get these Cync > lights to work with HA for like 6 months, another few days wont be that bad > lol > > The new integration is uploaded and ready to try out. You'll have to > uninstall the old one and redownload. The integration is capable of > controlling wifi and bluetooth only devices as long as you have at least > one wifi device in your system. Try it out. > > — > Reply to this email directly, view it on GitHub > <#1 (comment) https://github.com/nikshriv/cync_lights/issues/1#issuecomment-1231153405>,

or unsubscribe > https://github.com/notifications/unsubscribe-auth/AXKJDQEXY24WJ6DL7DAS7OTV3WKTZANCNFSM5VDDGKTQ . > You are receiving this because you commented.Message ID: > @.***>

Just made a fix for this problem. I looked through the device info you posted a couple of months ago and it looks like your setup is missing some devices which is what generated the error. Should work now.

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