nikshriv / cync_lights

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

GE CYNC - Dimmer + Motion - Motion/Ambient Not Working #27

Closed Anon666333 closed 1 year ago

Anon666333 commented 1 year ago

Love that this integration was made - so thank you! Issue: Motion sensor and ambient light sensor are non-functional. I attached images, really hoping they show.. Something to note, I'm currently using a DIFFERENT motion sensor to activate the switch, which is why the "Kitchen Lights" show they are activated by an automation called "Kitchen Lights - ON - Motion".

This is my first time writing an issue for anything, so please let me know if you want anything additional and I'm happy to add it!

The entities exist, however they don't work. I double checked to ensure they work in the CYNC app - they do. I deleted and reinstalled with no success. The switch itself works properly, and is fully controlled by HA with no issue. Just seems to be the sensors. I also verified that the sensors work correctly the the native CYNC app.

HA Core: 2022.11.2

Screenshot_20221117-221248_Home Assistant Screenshot_20221117-221242_Home Assistant Screenshot_20221117-221257_Home Assistant

nikshriv commented 1 year ago

Did you enable the motion/ambient light sensor in the Cync app when you installed the switches and configured them?

Anon666333 commented 1 year ago

sensor

Yes, they were both on at the time of integration. I also checked them both in HA during the integration process.

nikshriv commented 1 year ago

I'm not sure what's going on. I do know that the sensors don't function in HA until a motion event or an ambient light change event has taken place after first startup of the integration, but after that, the sensors should work. Can you run my cync_data.py script and tell me your the "deviceType" of your switches? It will be in the output json file.

Anon666333 commented 1 year ago

I'm so sorry, but can you help me on how to run that? I was looking at it on Github... But I'm unsure on how to run it.

Have you tested with this switch? If so, can you walk me through how you set it up, from switch install to HA integration? I don't believe I missed anything but I absolutely could have.

nikshriv commented 1 year ago

Run the script in a shell or from windows power shell on any computer with Python 3 installed using this command: “python cync_data.py”

I don’t know which type of switch you have because Cync makes a number of different switches with different device types that look the same. The script should tell you the device type so I can see if yours are different than mine.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Anon666333 @.> Sent: Friday, November 25, 2022 9:52:58 AM To: nikshriv/cync_lights @.> Cc: nikshriv @.>; Comment @.> Subject: Re: [nikshriv/cync_lights] GE CYNC - Dimmer + Motion - Motion/Ambient Not Working (Issue #27)

I'm so sorry, but can you help me on how to run that? I was looking at it on Github... But I'm unsure on how to run it.

Have you tested with this switch? If so, can you walk me through how you set it up, from switch install to HA integration? I don't believe I missed anything but I absolutely could have.

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnikshriv%2Fcync_lights%2Fissues%2F27%23issuecomment-1327749018&data=05%7C01%7C%7Cce610a74406d4c2123ea08dacf0de49b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638049955821996786%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fOFLd9FhSlqShAoiqVf7C2Tzm3MqMVJ4a%2Bqg8IrQL5g%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEAUPHP3AGDB54HVO2DW74TWKD4HVANCNFSM6AAAAAASEQ4IGQ&data=05%7C01%7C%7Cce610a74406d4c2123ea08dacf0de49b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638049955821996786%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0%2Ba%2BrUrIxmNUl2DH14Z4lPx2ilcKMNWKRTglC8b7q%2Bs%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

nikshriv commented 1 year ago

Also, check your HA logs for errors from the integration and post

Get Outlook for iOShttps://aka.ms/o0ukef


From: Nik Shrivastava @.> Sent: Friday, November 25, 2022 10:07:51 AM To: nikshriv/cync_lights @.>; nikshriv/cync_lights @.> Cc: nikshriv @.>; Comment @.***> Subject: Re: [nikshriv/cync_lights] GE CYNC - Dimmer + Motion - Motion/Ambient Not Working (Issue #27)

Run the script in a shell or from windows power shell on any computer with Python 3 installed using this command: “python cync_data.py”

I don’t know which type of switch you have because Cync makes a number of different switches with different device types that look the same. The script should tell you the device type so I can see if yours are different than mine.

Get Outlook for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fo0ukef&data=05%7C01%7C%7C31316038398948ac145b08dacf0ff9ea%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638049964779894427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7n3zPrjz1BE7H7uLktV6R9MY%2F7AN83txgPOY%2FjCYLNE%3D&reserved=0


From: Anon666333 @.> Sent: Friday, November 25, 2022 9:52:58 AM To: nikshriv/cync_lights @.> Cc: nikshriv @.>; Comment @.> Subject: Re: [nikshriv/cync_lights] GE CYNC - Dimmer + Motion - Motion/Ambient Not Working (Issue #27)

I'm so sorry, but can you help me on how to run that? I was looking at it on Github... But I'm unsure on how to run it.

Have you tested with this switch? If so, can you walk me through how you set it up, from switch install to HA integration? I don't believe I missed anything but I absolutely could have.

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnikshriv%2Fcync_lights%2Fissues%2F27%23issuecomment-1327749018&data=05%7C01%7C%7C31316038398948ac145b08dacf0ff9ea%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638049964779894427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oOOtl%2B%2BWkC3PYRVnVClngihtgWxqPfsqufYSTQHozUU%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEAUPHP3AGDB54HVO2DW74TWKD4HVANCNFSM6AAAAAASEQ4IGQ&data=05%7C01%7C%7C31316038398948ac145b08dacf0ff9ea%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638049964779894427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hrREfT2I3hOdzh6bdMxx6kKclomorU6uhT5b0s1xb3M%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

Anon666333 commented 1 year ago

I'm not seeing any errors showing up in the HA logs for the Cync sensors. It just states that the sensors are being setup. (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.cync_lights

I'm so sorry but I'm still struggling to figure out how to run this script of yours. I tried running it using "python_script" in HA - no output in events because your script uses imports which the native HA py scripting doesn't support. Tried to install Pyscript to run it, but can't seem to get Pyscript to install.

Any help here would be greatly appreciated...

nikshriv commented 1 year ago

I've had a chance to investigate this further. I believe you must be using one of the 3-wire (no neutral wire) switches with motion and ambient light sensor. I recently installed one of these switches in my house as well, and unfortunately it looks like the motion sensor and ambient sensor cannot be supported for this particular device. The device does not report any motion or light changes to the Cync server and appears to only use the sensor information internally. That is why your motion and light sensors are not working. In the next version, I will remove support for the motion and light sensors for this particular switch.

Based on my testing, the motion and light sensors do work with the 4-wire switches.

Anon666333 commented 1 year ago

Hi there,

Thank you so much for your reply and confirmation! Makes sense why it doesn't work - pretty odd design choice for this model to keep it all internal. External motion sensors work well so no worries 😊

Kind Regards,

Matt Langlois


From: nikshriv @.> Sent: Saturday, December 24, 2022 10:47:43 AM To: nikshriv/cync_lights @.> Cc: Anon666333 @.>; Author @.> Subject: Re: [nikshriv/cync_lights] GE CYNC - Dimmer + Motion - Motion/Ambient Not Working (Issue #27)

I've had a chance to investigate this further. I believe you must be using one of the 3-wire (no neutral wire) switches with motion and ambient light sensor. I recently installed one of these switches in my house as well, and unfortunately it looks like the motion sensor and ambient sensor cannot be supported for this particular device. The device does not report any motion or light changes to the Cync server and appears to only use the sensor information internally. That is why your motion and light sensors are not working. In the next version, I will remove support for the motion and light sensors for this particular switch.

— Reply to this email directly, view it on GitHubhttps://github.com/nikshriv/cync_lights/issues/27#issuecomment-1364547713, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AX2KZYD6OCNCBNPTCAHXPO3WO4LJ7ANCNFSM6AAAAAASEQ4IGQ. You are receiving this because you authored the thread.Message ID: @.***>

nwithan8 commented 1 year ago

I've had a chance to investigate this further. I believe you must be using one of the 3-wire (no neutral wire) switches with motion and ambient light sensor. I recently installed one of these switches in my house as well, and unfortunately it looks like the motion sensor and ambient sensor cannot be supported for this particular device. The device does not report any motion or light changes to the Cync server and appears to only use the sensor information internally. That is why your motion and light sensors are not working. In the next version, I will remove support for the motion and light sensors for this particular switch.

Based on my testing, the motion and light sensors do work with the 4-wire switches.

Can confirm, it seems the WiFi wireless motion sensor does not report any data to Cync. Heck, the device doesn't even show up in Cync's app unless you go digging.

I can see via the results of your script that the motion sensor was registered correctly, but its "device info" is simply the two adjacent devices its set to control (one physical light bulb and one virtual room, containing that same light bulb).

I was looking at contributing to your HA integration to potentially fix the motion sensor not appearing as a configurable device, but now I'm doubting that there would even been any data to capture from the device once it were added to HA.

glenviewjeff commented 1 year ago

I have the no-neutral device and I swear I verified the ambient light and/or motion sensor actually functioning in my HA setup. Even if it really did function, I don't have any particular need for the feature I suppose, other than maybe to complain to the family over Google Assistant that they left the basement lights on :)