From b476539a916438c3f17e77f9b8b30b53d56b084e Mon Sep 17 00:00:00 2001 From: sfromis <47082390+sfromis@users.noreply.github.com> Date: Fri, 7 Jul 2023 16:21:22 +0200 Subject: [PATCH] Update Commands.md Linking device groups to SetOption85 and separate docs page --- docs/Commands.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Commands.md b/docs/Commands.md index 90d7e35b18..83c1ac5b79 100644 --- a/docs/Commands.md +++ b/docs/Commands.md @@ -463,6 +463,8 @@ DevGroupName|`0` = clear device group DevGroupSend|``=`[ ...]` = send an update to device group . The device group name must have been previously set with DevGroupName. Multiple item/value pairs can be specified separated by a space. Spaces in `` must be escaped with a backslash (\\). The message sent is also processed on the local device as if it had been received from the network.

For items with numeric values, `` can be specified as @[] to send a value after performing an operation on the current value. can be + (add), - (subtract) or ^ (invert). If is not specified, it defaults to 0xffffffff for the invert operator and 1 for other operators.

Examples:
`DevGroupSend 4=90 128=1` - send an update to set the light brightness to 90 and turn relay 1 on.
`DevGroupSend 193=Buzzer\\ 2,3` - send the Buzzer 2,3 command.
`DevGroupSend 6=@+ 4=@-10` - set the next fixed color and decrease the brightness by 10.
`DevGroupSend 128=^` - toggle all the relays.

`2` = Light fade (0 = Off, 1 = On)
`3` = Light speed (1..40)
`4` = Light brightness (0..255)
`5` = Light [`Scheme`](#scheme)
`6` = Light fixed color (0 = white (using CT channels), other values according to [`Color`](#color))
`7` = PWM dimmer low preset (0..255)
`8` = PWM dimmer high preset (0..255)
`9` = PWM dimmer power-on brightness (0..255)
`128` = Relay Power - bitmask with bits set for relays to be powered on. The number of relays can be specified in bits 24 - 31. If the number of relays is not specified, only relay 1 is set
`192` = Event - event name and arguments
`193` = Command - command and arguments
`224` = Light channels - comma separated list of brightness levels (0..255) for channels 1 - 5 (e.g. 255,128,0,0,0 will turn the red channel on at 100% and the green channel on at 50% on an RGB light) DevGroupShare|`,` = set incoming and outgoing shared items _(default = `0xffffffff,0xffffffff`)_
and are bit masks where each mask is the sum of the values for the categories (listed below) to be shared. For example, to receive only power (1), light brightness (2) and light color (16) and send only power (1), enter the command DevGroupShare 19,1.

`1` = Power
`2` = Light brightness
`4` = Light fade/speed
`8` = Light scheme
`16` = Light color
`32` = Dimmer settings (presets)
`64` = Event DevGroupStatus|Show the status of device group including a list of the currently known members. +See also|[`SetOption85`](#setoption85) - to enable [Device Groups](https://tasmota.github.io/docs/Device-Groups/) + ### SetOptions