Content: 02081.zip (39.88 KB)
Uploaded: 14.01.2026

Positive responses: 0
Negative responses: 0

Sold: 0
Refunds: 0

$7
# Control GPIO via webhook and MQTT: toggle relays or lights from a web interface

This workflow enables remote control of physical devices connected to a microcontroller (e.g., ESP32) using a simple web interface. Commands are sent via an HTTP webhook, processed in n8n, and delivered over MQTT to toggle GPIO pins. Ideal for smart home prototypes, lab experiments, and standalone IoT solutions.

## Who it´s for
- IoT developers needing GPIO control via web interfaces without backend coding.
- Engineers automating home electronics using MQTT.
- Educators and students testing IoT projects with n8n and ESP32.

## What the automation does
- A button press on a web page triggers an HTTP POST request to a webhook.
- n8n processes the incoming payload (e.g., ´on´ or ´off´).
- The system publishes a message to a predefined MQTT topic.
- A microcontroller (ESP32) subscribed to the topic changes its GPIO state accordingly.
- Example: turning on a relay, LED, or smart plug.

## What´s included
- Ready-to-use n8n workflow.
- Logic for handling HTTP webhooks and generating MQTT messages.
- Integrations with Webhook, MQTT Broker, and compatible microcontrollers (ESP32).
- Basic text instructions for deployment and customization.

## Requirements for setup
- Access to an n8n instance (self-hosted or cloud).
- Configured MQTT broker (e.g., Mosquitto, HiveMQ, CloudMQTT).
- Microcontroller (ESP32) connected to the network and set up to receive MQTT commands.
- Simple web interface capable of sending POST requests to the webhook.

## Benefits and outcomes
- Remote device control without deploying a dedicated server.
- Fast prototyping of IoT systems using n8n as middleware.
- Minimal backend development required.
- Scalable: easily extend to multiple devices and commands.
- Supports educational and DIY electronics projects.

## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet