Jump to content
Shelly wiring diagram Now LIVE ×
🌟 NEW Shelly Products Reveal Video! 🌟 NEUE Shelly-Produkte-Enthüllungsvideo! 🌟 ×

Shelly.getComponentStatus(type_or_key, id)


Recommended Posts

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...