/** * Home Assistant Node - Version 1 * Discriminator: resource=state, operation=upsert */ interface Credentials { homeAssistantApi: CredentialReference; } /** Create a new record, or update the current one if it already exists (upsert) */ export type HomeAssistantV1StateUpsertParams = { resource: 'state'; operation: 'upsert'; /** * The entity ID for which a state will be created. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ entityId?: string | Expression; /** * State */ state?: string | Expression | PlaceholderValue; /** * State Attributes * @default {} */ stateAttributes?: { /** Attributes */ attributes?: Array<{ /** Name of the attribute */ name?: string | Expression | PlaceholderValue; /** Value of the attribute */ value?: string | Expression | PlaceholderValue; }>; }; }; export type HomeAssistantV1StateUpsertOutput = { context?: { id?: string; parent_id?: null; user_id?: string; }; entity_id?: string; last_changed?: string; last_reported?: string; last_updated?: string; state?: string; }; export type HomeAssistantV1StateUpsertNode = { type: 'n8n-nodes-base.homeAssistant'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };