{"id":23629688,"url":"https://github.com/matthias-bs/wifipowersocketcontrol","last_synced_at":"2026-04-28T12:05:05.832Z","repository":{"id":269260539,"uuid":"906879817","full_name":"matthias-bs/WiFiPowerSocketControl","owner":"matthias-bs","description":"Control a WiFi power socket switch from an ESP32 used as access point","archived":false,"fork":false,"pushed_at":"2025-01-07T21:17:32.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T20:07:44.081Z","etag":null,"topics":["esp32","esp32-arduino","http-client","http-requests","power-switch","wifi-access-point"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthias-bs.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-22T07:21:12.000Z","updated_at":"2024-12-23T15:28:33.000Z","dependencies_parsed_at":"2024-12-22T08:30:13.436Z","dependency_job_id":"2eafdbf1-a719-48a3-8d09-054f2fe39adb","html_url":"https://github.com/matthias-bs/WiFiPowerSocketControl","commit_stats":null,"previous_names":["matthias-bs/wifipowersocketcontrol"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matthias-bs/WiFiPowerSocketControl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FWiFiPowerSocketControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FWiFiPowerSocketControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FWiFiPowerSocketControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FWiFiPowerSocketControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthias-bs","download_url":"https://codeload.github.com/matthias-bs/WiFiPowerSocketControl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FWiFiPowerSocketControl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["esp32","esp32-arduino","http-client","http-requests","power-switch","wifi-access-point"],"created_at":"2024-12-28T01:16:58.776Z","updated_at":"2026-04-28T12:05:05.802Z","avatar_url":"https://github.com/matthias-bs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WiFiPowerSocketControl\n\n[![CI](https://github.com/matthias-bs/WiFiPowerSocketControl/actions/workflows/CI.yml/badge.svg)](https://github.com/matthias-bs/BresserWeatherSensorReceiver/actions/workflows/CI.yml)[![GitHub release](https://img.shields.io/github/release/matthias-bs/WiFiPowerSocketControl?maxAge=3600)](https://github.com/matthias-bs/WiFiPowerSocketControl/releases)[![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/matthias-bs/WiFiPowerSocketControl/blob/main/LICENSE)\n\n\n\nControl a WiFi power socket switch from an ESP32 used as access point\n\nThis example demonstrates how to connect a WiFi power socket switch to an ESP32 working\nas a WiFi access point and as HTTP client. A button connected to the ESP32 toggles the\nswitch state variable, which is indicated by a LED connected to the ESP32. When the button is\npressed, the ESP32 sends an HTTP request to the power socket switch to change its state\naccordingly.\n\nThis should work with any power socket switch running [Tasmota](https://tasmota.github.io/docs/Commands/#with-web-requests).\nTested with [Delock 11826](https://www.delock.com/produkt/11826/merkmale.html).\n\nYou can implement your own logic to control the switch, e.g. based on a sensor value.\n\nMultiple WiFi devices can connect to the ESP32's access point - this allows you to extend\nthis sketch to control multiple power socket switches.\n\n\u003e [!WARNING]  \n\u003e Assess the risks of controlling a power switch via a potentially unreliable and insecure WiFi connection.\n\u003e Read the [MIT License](LICENSE).\n\n## Usage\n\n1. The ESP32 provides a WiFi access point (SoftAP)\n2. Configure your WiFi power socket switch to connect to the ESP32's access point\n   (see SSID and password in the sketch)\n3. Configure the URLs for the power socket switch in the sketch\n4. If available, use the ESP32 dev board's user button, otherwise connect a button to a GPIO pin\n5. If available, use the ESP32 dev board's built-in LED, otherwise connect a LED to a GPIO pin\n6. Wait until the power socket switch has connected to the access point\n7. When the button is pressed, the switch state variable and the LED state are toggled\n   and an HTTP request is sent to the power socket switch to turn it on or off\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthias-bs%2Fwifipowersocketcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthias-bs%2Fwifipowersocketcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthias-bs%2Fwifipowersocketcontrol/lists"}