Tasmota: Open-source firmware for ESP devices
tasmota.github.io
tasmota.github.io
It seems like more native hardware is slowly coming out for this stuff, just not as fast as one might like, and none of it has much support for device-to-device interactions.
There's nothing except a full computer or Pi class device that can really discover and control this stuff, a handheld remote with months of battery life can't build a nice UI automatically quite yet, even though the hardware is there now(Cardputer, T-deck, etc)
import network,socket,time
sta_if = network.WLAN(network.STA_IF)
if not sta_if.isconnected():
sta_if.active(True)
sta_if.connect('wifi', 'password')
while not sta_if.isconnected(): pass
from machine import Pin
relayON =Pin(5, Pin.OUT)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 80))
s.listen(5)
while True:
s.settimeout(0.5)
try:
conn, addr = s.accept()
request = conn.recv(1024)
request = str(request)
if request.find('/ON') == 6:
relayON.value(1)
if request.find('/OFF') == 6:
relayON.value(0)
conn.close()
except: passI just decided to go all in on Zigbee devices instead (except for the Shelly Plus 1's I have).