Webserver: api
ESPHome webrelay: can I still use a GET URL from Safari/Home Screen on iPhone?
I’m trying to figure out how ESPHome web relay control works now, because I remember that a year ago it was possible to trigger a relay directly with a GET request from the browser.
What I want to do:
Run an ESPHome device as a simple web relay.
Open a URL like /relais/turn-on in Safari on iPhone.
Save that URL to the iPhone Home Screen as a one-tap shortcut.
My question is:
Is this still possible with ESPHome’s current web server setup?
Or has it changed so that relay control now expects POST instead of GET?
If GET still works, what is the correct URL format for a relay/switch?
If not, what is the cleanest way to make a Home Screen shortcut that toggles a relay?
I remember older web relay examples that used direct browser-openable URLs, and that worked nicely with Safari bookmarks. But the newer docs seem to focus more on the web server API and POST endpoints, so I’m not sure what the current recommended approach is.
Would appreciate any real-world examples or working YAML snippets.