set_device_color
Change the color and brightness of Home Assistant lights by specifying RGB values to create custom lighting scenes and ambiance.
Instructions
Set the color and optionally brightness of a light entity.
Args:
entity_id: The Home Assistant entity ID to control (format: light.entity)
red: Red component (0-255)
green: Green component (0-255)
blue: Blue component (0-255)
brightness: Optional brightness level (0-255)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blue | Yes | ||
brightness | No | ||
entity_id | Yes | ||
green | Yes | ||
red | Yes |
Input Schema (JSON Schema)
{
"properties": {
"blue": {
"title": "Blue",
"type": "integer"
},
"brightness": {
"default": null,
"title": "Brightness",
"type": "integer"
},
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"green": {
"title": "Green",
"type": "integer"
},
"red": {
"title": "Red",
"type": "integer"
}
},
"required": [
"entity_id",
"red",
"green",
"blue"
],
"type": "object"
}