Earlier quoted context omitted.
There's a fork of ESPHome called LibreTiny that runs on some of the more recent Tuya devices, but it requires flashing it using a serial adapter and soldering to various pads unless you have a jig to do it. I just decided to go all in on Zigbee devices instead (except for the Shelly Plus 1's I have).
It's built-in to ESPHome now, actually!
Tasmota: Open-source firmware for ESP devices
11–17 of 17 posts
Re: Tasmota: Open-source firmware for ESP devices
#12 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: passRe: Tasmota: Open-source firmware for ESP devices
#13A few years ago you could flash cheap tuya devices with this tasmota firmware, so you could add it to your homeassistant with wifi. Nk cloud. Later tuya devices had upgraded hardware which made it hard to convert. Anybody knows if things have changed?
tuya-cloudcutter has entered the chat. https://github.com/tuya-cloudcutter/tuya-cloudcutter
Re: Tasmota: Open-source firmware for ESP devices
#14A few years ago you could flash cheap tuya devices with this tasmota firmware, so you could add it to your homeassistant with wifi. Nk cloud. Later tuya devices had upgraded hardware which made it hard to convert. Anybody knows if things have changed?
There's a fork of ESPHome called LibreTiny that runs on some of the more recent Tuya devices, but it requires flashing it using a serial adapter and soldering to various pads unless you have a jig to do it. I just decided to go all in on Zigbee devices instead (except for the Shelly Plus 1's I have).
Re: Tasmota: Open-source firmware for ESP devices
#15Just for fun. What is the shortest micropython server for ON/OFF-type socket? Have not tested this yet: 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…
Re: Tasmota: Open-source firmware for ESP devices
#16Just for fun. What is the shortest micropython server for ON/OFF-type socket? Have not tested this yet: 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…
Is there a Tasmota version now that includes a MicroPython interpreter?
Re: Tasmota: Open-source firmware for ESP devices
#17Earlier quoted context omitted.
Is there a Tasmota version now that includes a MicroPython interpreter?
The point is that you don't much need these readymade Tasmotas and whatevers. :-)