nikshriv / cync_lights

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

Ceiling Fan Smart Switch #10

Closed wraith1385 closed 1 year ago

wraith1385 commented 1 year ago

I bought one of the new cync Ceiling Fan Smart Switches. Attempting to set up the device in HA gets the following error:

2022-09-13 10:30:04.997 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry cync_lights_wraith1385@gmail.com for cync_lights File "/config/custom_components/cync_lights/init.py", line 15, in async_setup_entry File "/config/custom_components/cync_lights/cync_hub.py", line 26, in init File "/config/custom_components/cync_lights/cync_hub.py", line 26, in File "/config/custom_components/cync_lights/cync_hub.py", line 242, in init

I downloaded your python program to gather data about the device. JSON file is attached cync_data-main.zip

nikshriv commented 1 year ago

As of now, I haven't built in any support for ceiling fan switches as they use a different set of commands than the light switches. I don't have any of these devices so I am unable to test, but if you want to help develop support for them, you can check my last post in issue #7 and try doing a packet capture while operating the device with the android app.

nikshriv commented 1 year ago

I scanned through the decompiled Android app a little and thus may not be too difficult to implement. It might take me a little while to get to this, but I can give it a try.

wraith1385 commented 1 year ago

Unfortunately' I don't have any android devices in my house. Let me know if I can help in any other way

buckeye1038 commented 1 year ago

Has this been implemented? It appears to add these to HA just fine, but the devices do not show in my device list nor any entities for them. image image

nikshriv commented 1 year ago

Not implemented. It's proving more difficult than I thought. The code is obscured in the decompiled app, so I haven't been able to parse out.

nikshriv commented 1 year ago

Fan switches are now supported. The integration will create a fan speed switch entity.