Skip to content
Maua.Culturewire

Home Assistant

Entity states, history and actions of your Home Assistant

AutomationCatalog5 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Home Assistant URLRequiredHTTPS URL
    • Long-lived access tokenSecretRequired

    Where to find them

    1. In Home Assistant click your name at the bottom of the sidebar to open your profile, then open the “Security” tab.
    2. Under “Long-lived access tokens” click “Create token”, give it a name (e.g. Maua.Culturewire) and confirm.
    3. Copy the token (it is not shown again) and paste it here. The token acts as your user: agents can do what that user can, and a few endpoints (templates, events, the error log) need an administrator.

    Get credentials (opens in a new tab)

Tools (5)

  • Home Assistant API requestHOMEASSISTANT_SEND_REQUEST

    Authenticated call to the Home Assistant API ({url}/api). Any endpoint of the API is allowed. Examples: GET /states, GET /states/{entity_id}, GET /services (every action and its fields: very long), POST /services/light/turn_on {"entity_id": "light.kitchen", "brightness_pct": 50} (add ?return_response for actions that return data, e.g. weather.get_forecasts), GET /history/period/{ISO start}?filter_entity_id=sensor.a,sensor.b&minimal_response&no_attributes, GET /logbook/{ISO start}?entity=…, GET /calendars/{entity_id}?start=…&end=…, POST /template {"template": "{{ states('sensor.temperature') }}"} (administrators; answers plain text), GET /config.

    Required scopes

    No scopes required

    Input

    Home Assistant API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • Entity statesHOMEASSISTANT_LIST_STATES

    Lists entities with their current state, friendly name, unit and last change, sorted by entity ID. Filter by domain or text to keep the list short; HOMEASSISTANT_GET_ENTITY returns every attribute of one entity.

    Required scopes

    No scopes required

    Input

    Entity states input
    NameTypeDescription
    domainstringOnly these domains, e.g. light, or several separated by commas: light,switch,climate
    searchstringText that the entity ID or the friendly name must contain
    maxintegerDefault: 200
  • One entityHOMEASSISTANT_GET_ENTITY

    Returns the current state of one entity with all its attributes (brightness, temperature, options, supported features…).

    Required scopes

    No scopes required

    Input

    One entity input
    NameTypeDescription
    entity_idrequiredstringEntity ID, e.g. light.kitchen or sensor.outdoor_temperature
  • Call an actionHOMEASSISTANT_CALL_SERVICE

    Calls an action (service), e.g. light.turn_on, switch.toggle, scene.turn_on, script.turn_on, climate.set_temperature or notify.notify, and returns the states it changed. The attributes of the entity (HOMEASSISTANT_GET_ENTITY) show the modes and features it supports.

    Required scopes

    No scopes required

    Input

    Call an action input
    NameTypeDescription
    domainrequiredstringDomain of the action, e.g. light
    servicerequiredstringAction, e.g. turn_on
    entity_idstring | string[]Target entity or entities, e.g. light.kitchen
    dataobjectOther fields of the action, e.g. {"brightness_pct": 50}, {"temperature": 21} or {"area_id": "kitchen"}
    return_responsebooleanRequired by actions that return data (e.g. weather.get_forecasts, calendar.get_events, todo.get_items); the others reject itDefault: false
  • State historyHOMEASSISTANT_GET_HISTORY

    State changes of one or more entities over a period (by default the last 24 hours), most recent last. Each entity lists up to “max” changes and the total in the period.

    Required scopes

    No scopes required

    Input

    State history input
    NameTypeDescription
    entity_idrequiredstring | string[]Entity or entities, e.g. sensor.outdoor_temperature
    hoursintegerLength of the period, ending nowDefault: 24
    startstringStart instead of “hours”, ISO 8601, e.g. 2026-10-01T00:00:00+02:00
    endstringEnd of the period (with “start”; by default one day after it)
    maxintegerMost recent changes kept per entityDefault: 100