shelly_switch_set
Turn a Shelly switch or relay channel on or off, optionally auto-reverting after N seconds. Returns the resulting channel state for local device control.
Instructions
Turn a switch/relay channel on or off (optionally auto-revert after N seconds).
Returns the post-action ChannelState. Audit-logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| device | Yes | ||
| channel | No | ||
| toggle_after_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||