All Projects → ArnieX → swifitch-software

ArnieX / swifitch-software

Licence: MIT license
Software for SWIFITCH HW

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to swifitch-software

Esp Mqtt Json Multisensor
(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
Stars: ✭ 323 (+2591.67%)
Mutual labels:  mqtt, esp8266, nodemcu, wifi
Swifitch
Swifitch is ESP8266 based relay board that could be used to turn any light or any wall socket into smart one!
Stars: ✭ 117 (+875%)
Mutual labels:  esp8266, nodemcu, relay, wifi
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+20008.33%)
Mutual labels:  mqtt, esp8266, nodemcu, platformio
Esphelper
A library to make using WiFi & MQTT on the ESP8266 easy.
Stars: ✭ 310 (+2483.33%)
Mutual labels:  mqtt, esp8266, wifi
Cicada-FW
IoT Communications Module for Energy Access. An easy way to get production ready, bi-directional communications for your IoT embedded device. Proiect supported by the EnAccess Foundation - https://enaccess.org
Stars: ✭ 12 (+0%)
Mutual labels:  mqtt, esp8266, wifi
SuperLEDstrip
No description or website provided.
Stars: ✭ 13 (+8.33%)
Mutual labels:  mqtt, esp8266, platformio
Heatpump
Arduino library to control Mitsubishi Heat Pumps via connector cn105
Stars: ✭ 327 (+2625%)
Mutual labels:  mqtt, esp8266, wifi
Esp Mqtt Json Digital Leds
(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
Stars: ✭ 503 (+4091.67%)
Mutual labels:  mqtt, esp8266, nodemcu
Mqtt via esp01
TCP/UDP Applicaton for UNO/MEGA/STM32 using ESP8266's AT firmware.
Stars: ✭ 23 (+91.67%)
Mutual labels:  mqtt, esp8266, wifi
Awtrix1.0
(Outdated) Smart RGB Matrix Clock
Stars: ✭ 99 (+725%)
Mutual labels:  mqtt, esp8266, wifi
Esp8266 aliyun mqtt app
基于ESP8266官方SDK快速接入阿里云物联网平台
Stars: ✭ 81 (+575%)
Mutual labels:  mqtt, esp8266, wifi
Blinker Doc
blinker中文文档
Stars: ✭ 139 (+1058.33%)
Mutual labels:  mqtt, esp8266, wifi
Esp8266 wifi captive portal
🔑 WiFi captive portal for ESP8266 for phishing WiFi passwords
Stars: ✭ 165 (+1275%)
Mutual labels:  esp8266, nodemcu, wifi
Esphome
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Stars: ✭ 4,324 (+35933.33%)
Mutual labels:  mqtt, esp8266, platformio
Esp8266
ESP8266 NodeMCU Workshop
Stars: ✭ 109 (+808.33%)
Mutual labels:  esp8266, nodemcu, platformio
Openwifidetectoresp8266
MASLOW: an Open WiFi Detector with ESP8266
Stars: ✭ 15 (+25%)
Mutual labels:  esp8266, nodemcu, wifi
zevoicemask
An open source DIY implemetation of a face mask with voice visuals and animations.
Stars: ✭ 13 (+8.33%)
Mutual labels:  esp8266, nodemcu, platformio
Esp8266 Wifi Relay
simple sketch of using ESP8266WebServer to switch relays on GPIO pins. It serves a simple website with toggle buttons for each relay
Stars: ✭ 13 (+8.33%)
Mutual labels:  esp8266, relay, wifi
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+9025%)
Mutual labels:  mqtt, esp8266, wifi
Espmqttclient
Wifi and MQTT handling for ESP8266 and ESP32
Stars: ✭ 169 (+1308.33%)
Mutual labels:  mqtt, esp8266, wifi

Welcome to SWIFITCH SW repository. If you didn't come here through HW repository, and want to know more about SWIFITCH go have a look.

Dependencies

  • Some MQTT server (If you have Raspberry Pi use Mosquitto) - this is now optional

  • Optional is Homebridge with MQTT Plugin to control the relay from iDevices

  • Optional that will make your life easier with IoT is Node-RED, plus you can get decent dashboard with Node-RED Dashboard plugin

  • PlatformIO best Arduino IDE available, hacked from ATOM text editor

  • WiFi Manager this library is included and quite a bit altered for Swifitch graphics etc.

  • PubSubClient (MQTT)

  • ESP8266 WiFi library

Install using PlatformIO Library Manager

pio lib -g install PubSubClient
pio lib -g install ESP8266wifi
pio lib -g install ESPAsyncTCP

Getting started

  • Flash the software to your freshly soldered Swifitch
  • Connect to the SWIFITCH_XXXXXXX WiFi
  • Click Configure Swifitch
  • Select your WiFi or enter SSID manually

Flashing

How to flash with Arduino UNO

  • Remove the chip
  • Connect your Arduino with Swifitch with dupont wires according to this mapping:
Swifitch Arduino
RX RX
TX TX
3v3 3v3
D3 GND
GND GND

Arduino RESET -> Arduino GND

  • Flash with PlatformIO

Configuration screenshots

Configuration

After initial configuration of Wi-Fi, go to your browser and open IP address that was assigned to swifitch, followed by /config. You should be asked for login which is admin:swifitch by default. Cannot be changed right now as it is hardcoded.

Within this configuration portal make sure you have set at least hostname, it will make it easier for your to identify and access this module in future using hostname.local URL.

Enabling other functions is merely up to you.

MQTT

Send command through your MQTT server as such:

TOPIC DESCRIPTION
home/room/swifitch Send 1/0 to turn ON/OFF
home/room/swifitch/getstatus Send anything to get current relay pin status (digitalRead) on topic home/room/swifitch/status
home/pingall Send whatever and you get response at topic home/pingallresponse

Receive back from your device:

TOPIC DESCRIPTION
home/room/swifitch/devicestatus Will contain device status eg. connected
home/pingallresponse This will contain status after you send pingall request and all devices should respond
home/room/swifitch/status This listens for status change to set correct status eg. in Homebridge

HTTP API

URL DESCRIPTION
/ Check webserver status
/toggle Change relay state, return JSON response
/info JSON response with relay status and other device info
/mqtt JSON response with MQTT status and settings

Using with Amazon Echo

Swifitch will be automatically discovered by Amazon Echo since it fakes being a WeMo device and it doesn't require any server/homebridge setup.

Not working with Gen2 Echo devices, waiting for fix.

Physical switch

To control swifitch with physical switch, just connect your existing HW switch to swifitch according to scheme.

DO NOT LEAVE ANY HIGH VOLTAGE WIRES CONNECTED TO THE SWITCH

To enable this function, go to webconfig and enable Physical switch option and save.

Credits

Thanks goes to Alexander Luberg for pointing out that there is no need for external pulldown or pullup resistor for physical switch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].