Home Assistant & Smart Infrastructure Setup (8): Netatmo Ecosystem: Weather Stations & Smart Cameras

By | June 19, 2026

Goal: Monitor multi-property environmental metrics (CO2, humidity, noise, rain/wind gauges) and integrate Smart Indoor/Outdoor cameras (with face/person recognition and floodlights) under a unified developer API.

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. Create a Netatmo Developer App

  1. Go to the Netatmo Connect Portal.
  2. Create a new App under My Apps.
  3. Retrieve your Client ID and Client Secret.
  4. Set the redirect URI to:
    https://my.home-assistant.io/redirect/oauth
  5. In the API scopes section, make sure to request authorizations for both weather (read_station) and security (read_camera, access_camera, read_presence).

2. Add Netatmo to Home Assistant

  1. In Home Assistant UI, go to Settings -> Devices & Services -> Add Integration -> Netatmo.
  2. Input the App Client ID and Secret.
  3. Log in with your Netatmo credentials to import your multi-room indoor/outdoor sensors.

3. Monitoring Weather & Camera Statuses via CLI

Once configured, you can query environmental modules and camera states:

# Querying carbon dioxide levels in the office
$ /home/gvoina/scripts/get_ha_sensor.sh sensor.office_carbon_dioxide
Office Carbon Dioxide: 600 ppm

# Querying wind speed from the wind gauge
$ /home/gvoina/scripts/get_ha_sensor.sh sensor.office_wind_gauge_wind_speed
Office Wind Gauge Wind Speed: 12 km/h

# Querying the status of the outdoor security camera
$ /home/gvoina/scripts/get_ha_sensor.sh camera.smart_outdoor_camera
Smart Outdoor Camera: idle
This image has an empty alt attribute; its file name is wp-17474886356948182489881584260591.jpg

Leave a Reply

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