Anyone doing work using ESP8266 and WiFi via HTTP requests?

I have a need to control an ESP8266 via WiFi from Hubitat and respond to an ESP8266 status change.

Maybe there is already some work in that field I where I may glean some code, or info?

I have a WiFi repeater in my shed that works well, but I cannot get Zigbee to reach that far even with repeaters.

I have two needs, one is output from Hubitat, a 2 relay low voltage simple switch. The other is input to Hubitat, 2 contact sensors.

I envision a virtual switch device that when triggered, an app runs that sends an HTTP command to an ESP. Maybe I don’t need the device, the app can simply just send the HTTP request.

The other might be a Maker API that responds to an HTTP post from an ESP and sets a virtual contact sensor.

Thanks, Mark.

I have some that act as simple controllers for some decorations. I use a very simplistic web service hosted on the ESP8266 that provides the status (when queried by a Hubitat driver I wrote) via a .json formatted page (it also provides a basic human-readable page). The webservice also allows someone to send commands to it as simple HTTP Get strings, making it pretty easy to control also. Could be readily adapted to relays and sensors. The ESP8266 code is written for Arduino.

If you are interested, shoot me a message and I can send you links to them (I have not published a project for it).

You could simply use my HubDuino project, probably.

4 Likes

Yes, use Hubduino but replace ESP8266 with ESP32.