Well... if we can indeed flash the bulbs to take Tasmota, that's a MUCH preferable solution - it'd get shot of nearly all the oddness in one hit.
On that basis, I think I'll stop paying any more attention to the Tuyapi approach - I'd rather wade into the possibility of extending @ericm's framework to support the new bulb type.
I've got an adapter on order that'll let me run at least one bulb on my desk, rather than having to go down two corridoors and two flights of stairs to get between my PC and the light bulbs, which I suspect will help my productivity considerably. That should arrive on monday, and I'll investigate from there. Pleasingly... I've got 5 light fittings, and 6 bulbs... so I can probably even afford to brick one experimenting
Darn.
The two I have a rock solid.
Some percussive maintenance actually fixed the first one I was having problems (I guess it was hardware).
So that's a plus...
Awesome. Here is a link to the Sonoff-Tasmota git From what I can tell eric modified the firmware from these to work under his sonoff(Connect) app then created a device handler as well.
*** Update *** I was able to flash a tuya based eMylo smart switch OTA. I have it added to Hubitat and working as a Sonoff Basic switch now.
@cwwilson08 I have one that i will be testing today. just got the 1st lightbulb tuya based walmart merkery bulb flashed. Need to figure out which sonoff firmware to use now then I will Flash my powerstrip.
Yeah I only know because I was given them by a Chinese company...
The API seems like it needs significant work to connect to devices even if you have them connected locally.
So it seems secure.
Who knows what they're doing with usage history and any other network snooping they might be doing internally though.
Ok so the Tuya Bulb is running Tasmota but I cant get it to turn off or change color from the web interface. It looks as if it uses the, as of now, FastLED driver and SM16716 or SM16726 protocol. There has been some people working on this but I don't see a firmware that will work as of yet. Anyone?
Did you manage to flash the bulb OTA, or is it a strip-down to get at contacts job (in which case... I'll have to go raid some stuff off my mate at work next week some time for the gubbins necessary).
Secondly... can you get light colour control from the web interface from the bulb if it's running tasmota. I'm not an expert on it... but my guess is that if the web interface can't do colour, then it's a firmware limitation.... but if it CAN, then it's a device driver limitation. I suspect we can do something about the latter.
@JulesT i was able to do it OTA. I have notes i can send you if you have a raspberry pi with raspian stretch loaded. If not there is still ways to do it just not as easy. Its definatly firmware or a setting to control the right IO for RGB. Were probably going to have to reach out and get someone familiar with the tasmota firmware dev interested but now that this can be done ota im sure there will be more interest.
@damon.dinsmore - Yes please on the notes - I'm sure all the info is out on the interwebs somewhere, but I'm definitely not above somebody else spoon-feeding it to me
An R-pi with raspian is no particular problem - I've got two of them sat on my desk right now (more a reflection of the state of my desk, if I'm honest - I don't think I've powered either of them up in months). Equally, if the device itself doesn't absolutely require it's own wireless adapter, and can just use the local network it's currently attached to, then linux virtuals are all over the place.
If I understand the rest of your note correctly, then our challenge is then to get either the right settings in the firmware config, or to see if it can be fixed/extended. I think that's something we can play with, at the very least.
My lamp adapter is apparently arriving monday, so I should be able to get a bulb where I can at least see it, which should help immensely.
OK. All good fun. And if we do it right... there won't be a whole bunch of code that I'll have to subsequently look after, which I always consider a win.
*** Device must be setup in Smartlife or similar for OTA to work ***
*** Shut Down any app talking to the TUYA devices ***
{Find The Ip of the Device you want to do OTA Firmware upload and Replace 192.168.1.xxx}
{The -s is the wifi network CASE SENSITIVE and -p is the password}
@cwwilson08 I tried to OTA flash the power strip and mine did not work. I have the ChiHope branded one. You may have better luck. I was thinking that a driver would need to be created for that device as the current one is based off the tuyAPI
@cwwilson08 that's right. Well, I will see if I cannot get it to flash OTA then I will see if I can non-destructively open this one up and flash it. What branded one do you have?