Call a service
ha_call_serviceCall a Home Assistant service to change entity state, such as turning on a light or setting temperature. Returns changed entities; refused if writes are disabled or domain denied.
Instructions
Call a Home Assistant service to change state (e.g. domain='light', service='turn_on', data={ brightness_pct: 60 }, target={ entity_id: 'light.kitchen' }). Refused unless writes are enabled, and blocked for denied domains. Returns the entities that changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Service data / parameters (may include entity_id). | |
| domain | Yes | Service domain, e.g. 'light', 'switch', 'climate'. | |
| target | No | Service target (entity/area/device/label selectors). | |
| service | Yes | Service name, e.g. 'turn_on', 'set_temperature'. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |