Skip to main content

Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking

Workflow preview

Workflow preview
100%
Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking preview
Open on n8n.io

1. Workflow Overview

Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking Receive instant push notifications on your phone and voice announcements on your Google Home every time someone orders ...

Best for

  • Miscellaneous automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.datatable, n8n-nodes-base.httprequest, n8n-nodes-base.homeassistant

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Paolo Ronco.

Original n8n.io source

1.1 Workflow description

Title
Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking
Workflow name
Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking

Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking

Receive instant push notifications on your phone and voice announcements on your Google Home every time someone orders from your intranet menu β€” with cumulative BAC tracking per person.

> Full documentation & step-by-step setup guides: > πŸ“– Notion Documentation > πŸ’» GitHub Repository


What This Workflow Does

Every time a customer submits an order from your intranet menu website, this workflow:

  1. Receives the order via Webhook
  2. Logs it to an n8n DataTable and reads all orders for that person today
  3. Calculates the cumulative BAC (Blood Alcohol Content) using the Widmark formula
  4. Sends a push notification via ntfy (with order history + BAC level)
  5. Triggers a Home Assistant script β†’ voice announcement on Google Home

No cloud TTS fees. No external AI services. Fully self-hosted.


Flow

Webhook β†’ Prepare Order β†’ DataTable (INSERT) β†’ Read Today's Orders β†’ BAC Calculator β†’ ntfy Push Notification β†’ Home Assistant TTS

Example Output

Push notification (ntfy app):

πŸ›Ž Order from Mario

Mario: 1x Pizza, 2x Beer 33cl
πŸ• 12:30
πŸ“‹ Ordered before:
 - 1x Prosecco πŸ• 11:45
🍸 BAC ~0.54 g/L πŸ”΄

Google Home voice announcement:

Mario has ordered Pizza

Prerequisites

Before importing this workflow, you need:

  • A running n8n instance (self-hosted or cloud) reachable from the internet
  • Home Assistant on your local network (e.g. homeassistant.local:8123)
  • At least one Google Home (or Chromecast-capable) device added to HA via the Google Cast integration
  • ntfy deployed via Docker (self-hosted push notification server)
  • A public HTTPS URL for ntfy β€” recommended via Cloudflare Tunnel (no open ports needed)
  • An Android or iOS device with the ntfy app installed

Credentials Required

Credential Used For
Home Assistant Calling the annuncia_ordine TTS script
Header Auth (Authorization: Bearer <ntfy_token>) Sending authenticated requests to ntfy

n8n DataTable Schema

Create a DataTable in n8n β†’ Data β†’ Tables with these columns:

Column Type Description
item Text Full order string (e.g. "2x Negroni, 1x Messina 33cl")
person Text Normalised person name
alcol_grammi Number Total grams of alcohol for this order
data Text ISO date (YYYY-MM-DD)
orario Text Time string from the order

Copy the DataTable ID and paste it into the DataTable nodes inside the workflow.


Webhook Payload

Your menu website must POST this JSON to the Webhook Production URL:

{
 "name": "Mario",
 "time": "26/03/2026, 12:30:00",
 "order": [
 { "section": "Food", "name": "Pizza", "details": "", "quantity": 1 },
 { "section": "Drinks", "name": "Beer", "details": "33cl", "quantity": 2 }
 ],
 "total": 3
}

Setup Steps

1. Deploy ntfy (self-hosted push notifications)

Add ntfy to your docker-compose.yml:

ntfy:
 image: binwiederhier/ntfy
 command: serve
 volumes:
 - ./ntfy/config:/etc/ntfy
 - ./ntfy/data:/var/lib/ntfy
 ports:
 - "8095:80"

In server.yml, set auth-default-access: deny-all.

Then create an admin user and generate a token:

docker exec -e NTFY_PASSWORD="your_password" ntfy ntfy user add --role=admin admin
docker exec ntfy ntfy token add admin

2. Expose ntfy over HTTPS (Cloudflare Tunnel)

Add an ingress rule to your Cloudflare Tunnel config:

- hostname: ntfy.YOUR_DOMAIN.com
 service: http://localhost:8095

3. Configure Home Assistant TTS

In HA, go to Settings β†’ Automations & Scenes β†’ Scripts β†’ Add script β†’ Edit in YAML and paste:

alias: annuncia_ordine
sequence:
 - action: tts.speak
 target:
 entity_id: tts.google_translate_en_com
 data:
 media_player_entity_id: media_player.YOUR_GOOGLE_HOME_ENTITY
 message: "{{ message }}"
 language: it
mode: single

> Replace media_player.YOUR_GOOGLE_HOME_ENTITY with your actual entity ID.

Then go to your HA profile β†’ Security β†’ Long-lived access tokens β†’ create and copy a token.

4. Import and configure the workflow

  1. Import the workflow JSON into n8n

  2. Create the DataTable (columns listed above) β€” copy its ID

  3. Create the Header Auth credential for ntfy:

  • Header Name: Authorization
  • Header Value: Bearer YOUR_NTFY_TOKEN
  1. Create the Home Assistant credential:
  • Host: http://homeassistant.local:8123
  • Access Token: your HA long-lived token
  1. In the ntfy notification node, replace YOUR_TOPIC in the URL

  2. In the Home Assistant TTS node, set the message attribute expression:

={{ $('Webhook').item.json.body.nome }} has ordered {{ $('Webhook').item.json.body.ordine[0].nome }}
  1. Activate the workflow and copy the Webhook Production URL

5. Configure your menu website

Set the webhook URL in your menu site config:

// menu-data.js
"orderWebhook": "https://YOUR_N8N_DOMAIN/webhook/menu"

BAC Calculation (Widmark Formula)

BAC [g/L] = total_alcohol_grams_today / (70 Γ— 0.68)

Assumes ~70 kg body weight. Italian legal driving limit: 0.5 g/L

Emoji Level BAC
⬜ None 0 g/L
🟒 Low < 0.2 g/L
🟑 Warning 0.2 – 0.5 g/L
πŸ”΄ Over limit > 0.5 g/L

BAC is cumulative per day per person and resets automatically the next day.


Customization

What How
Change the TTS message Edit the message expression in the HA TTS node
Announce all ordered items Use $json.body.ordine.map(i =&gt; i.quantita + ' ' + i.nome).join(', ')
Change TTS language Edit language in the annuncia_ordine HA script
Announce on multiple Google Home devices Add multiple media_player_entity_id entries to the HA script
Disable TTS (keep only push notification) Remove or deactivate the Home Assistant TTS node

Security

Layer Mechanism
Transport (ntfy) HTTPS via Cloudflare Tunnel
ntfy access auth-default-access: deny-all β€” no anonymous reads
n8n β†’ ntfy Dedicated Bearer token (revokable, no expiry)
n8n β†’ Home Assistant Long-lived access token
Mobile app Username/password on the ntfy server

Documentation & Source

πŸ“– Full documentation Notion β€” step-by-step setup guides
πŸ’» GitHub Repository paoloronco/n8n-templates

Related Resources

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - When Order Received

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 6 - Calculate Alcohol and Format Order

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Log Order to Database

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 8 - Read Today's Orders

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 9 - Calculate Cumulative BAC

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Send Ntfy Notification

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 11 - Announce Order with Home Assistant

Type / Role
n8n-nodes-base.homeAssistant - homeAssistant
Config choices
Version 1

3. Summary Table

Workflow Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking
Complexity intermediate
Nodes 11
Categories Miscellaneous
Author Paolo Ronco
Published 30 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14487/14487.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking do?

Notify on menu orders via ntfy and Home Assistant TTS with daily BAC tracking Receive instant push notifications on your phone and voice announcements on your Google Home every time someone orders ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Miscellaneous use case.