call-service-command

Websocket command to call a Home Assistant service

Name call-service-command
Type Interface
Path packages/hass-ts/src/lib/core/websocket-client/messages/call-service-command.ts

Properties

Name Type Description
domain string Service domain (e.g. 'light')
return_response boolean Not optional for service actions that return response data
service_data Record<string, unknown> Optional service data
service string Service action (e.g. 'turn_on')
target { entity_id?: string | string[]; area_id?: string | string[]; device_id?: string | string[]; } What entity is the service targeting
type 'call_service' Type of command on the Websocket API