Skip to main content

Home Assistant Control

This component controls Home Assistant devices. It provides actions like turn_on, turn_off, and toggle for any entity. The domain is automatically extracted from the entity ID.

Prerequisites

  • A Home Assistant Long-Lived Access Token
  • A Home Assistant server URL
Inputs
NameDisplay NameInfo
ha_tokenHome Assistant TokenHome Assistant Long-Lived Access Token.
base_urlHome Assistant URLe.g., http://192.168.0.10:8123
default_actionDefault Action (Optional)One of turn_on, turn_off, toggle.
default_entity_idDefault Entity ID (Optional)Default entity ID to control (e.g., switch.unknown_switch_3).
Outputs
NameDisplay NameInfo
api_run_modelDataThe Home Assistant API response as a Data object.
api_build_toolToolA tool for use by an agent to control Home Assistant devices.

List HomeAssistant States

This component retrieves device states from Home Assistant. It can return all states or filter by domain (e.g., light, switch, sensor).

Prerequisites

  • A Home Assistant Long-Lived Access Token
  • A Home Assistant server URL
Inputs
NameDisplay NameInfo
ha_tokenHome Assistant TokenHome Assistant Long-Lived Access Token.
base_urlHome Assistant URLe.g., http://192.168.0.10:8123
filter_domainDefault Filter Domain (Optional)light, switch, sensor, etc. (Leave empty to fetch all)
Outputs
NameDisplay NameInfo
api_run_modelDataThe device states as a Data object.
api_build_toolToolA tool for use by an agent to list Home Assistant states.