python-sengled-client icon indicating copy to clipboard operation
python-sengled-client copied to clipboard

can login but cannot list any devices

Open petrum opened this issue 4 years ago • 5 comments

Hi,

I got the wifi sengled light bulbs, and set them up w/o issues. I can control them now using the mobile app and google home.

I was very excited to find your library as my goal is to control the ligths from Linux CLI.

I set it up, and I was able to connect using my username/password. However this seems the end, as listing the devices doesn't seem to work.

Am I doing anything wrong, or this is not supposed to work anymore?

api = sengled.api(
    username="**************",
    password="************",
    session_path="/tmp/sengled.pickle",
    debug=True
)
devices = api.get_device_details()
print(devices)

produces this output:


request: device/getDeviceDetails.json, {}
response: {'messageCode': '200', 'info': 'OK', 'description': '正常', 'deviceInfos': [], 'success': True}
[]

Am I supoposed to see here the 4x available light bulbs as devices?

Please help, Petru

petrum avatar Jan 04 '22 18:01 petrum

did you ever find solution, i am having the same problem.

viper-ds avatar Mar 24 '22 18:03 viper-ds

Hey! Apologies for the lack of responses from me.

I don't use my Sengled lights anymore so there's no way for me to test if this API still works the same or not. The lack of documentation of their API made it difficult to know if any of this was "the right way" to do this.

If you do find a solution, I will welcome patches.

vroy avatar Mar 24 '22 18:03 vroy

Hey! is there anyway i can add you on discord and see your opinion on it? I really wanna get these to work and have followed the doc, but when doing 'api.get_device_details()' it doesn't list device detailed. Also does not recognize my light names, set in the sengled app

viper-ds avatar Mar 24 '22 18:03 viper-ds

I can pay if needed, really need to get this to work!

viper-ds avatar Mar 24 '22 19:03 viper-ds

Sorry, that's not in the cards for me at this time.

vroy avatar Mar 24 '22 19:03 vroy