{"id":15374143,"url":"https://github.com/io-developer/esp8266-mqtt-switch","last_synced_at":"2026-04-10T17:05:08.205Z","repository":{"id":79581155,"uuid":"586892581","full_name":"io-developer/esp8266-mqtt-switch","owner":"io-developer","description":"IoT mqtt switch developed for ESP8266 chips. Based on Espressif SDK","archived":false,"fork":false,"pushed_at":"2023-01-09T14:01:10.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T00:27:24.414Z","etag":null,"topics":["arduino","esp","esp32","esp8266","espressif","iot","mqtt","switch"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/io-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-09T13:33:01.000Z","updated_at":"2025-01-23T07:23:54.000Z","dependencies_parsed_at":"2023-05-12T14:15:07.859Z","dependency_job_id":null,"html_url":"https://github.com/io-developer/esp8266-mqtt-switch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/io-developer%2Fesp8266-mqtt-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/io-developer%2Fesp8266-mqtt-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/io-developer%2Fesp8266-mqtt-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/io-developer%2Fesp8266-mqtt-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/io-developer","download_url":"https://codeload.github.com/io-developer/esp8266-mqtt-switch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931826,"owners_count":20695961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","esp","esp32","esp8266","espressif","iot","mqtt","switch"],"created_at":"2024-10-01T13:57:24.595Z","updated_at":"2025-12-30T23:22:13.086Z","avatar_url":"https://github.com/io-developer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP MQTT Switch\nConfigurable firmware for IoT switch based on ESP8266 chip (and maybe ESP32). Using Espressif SDK and MQTT protocol for messaging.\n\n### Install\n* Prepare toolchain following the official guide - https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.html\n* Cd to project dir\n* Run `make all`\n* Plug in your ESP chip to serial port and flash `make flash`\n* Run `make monitor` (turn off/on) to watch live log\n\n### Config\n* To put switch to configuration mode - quick turn off/on chip 3+ times. You should see slowly blinking builtin LED for 1 sec every second.\n* Discover WiFi. Find 'esp-XXXXXX' access point and connect with password `esp_admin` (`/main/app_wifi.h  APP_WIFI_DEFAULT_AP_PASS`)\n* To request current WiFi config:\n```\ncurl -X GET http://192.168.4.1/api/wifi/config\n```\n* To update WiFi config. Example:\n```\ncurl -X POST http://192.168.4.1/api/wifi/config --data '{\"ssid\": \"yourssid\", \"password\": \"yourpass\"}'\n```\n* To request current MQTT config:\n```\ncurl -X GET http://192.168.4.1/api/mqtt/config\n```\n* To update MQTT config. Example:\n```\ncurl -X POST http://192.168.4.1/api/mqtt/config --data '{\"uri\": \"mqtt://your.mqtt.host\",  \"username\": \"mqtt\", \"password\": \"yourpass\",  \"topic_forceon\": {\"path\": \"home/ups/state/onbattery\"}}'\n```\n* Restart:\n```\ncurl -X POST http://192.168.4.1/api/restart\n```\n\n### API\nDiscover api endpoints \u0026 sources for more details here: /main/app_api*.c","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fio-developer%2Fesp8266-mqtt-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fio-developer%2Fesp8266-mqtt-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fio-developer%2Fesp8266-mqtt-switch/lists"}