## Scenes

### **domoticz.scenes.items()**

Get all Groups/Scenes in Domoticz

### **domoticz.scenes.switch(idx, command="On")**

Change state of a Group/Scene device.

| Parameter | Description                                               |
| --------- | --------------------------------------------------------- |
| idx       | idx value of the device in Domoticz                       |
| command   | A Domoticz device command On/Off/... **case sensitive !** |

### **domoticz.scenes.toggle(idx)**

Toggle a Group/Scene device.

| Parameter | Description                         |
| --------- | ----------------------------------- |
| idx       | idx value of the device in Domoticz |
