Turn on an entity
entities_turn_onTurn on any Home Assistant entity, optionally applying light-only color or brightness. Validates the domain first, converts mireds to Kelvin, and returns changed states.
Instructions
Turn on an entity, optionally with light-only color and brightness options.
Calls <domain>.turn_on for the entity's domain over HTTP. If any of
brightness, color_temp, color_temp_kelvin or rgb_color is given
for a non-light entity, the service is not called at all — HA's own
turn_on for other domains (e.g. switch) rejects unknown fields, so
this checks the domain first. A given color_temp (mireds) is converted
to Kelvin (round(1_000_000 / mireds)) since HA's light.turn_on no
longer accepts mireds.
Use when: turning on any entity, with or without light color/brightness.
Not for: a dedicated light color/brightness change without an on/off
intent — use services_set_light_color; an input_boolean-only helper —
helpers_set_input_boolean is the domain-specific equivalent.
Returns: the list of changed states from Home Assistant, or an error
dict.
Errors: {"error": "..."} when a light-only option is given for a
non-light domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Full entity ID to turn on, e.g. 'light.kitchen'. | |
| rgb_color | No | Light RGB color as [r, g, b], each 0-255, light-only option. | |
| brightness | No | Light brightness, 0-255. Light-only; passing it for a non-light entity returns an error. | |
| color_temp | No | Deprecated mired color temperature, light-only. Converted to Kelvin before the call; prefer color_temp_kelvin. | |
| color_temp_kelvin | No | Light color temperature in Kelvin, light-only option. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |