Home Assistant WS icon

Home Assistant WS

Node to interact with Home Assistant through the WebSocket API

Actions8

Service Action → Execute

AI-generated

Summary

Calls the selected Home Assistant service for each incoming n8n item, passing the configured service attributes and optional response setting. Choose a service domain and service from the lists or enter their names; the attribute fields are loaded for that selection.

Inputs

  • Service Domain ID (required) — Select a Home Assistant service domain from the list or enter its name.
  • Service ID (required) — Select a service from the chosen domain or enter its name.
  • Service Attribute Fields (required) — Set the service data fields shown for the selected domain and service. These values are passed as the call's service data.
  • Additional Fields → Response — Whether the service call should return a response; defaults to false.

Output shape

A list of n8n items containing the result of the service call, associated with each corresponding input item.

The node calls the service once per input item. The result is wrapped as a single-item array for each input; its contents depend on Home Assistant's service call response.

Examples

Example 1: Turn on a light

Choose the light domain and turn_on service, then set any required service attributes such as the target entity.

Links

Discussion