SousCircle

Home automation API

Plug your kitchen into your smart home

Put tonight’s dinner on a wall tablet, add milk to the list by voice, get a nudge when it’s time to start cooking. SousCircle speaks plain JSON and calendar feeds, so Home Assistant, Node-RED, Homey or a ten-line script can read your meal plan, grocery list and pantry.

A kitchen dashboardToday’s meals, who’s cooking and what’s left to buy on a wall tablet or e-ink display.
Hands-free list“Add eggs to the grocery list” — it lands in SousCircle and merges with what is already there.
Cooking remindersThe plan as a calendar: flash a light or ping a phone 45 minutes before dinner.

Your API keys

A key reads your meal plan, grocery list, pantry and recipes — and changes only what you allow. It can’t sign in, see your password or touch your account.

Home Assistant

Four small pieces: keep the key in secrets.yaml, add two sensors, teach Assist two sentences, and subscribe to the plan as a calendar. Restart Home Assistant after editing YAML.

  1. 1. The key

    Make a key above (tick Change the grocery list for the voice commands) and put it in secrets.yaml — with the word Bearer in front.

    secrets.yaml
    # secrets.yaml
    souscircle_auth: "Bearer sck_your_key_here"
  2. 2. Sensors: tonight’s dinner and the list

    sensor.dinner_tonight holds the dinner title, with breakfast, lunch, tomorrow and a ready-to-speak sentence as attributes; sensor.groceries_to_buy counts what’s left on the list. Both fit straight onto a dashboard card.

    configuration.yaml — sensors
    # configuration.yaml — refreshes every 5 minutes
    rest:
      - resource: https://souscircle.com/api/v1/today
        headers:
          Authorization: !secret souscircle_auth
        scan_interval: 300
        sensor:
          - name: "Dinner tonight"
            unique_id: souscircle_dinner_tonight
            icon: mdi:silverware-fork-knife
            value_template: "{{ value_json.dinner or 'Nothing planned' }}"
            json_attributes:
              - breakfast
              - lunch
              - snack
              - speech
              - next
              - tomorrow
          - name: "Groceries to buy"
            unique_id: souscircle_groceries_to_buy
            icon: mdi:cart-outline
            value_template: "{{ value_json.grocery.unchecked }}"
            unit_of_measurement: "items"
  3. 3. Voice: “add eggs to the grocery list”

    Two REST commands and two intents. Ask Assist “add eggs to the grocery list” or “what’s for dinner?” — from your phone, a voice satellite or a smart speaker linked to Home Assistant.

    configuration.yaml — commands & intents
    # configuration.yaml
    rest_command:
      souscircle_add:
        url: https://souscircle.com/api/v1/grocery
        method: post
        headers:
          Authorization: !secret souscircle_auth
        content_type: "application/json"
        payload: '{"item": {{ item | tojson }}}'
      souscircle_check:
        url: https://souscircle.com/api/v1/grocery/check
        method: post
        headers:
          Authorization: !secret souscircle_auth
        content_type: "application/json"
        payload: '{"name": {{ item | tojson }}}'
    
    intent_script:
      SousCircleAdd:
        action:
          - action: rest_command.souscircle_add
            data:
              item: "{{ item }}"
        speech:
          text: "Added {{ item }} to the grocery list."
      SousCircleDinner:
        speech:
          text: "{{ state_attr('sensor.dinner_tonight', 'speech') }}"
    custom_sentences/en/souscircle.yaml
    # custom_sentences/en/souscircle.yaml
    language: "en"
    intents:
      SousCircleAdd:
        data:
          - sentences:
              - "add {item} to [the] grocery list"
              - "put {item} on [the] grocery list"
      SousCircleDinner:
        data:
          - sentences:
              - "what's for dinner [tonight]"
              - "what are we having for dinner"
    lists:
      item:
        wildcard: true
  4. 4. The plan as a calendar

    Settings → Devices & services → Add integration → Remote Calendar. Name it SousCircle meals and paste the calendar address (below). Then trigger automations off meals — like this one, 45 minutes before dinner:

    automations.yaml
    # automations.yaml — or a new automation, "Edit in YAML"
    - alias: "Time to start dinner"
      triggers:
        - trigger: calendar
          event: start
          entity_id: calendar.souscircle_meals
          offset: "-0:45:0"
      conditions:
        - condition: template
          value_template: "{{ trigger.calendar_event.summary.startswith('Dinner') }}"
      actions:
        - action: notify.notify
          data:
            message: "Time to start cooking: {{ trigger.calendar_event.summary }}"

Calendar feed

Subscribe in Google Calendar (“From URL”), Apple Calendar (“New Calendar Subscription”), Outlook or Home Assistant. Each meal is an event — dinner at 18:00 for an hour unless you say otherwise — with the recipe link, cooking time and who’s cooking in the notes. Calendar apps refresh it every hour or so.

Calendar address
https://souscircle.com/api/v1/calendar.ics?key=sck_your_key_here

Options go on the end: &dinner=18:30&lunch=12:15 moves a slot · &allday=1 makes all-day events · &days=42&past=14 sets the range. The address contains the key — use a read-only key here.

curl, Node-RED & scripts

Every call is plain HTTPS with the key in an Authorization: Bearer header (or X-API-Key). Bodies are JSON; a bare text body works for adding items too.

Terminal
# What is on today?
curl -H "Authorization: Bearer sck_your_key_here" https://souscircle.com/api/v1/today

# Add to the grocery list (or "items": ["milk", "2 lb chicken thighs"])
curl -X POST -H "Authorization: Bearer sck_your_key_here" -H "Content-Type: application/json" \
     -d '{"item": "2 lb chicken thighs"}' https://souscircle.com/api/v1/grocery

# Tick it off by name
curl -X POST -H "Authorization: Bearer sck_your_key_here" -H "Content-Type: application/json" \
     -d '{"name": "chicken thighs"}' https://souscircle.com/api/v1/grocery/check

What /today returns

GET /api/v1/today
{
  "ok": true,
  "timezone": "America/Los_Angeles",
  "date": "2026-11-24",
  "weekday": "Tuesday",
  "is_today": true,
  "breakfast": null,
  "lunch": "Chili (leftovers)",
  "snack": null,
  "dinner": "Pork chops with thyme pan sauce + Roasted carrots",
  "meals": [
    {
      "id": 812, "date": "2026-11-24", "slot": "dinner", "slot_label": "Dinner",
      "title": "Pork chops with thyme pan sauce", "recipe_id": 41,
      "url": "https://souscircle.com/recipe.php?id=41", "image_url": "https://…",
      "servings": 4, "total_min": 35, "note": null, "is_leftover": false, "cook": "Sam"
    }
  ],
  "tomorrow": { "date": "2026-11-25", "weekday": "Wednesday", "dinner": "Sheet-pan gnocchi", "…": "…" },
  "next": { "slot": "dinner", "title": "Pork chops with thyme pan sauce", "…": "…" },
  "grocery": { "count": 12, "unchecked": 7 },
  "speech": "Today, lunch is Chili (leftovers) and dinner is Pork chops with thyme pan sauce with Roasted carrots."
}

Endpoints

All under https://souscircle.com/api/v1. Every response is JSON with "ok"; errors add "error" with a readable message.

API v1 endpoints
CallWhat it doesNeeds
GET /today Today’s meals by slot (breakfast, lunch, snack, dinner), tomorrow’s, the next meal, grocery counts and a sentence to speak. ?date= for another day. Any key
GET /meals The plan day by day — this Monday to Sunday, or ?from=&to=, or ?days=7 from today. Any key
POST /meals {"day": "friday", "slot": "dinner", "recipe": "tacos"} — a day as a date, today, tomorrow or a weekday; a recipe from your library by name, or any title. Change the meal plan
DELETE /meals/{id} Take a meal off the plan. Change the meal plan
GET /grocery The list in aisle order, a plain-text copy and a sentence. ?checked=false for only what is left to buy. Any key
POST /grocery {"item": "milk"}, {"items": […]}, {"text": "one\nper\nline"} or a plain-text body. Merges like the app does. Change the grocery list
POST /grocery/check {"name": "milk"} or {"id": 12} — tick it off ("checked": false unticks). Change the grocery list
POST /grocery/remove {"name": "milk"} or {"id": 12} — delete the line. Change the grocery list
PATCH /grocery/{id} {"checked": true} or {"text": "2 gallons milk"}. Change the grocery list
POST /grocery/clear Drop the ticked lines ({"all": true} empties the list). Change the grocery list
GET /pantry What you have at home. Any key
POST /pantry Add — same shapes as the grocery list. Handy with a barcode scanner. Change the pantry
POST /pantry/remove {"name": "flour"} — used it up. Change the pantry
GET /recipes Your library: ?q=, ?tag=, ?course=, ?favorite=true, ?limit=. Any key
GET /recipes/{id} One recipe with ingredients and steps — for a kitchen display. Any key
GET /calendar.ics The plan as a calendar to subscribe to. ?key= instead of a header; ?dinner=18:30 moves a slot, ?allday=1 for all-day events, ?days= / ?past= for the range. Any key
GET / Which key this is, its permissions and timezone — a connection test. Any key

Dates are YYYY-MM-DD in the key’s timezone; add ?tz=Europe/London to any call to use another. Status codes: 401 missing or unknown key · 403 the key lacks that permission · 404 not found · 429 too many requests.

Security & limits