Home Assistant & Smart Infrastructure Setup (4): Integrating HVAC Climate Systems with Daikin Onecta

By | June 15, 2026

Goal: Explain how to install HACS inside Docker and complete the OAuth 2.0 developer authentication flow with Daikin’s European cloud.

Why CLI Scripts? (Agentic AI Observability)

Before jumping into the script code, it is important to understand why command-line scripts are extremely useful for modern smart homes. Beyond convenience for terminal users, these CLI scripts act as a programmatic interface (API bridge) for agentic AI assistants like Antigravity (agy).

By exposing Home Assistant states through standard shell scripts, an AI agent running in your workspace can query, check, and verify live IoT metrics or network states autonomously. This enables the agent to check if the network is healthy, read environment levels, or verify configurations without having to scrape web-based dashboards or utilize complex browser interfaces. It bridges human developer terminal workflows with agentic automation.

Step-by-Step Configuration

1. Install HACS (Home Assistant Community Store)

Access the interactive shell of your running homeassistant docker container:

docker exec -it homeassistant bash
wget -O - https://get.hacs.xyz | bash
exit
docker restart homeassistant

2. Register a Daikin Developer Account

  1. Navigate to the Daikin Developer Portal.
  2. Create an account and register a new Application.
  3. Configure the OAuth Redirect URI exactly to:
    https://my.home-assistant.io/redirect/oauth
  4. Copy the generated Client ID and Client Secret.

3. Add the Daikin Integration in Home Assistant

  1. Open the Home Assistant UI -> Settings -> Devices & Services -> Add Integration.
  2. Search and click Daikin Onecta.
  3. Input your Client ID and Client Secret when prompted.
  4. Log in using your Daikin cloud credentials. Discovered climate units will map automatically.

4. Querying HVAC Unit Sensors via CLI

$ /home/gvoina/scripts/get_ha_sensor.sh climate.office_room_temperature
Office Room Temperature: cool (Target: 23°C)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.