Shelly: Add basic fleet management

Shelly devices can be managed remotely over an RPC interface.

Please add support for basic fleet management to the Shelly integration.

Suggested actions:

  • Enable / disable AP
  • Set/delete KVS entries
  • Create/start/stop/start-on-boot scripts

The actions can be applied to an arbitrary set of Shelly devices (eg, by showing all devices with individual checkboxs to select/deselect).

This is a large feature request. I’m interested in working on this myself. The purpose of this thread is to find out if others like the idea and if the HA dev team would accept such a change. I don’t know of any integration providing similar functionality, so perhaps it’s not appropriate or there’s a better alternative.

This is already implemented. The integration creates a switch entity for every script.

Start/stop script is barely scratching the surface!

Here’s a concrete use-case. When I deployed ~30 Shelly 1 devices in my house this week, I followed this checklist:

  • (has to be manual) Connect to Shelly wifi and configure correct wifi network details
  • (has to be manual) Name the device
  • Create a script that enables AP only when wifi connection fails, enable script (run on boot), and start it

And these changes to different subsets:

  • Enable eco mode
  • Change input switch type to edge
  • Change consumption type to light

I wish all these steps could be done in a “bulk edit” style interface. It was error-prone doing it by hand.

I’ll tell you the same thing Paulus once told me. HA is not a device management platform, HA is an automation platform. Currently, that’s my approach, we implement what gives value in terms of automation.

Switches for AP and Bluetooth seem like an interesting idea. The KVS case has already been discussed and it will not be implemented in integration. Changing the input type and consumption type is also typically a configuration of the device itself and we probably won’t go in that direction.

We’ll see how many votes/comments your request gets.

1 Like

Mayby Shelly Scanner will meet your expectations.