cync_lights icon indicating copy to clipboard operation
cync_lights copied to clipboard

Ceiling Fan Smart Switch

Open wraith1385 opened this issue 3 years ago • 5 comments

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 [email protected] 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

wraith1385 avatar Sep 13 '22 14:09 wraith1385

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 avatar Sep 13 '22 15:09 nikshriv

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.

nikshriv avatar Sep 14 '22 03:09 nikshriv

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

wraith1385 avatar Sep 14 '22 18:09 wraith1385

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

buckeye1038 avatar Nov 20 '22 04:11 buckeye1038

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 avatar Nov 25 '22 17:11 nikshriv

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

nikshriv avatar Dec 31 '22 06:12 nikshriv