reredok Posted August 6 Share Posted August 6 Hello, I am interested in where there is documentation describing such calls: Examples: Shelly.getComponentStatus("sys").uptime Shelly.getComponentStatus("net") Shelly.getComponentStatus("wifi") The general call response = requests.get(f'http://{shelly_ip}/rpc/Shelly.GetComponents'); components = response.json() unfortunately provides no information at all. I have also not been able to find such Items in any Shelly documentation. Best Regards reredok Quote Link to comment Share on other sites More sharing options...
Members thgoebel Posted August 6 Members Share Posted August 6 https://shelly-api-docs.shelly.cloud/gen2/Scripts/ShellyScriptLanguageFeatures#shellygetcomponentstatus Quote Link to comment Share on other sites More sharing options...
Heinz Posted August 6 Share Posted August 6 when i checked the API documents https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen2/ShellyPlusPlugS/ to get the stats via the API call I used http://10.10.50.226/rpc/shelly.getstatus?compnent=wifi This then gave me the stats of the wifi check if that works for you. The only thing you need to change is the IP address Quote Link to comment Share on other sites More sharing options...
reredok Posted August 6 Author Share Posted August 6 Many thanks for the feedback. I'll try to describe my problem in more detail (or maybe I'm blind). The documentation says: Shelly.getComponentConfig(type_or_key, id) type_or_key string Component type or key "component:id"). Component type must be in lowercase. I wonder how you know how these 'Component Types' are structured: Shelly.getComponentStatus("sys") Shelly.getComponentStatus("net") Shelly.getComponentStatus("wifi") and so on. If I read out the list with response = requests.get(f'http://{shelly_ip}/rpc/Shelly.GetComponents'); components = response.json() Then something like this comes out: ... components.config.sntp components.config.sntp.server ... components.status.uptime ... and I can't find anything in the documentation. What I am looking for is how to query these "components" that exist for a specific Shelly device. Or am I completely on the wrong track Quote Link to comment Share on other sites More sharing options...
tvbshelly Posted August 6 Share Posted August 6 (edited) From a Pro 3EM I can read this: by calling <shelly-ip>/rpc/Shelly.GetComponents and using JSON path: components[*].key They are documented here: https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/Introduction Edited August 6 by tvbshelly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.