Skip to content

tilmanjusten/baendeltoggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bändeltoggle

Toggle lights with a Bändel. Requires Connect Alexa to RC Switches.

Screenshot Webinterface

Screenshot Webinterface

Features

  • Old school fashioned light toggle
  • Webinterface
  • API:
    • Switch device via GET requests
    • Get device state via GET request
  • Over the air updates
  • Website resources on SPIFFS

Development

Requires assembled hardware (see below) and PlatformIO.

  1. Create src/secret.h from src/secrects.template.h
  2. Set SSID and password of your WLAN and over the air hostname
  3. Update URL_HOST depending on your infrastructure
  4. First deploy only:
    1. Comment out upload_port and upload_port in platform.io
    2. Plug device to FTDI adapter
  5. Flash device via OTA update/FTDI adapter
  6. Upload web resources to SPIFFS

Dependencies

Required libraries:

  • ArduinoOTA
  • SHA-1 Hash
  • ESP Async WebServer

Deployment

See (development section above)[#Development].

Hardware

Parts

  • ESP8266 (ESP-01)
  • Voltage Regulator (AMS1117)
  • USB Micro Plug
  • Pull switch
  • 220Ω Resistor
  • Wires
  • Plastic case
  • USB cable (USB A to micro)
  • Power supply (1A)

Wiring

See Fritzing Sketch.

Fritzing Sketch