โ† Smart Hub|
๐Ÿ“–

Developer Docs

Setup & Connection Guides

Featured5 Steps

โšก ESP32 Quick Connect Guide

Connect your ESP32 to the Smart Home Hub in Chrome, control lights & fans with voice commands โ€” works offline & online.

๐Ÿ“– Read Full Guide
1
๐Ÿ’พ

Flash Firmware

Upload Arduino sketch with your WiFi credentials and pin mapping

2
๐ŸŒ

Open Hub in Chrome

Go to /smart-home-hub โ†’ Connections tab

3
โšก

Auto-Find ESP32

Click โšก Auto-Find โ€” detects via USB or network scan

4
๐ŸŽ™๏ธ

Voice Control

Click ๐ŸŽค โ†’ say 'Lights on', 'Fan off', 'Good night'

5
โœ…

Verify

Toggle devices, check energy tab, done!

๐ŸŽ™๏ธ Voice Commands (Offline + Online)

โ€œLights onโ€All lights ON
โ€œLights offโ€All lights OFF
โ€œFan onโ€All fans ON
โ€œFan offโ€All fans OFF
โ€œAC onโ€Turn on AC
โ€œAll offโ€Everything OFF
โ€œGood morningโ€Morning scene
โ€œGood nightโ€Night scene
โ€œMovie modeโ€Movie scene
โ€œDim lightsโ€Lights to 30%

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    WebSocket (ws://IP:81/ws)    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Chrome      โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚  ESP32   โ”‚
โ”‚  Dashboard   โ”‚    JSON commands + events       โ”‚  DevKit  โ”‚
โ”‚              โ”‚                                 โ”‚          โ”‚
โ”‚  Voice โ”€โ”€โ–บ   โ”‚    SpeechRecognition (offline)  โ”‚  Relay โ”€โ”€โ–บ Lights
โ”‚  Buttons โ”€โ”€โ–บ โ”‚                                 โ”‚  Relay โ”€โ”€โ–บ Fan
โ”‚  Scenes โ”€โ”€โ–บ  โ”‚                                 โ”‚  GPIO โ”€โ”€โ–บ Lock
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
No cloud needed~10ms LAN latencyWorks offline

๐ŸŒ Offline vs Online โ€” How It Works

Offline (LAN Only)

  • โœ“ ESP32 + Mac on same WiFi, no internet
  • โœ“ Voice via Chrome SpeechRecognition (local)
  • โœ“ WebSocket direct to ESP32, ~10ms latency
  • โœ“ Dashboard runs on localhost, fully offline

Online (Internet Available)

  • โœ“ Same LAN control + cloud speech assist
  • โœ“ Optional MQTT cloud relay for remote access
  • โœ“ Alexa / Google Home integrations active
  • โœ“ OTA firmware updates for ESP32