nikshriv / cync_lights

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

A19 Bulb transition time and "Light Shows" #14

Open backcountrymountains opened 1 year ago

backcountrymountains commented 1 year ago

This is a great integration; thanks for making it!

I got some free GE bulbs with a Amazon echo I purchased and I'm using this integration to control them from HA. When I send a light.turn_on command, the transition: parameter doesn't work; the light changes immediately. No idea how that works.

Also, the app has "Light Shows" that make the bulbs change colors on a loop and I didn't know if the app was sending individual commands to change colors or if there were defined "Light Show" commands that the bulb responded to. It would be cool if we could activate a "Light Show" like "Aurora" by issuing a command from HA.

Also, also, I was confused by installation step 4 in the Readme. Could we change it to something like 4. Go to the HA Integrations page and add the Cync integration by pushing the "Add Integration" button. Sign in with your Cync email and password. Seems obvious to add the integration to HA after adding it to HACS, but it took me a second to figure out what steps were required. (I saw that I wasn't the only one in the issues)

Anyway, thanks for making this!

Device info:

"device_info": {
                "musicShows": [],
                "bulbsArray": [
                    {
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "displayName": "GE Light 2",
                        "motionSensorEnabled": true,
                        "mac": "xxxxxxxxxxxxxxxxx",
                        "ambientLightEnable": "false",
                        "firmwareVersion": "1.0.313",
                        "occupancySensitivity": 1,
                        "occupancyEnable": "true",
                        "deviceType": 137,
                        "switchID": 1097568496,
                        "wifiSsid": "xxxxxxxxxx",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "deviceID": 1436156141002,
                        "commissionedDate": "2022-10-04T19:06:15.181Z",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "xxxxxxxxxxxxxxxxxxx",
                        "ambientLightSensitivity": 10,
                        "occupancyTimeoutPeriod": 300
                    },
                    {
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "displayName": "GE Light 1",
                        "motionSensorEnabled": true,
                        "mac": "xxxxxxxxxxxxxxxx",
                        "ambientLightEnable": "false",
                        "firmwareVersion": "1.0.313",
                        "occupancySensitivity": 1,
                        "occupancyEnable": "true",
                        "deviceType": 137,
                        "switchID": 1097565281,
                        "wifiSsid": "xxxxxxxxxx",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "deviceID": 1436156141001,
                        "commissionedDate": "2022-10-04T16:58:03.763Z",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "xxxxxxxxxxxxxx",
                        "ambientLightSensitivity": 10,
                        "occupancyTimeoutPeriod": 300
                    }
                ],
                "lightShows": [],
                "switchIsAutoUpdate": false,
nikshriv commented 1 year ago

Thanks for the feedback. At this point I'm just trying to get the integration functioning properly for most devices. I haven't thought about including transitions or support for "Light Shows", but I'll think about it as a feature for the future.