vroy / python-sengled-client

A simple Python client to control Sengled [light] accessories.
MIT License
23 stars 4 forks source link

can login but cannot list any devices #7

Open petrum opened 2 years ago

petrum commented 2 years ago

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

viper-ds commented 2 years ago

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

vroy commented 2 years ago

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.

viper-ds commented 2 years ago

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 commented 2 years ago

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

vroy commented 2 years ago

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