Closed emmerav closed 2 years ago
Shelly Plus (and Shelly Pro) devices changed the the Gen 2 API which is RPC based.
Since ShellyPy was essentially just a thing requests wrapper that correctly delt with limitation I don't think its worth it to rework this python module for the new API, but I am working on a C library to interact with the Gen 1 and Gen 2 API as well as a python wrapper for that.
Thanks Jan200101. For different reasons my project is written in Python (I cannot change language for the moment). So it would be very helpful also an upgrade of your ShellyPy library. Hope to hear you soon.
when libshelly is done you don't have to change to a different language, I aim to be python compatible.
But you are right, it would be better if I update this library to support gen2 devices and am in the process of doing so. I cannot give an estimate on how long that will take, but I would guess it will be done next week
Nice news! Thk
Should be implemented by 7994d6625fc91c85a9ee9e166263d109e53fe7d4, tested against the Shelly Plus 1 PM
I've added generation detection so you can use Gen 1 and Gen 2 devices with the standard Shelly class.
HTTP Auth is still a bit wonky with the Gen 2 devices and is currently not supported
ok Jan, I'll update files and test them with both Gen in the same home network. Grazie mille !
Il giorno sab 12 mar 2022 alle ore 13:58 Jan @.***> ha scritto:
Should be implemented by 7994d66 https://github.com/Jan200101/ShellyPy/commit/7994d6625fc91c85a9ee9e166263d109e53fe7d4, tested against the Shelly Plus 1 PM
I've added generation detection so you can use Gen 1 and Gen 2 devices with the standard Shelly class.
HTTP Auth is still a bit wonky with the Gen 2 devices and is currently not supported
— Reply to this email directly, view it on GitHub https://github.com/Jan200101/ShellyPy/issues/3#issuecomment-1065879195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYBL3MKBNL4OKIDK4PIBEFDU7SII7ANCNFSM5P2FM4JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Hi,
I've added a new Shelly device (Shelly Plus 1 PM) in my network but unfotunately it has different HTTP commands. For example the status request has changed from http://192.168.1.102/status to http://192.168.1.102/rpc/Switch.GetStatus?id=0
Are you planning to update your project to manage these new devices ? Thanks