Goal: Sync cooking calendars, recipe databases, and shopping list items using a custom HACS Cookidoo integration.
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. Download Cookidoo Custom Component
- Go to HACS -> Integrations -> Custom Repositories.
- Paste the Cookidoo repository link and select Integration.
- Download the component and restart Home Assistant.
2. Link your Account
- Go to Settings -> Devices & Services -> Add Integration -> Cookidoo.
- Enter your Cookidoo username (email address) and password.
- Select your region code (e.g.
RO/ Romania) and complete configuration.
3. Accessing Kitchen Lists
The integration registers buttons, calendars, and sensors:
# Querying step goal or kitchen lists
$ /home/gvoina/scripts/get_ha_sensor.sh sensor.cookidoo_shopping_list_items
Cookidoo Shopping List Items: 5 items
This enables you to trigger automations when new recipes are added to your calendar!
