The Shelly integration in Home Assistant is getting a new action, shelly.command, called Send command in the UI. It sends a command straight to a Shelly device and can hand the device's reply back to the automation. Developer thecode opened the pull request on 20 November 2026 and merged it into the development branch on 21 November, together with the documentation, which names 2026.12 as the first release with the action. Home Assistant releases normally ship on the first Wednesday of the month, which would be 2 December, after a week of beta. Details can still change before then.
What it is for
The action covers device features that have no entity or action in Home Assistant: timers that run on the device itself, individual settings, the schedules stored on the device and its raw status. The pull request and documentation give these examples:
Switch.Setwithtoggle_after: 600turns a garden pump on at 06:00, and the Shelly switches it off after 10 minutes on its own, even if Home Assistant or Wi-Fi is down at that moment;Switch.SetConfigshortens the auto-off delay of a hallway light to 2 minutes (auto_off_delay: 120) at 23:00;WiFi.Scanlists the Wi-Fi networks the device can see, with their signal strength;Schedule.List,Shelly.GetStatusandShelly.GetConfigread the schedules, status and configuration for use in templates.
To get the reply, set a response_variable. If the device returns nothing, the action returns an empty mapping. According to SmarthomeAssistent, users on the Home Assistant forum have so far solved this kind of thing with a hand-written REST command.
Gen1 and Gen2+ devices
On Gen2 and newer devices, the command is the name of an RPC method such as Switch.Set, and the parameters go to the device unchanged, so they can be nested. On Gen1 devices, the command is an HTTP endpoint such as relay/0 or settings, and the parameters are sent in the query string, so each one has to be text, a number or a boolean. Home Assistant doesn't ship a list of commands. They come from Shelly's API reference, and a command that works on one model may not exist on another.
Limits
- Only administrators can run the action by hand. Automations and scripts are not affected.
- Battery-powered devices that sleep most of the time aren't supported, and the action returns an error for them.
- Commands that would lose the device are blocked before anything is sent:
Shelly.FactoryResetandShelly.ResetWiFiConfig(in any letter case), andsettingswith aresetparameter on Gen1. - Other commands can still change the Wi-Fi or authentication settings Home Assistant uses to reach the device, and the documentation warns to check each command in the Shelly reference first.
- With debug logging on, the command, its parameters and the reply go to the log, including sensitive values such as a Wi-Fi password.
Errors come back in readable form. A Gen2+ device returns its own error code and message, for example -105 for a nonexistent switch ID, while a Gen1 device answers with HTTP 404 for an unknown endpoint and 400 for an invalid parameter.