Skip to content

About

Example Python code for accessing the API of (password-protected) Shelly devices

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

shelly-api

Example Python (3.14) code for accessing the API of (password-protected) Shelly devices.

Written for Shelly Plug S and Plus Plug S according to API gen1 spec and API gen2 spec.

Motivation: Shelly Plug S does not support local MQTT connection in parallel to cloud connection. Hence, I needed to retrieve the data (for my local InfluxDB and Grafana) via API instead.

Note: Password protection/authentication is activated in my devices, hence needed here as well.

Features

  • access Shelly Plug S API gen1 via basic authentication
  • access Shelly Plus Plug S API gen2 via digest authentication / RFC7616
  • read meter power and energy data

About

Example Python code for accessing the API of (password-protected) Shelly devices

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages