shelly light set

shelly light set

Set light parameters

Synopsis

Set parameters of a light component on the specified device.

You can set brightness and on/off state. Values not specified will be left unchanged.

1
shelly light set <device> [flags]

Examples

1
2
3
4
5
  # Set brightness to 50%
  shelly light set kitchen --brightness 50

  # Turn on and set brightness
  shelly light br kitchen -b 75 --on

Options

1
2
3
4
  -b, --brightness int   Brightness (0-100) (default -1)
  -h, --help             help for set
  -i, --id int           Light component ID (default 0)
      --on               Turn on

Options inherited from parent commands

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
      --config string           Config file (default $HOME/.config/shelly/config.yaml)
      --log-categories string   Filter logs by category (comma-separated: network,api,device,config,auth,plugin)
      --log-json                Output logs in JSON format
      --no-color                Disable colored output
      --no-headers              Hide table headers in output
      --offline                 Only read from cache, error on cache miss
  -o, --output string           Output format (table, json, yaml, template) (default "table")
      --plain                   Disable borders and colors (machine-readable output)
  -q, --quiet                   Suppress non-essential output
      --refresh                 Bypass cache and fetch fresh data from device
      --template string         Go template string for output (use with -o template)
  -v, --verbose count           Increase verbosity (-v=info, -vv=debug, -vvv=trace)

SEE ALSO