p.kaczmarek2 wrote: I am not sure what is the backstory behing the "Relay_n" here, but I'd suggest using "Relay", with no "n" (negation, inversion).
Yes, that did it. Would be interesting to know why different configurations work for the same device, but I just saw
@boozeman's post #153 where he mentions Rel as well.
Nevertheless I'm happy everything works as expected now. Thanx again!
Added after 1 [hours] 1 [minutes]: ferbulous wrote: pepesuriano wrote: Hello, I have a tuya smart plug which I couldn't flash via uart because some electrical thing is preventing the program to flash it. Is still uart the only way to flash it or there are some new ways to flash it?
Use tuya-cloudcutter to flash via ota
Just need to get the tuya firmware version first
@bogran had success flashing openbk on his plug
Yeah, I'd definitely go for the ota. Works great once you get all the details correct.
Added after 20 [minutes]:I noticed a strange behaviour when using the APIs, and it differs from Tasmota which behaves correctly.
For example:
1. Check the status
ip_address/cm?cmnd=Power%20Status => returns e.g. {"POWER":"ON"}
2. Toggle power either by Power%20Toggle or setting it explicitly
ip_address/cm?cmnd=Power%20Off => returns "OFF"
3. Check the status again
ip_address/cm?cmnd=Power%20Status => now strangely returns "ON", so it actually also toggles the Power, instead of just showing the actual status which was OFF
4. Check the status again
ip_address/cm?cmnd=Power%20Status => returns "ON", i.e. this time it does not toggle the Power
Any ideas?