[DEPRECATED] Tasmota 7.x/8.x firmware for Hubitat + Tuya, Sonoff and other drivers

That is how I ended up doing it, hope these new drivers work well for everyone.

1 Like

Thanks very much for your work. I have just installed and it's working great. Well done.

EDIT: On the weekend I might cut over my other devices that are running other random versions of community Tasmota drivers to have consistency.

Sounds great! Glad you like them! If you tell me which type of devices they are I can generate more drivers if needed.

Currently I am running Sonoff Basic R3, Sonoff Mini also have a Sonoff Basic R3 Zigbee but I havent installed that as yet.

EDIT: I almost forgot I also use this one for a Tasmota plug I built with an installed / upgraded temp sensor I added. If this could be added i'd cut that over too.

Which module have you set Tasmota to for the Sonoff Basic R3? I have Sonoff Minis so that one I know. The Zigbee-based one would be outside of the scope for these drivers, probably need some special parsing. When I get to rewriting my drivers for all Xiaomi devices I have, I'm sure it would be easy to get that one supported as well, if you find a driver for the Zigbee based one, give me a shout and I'll add it as reference material for my future updates. I intend to have all drivers I use to be created using my own framework, that way I get consistency, adding some extra devices on the way just improves my over all code.

For temperature readings I'm not certain what is being sent since I have no temperature/humidity sensors with Tasmota. If you could run one of my drivers with logging set to "Reports+Status" and post the log, that would help. Make sure you see things in the logs regarding temperature and humidity. Also press the "Refresh" button of the driver. That may generate some additional messages which need decoding. Also need the Template or Module number for this one.

Pretty sure it's this driver that I am using.

It seems the guys are getting buy with the generic zigbee HE driver so maybe that's enough.

Sure I can do that. btw I am using the Tasmota sensor version here so i'd imagine it will require re-packaging with this version too. In relation to the module it's a BME280 sensor see here.

How will you go about this? Do you reflash to 7 minimal then this version? Mine are all on 6.5 I believe.

Yeah that would be the plan, just minimal flash then reload.

Ok, so you have made no changes on the Tasmota device webpage? What I need to know is which module selection and if you've set a Template on the Tasmota webpage. If you have, I can make those part of the driver so that they are set correctly.

Then there is no need for anything special.

ok, will need the Template setting you're using in Tasmota so I get that to be part of the driver.

1 Like

Yes, first 7 minimal if you're already on Tasmota, when going with Tuya convert, flash with 7 Basic first. After Basic you can flash with minimal and finally with the actual Hubitat firmware. Do make sure to use the firmware from the same release together, mismatching/mixing MIGHT cause problems.

Why would you try and flash Tasmota to the Zigbee version. The zigbee version doesn't have an ESP8266 chip. The zigbee based one works with the generic Zigbee switch driver out of the box.

1 Like

Not talking about the firmware here, just the HE drivers. Since they work with the Generic driver, then there is no need to do anything. I have Zigbee devices which do need special drivers, like Aqara curtain motors. When I do get around to releasing Zigbee drivers for devices not working with generic ones, I will create a new thread for those to keep the confusion down...

1 Like

Sonoff Mini - {"NAME":"Sonoff Mini","GPIO":[17,0,0,0,9,0,0,0,21,56,0,0,255],"FLAG":0,"BASE":1}
Sonoff Basic R3 - just using module type Sonoff Basic no other changes
Brilliant plug (tuya) - I am using this template

For the Brilliant plug (tuya) with my temp sensor mod it's similar to the above one I mentioned with the additional I2C SCL and SDA functions to support the BME280 sensor.

Also while I am at it, here is the Brilliant energy monitor plug template details which I use with the driver you updated for me the other day.

I've got my plug flashed with the custom firmware, however the app isn't discovering yet. Do I need to do anything with 'emulation'? Or just populating the hubitat ip / port should do it?

Oh. and also looking for a driver with this template. {"NAME":"Prime","GPIO":[0,0,0,0,57,56,0,0,21,122,0,0,0],"FLAG":0,"BASE":18}

Thanks

I've used my Mini with a different setup, but this one works well, have switched the driver to that.
The Sonoff Basic driver has been updated. Not sure if I really should generate one for Basic and one for Basic R3, they are now identical except in name.

For your Brilliant plug with the BME280 sensor

I've been so caught up with the firmware and the drivers I forgot to mention that currently the auto-discovery feature of the app is broken. It is using some undocumented features of HE to do this, and right now it doesn't work. Will work on fixing that when I find some time.
At the moment the only way is to input the IP of the device into the Tasmota Connect app and add it manually. Once added it can be found in the Device list with all other devices and the settings of the device are done there.
My Generic Wifi Switch driver will work with that template, just paste that template into the Template field of the driver, save Preferences and press Configure. That should do it. If you use a password on your Tasmota device, also add that to the device config. As long as you don't have an exotic and non-standard (ie just a normal home network with a router and no firewalls or other filtering network equipment between HE and your device) network setup, no other settings should be needed.
What kind of device is that "Prime" one? What's the full name of it? Need this for naming the driver I'll generate.

1 Like

This is the same Template as my S120 Plug driver. Mine look the same, except the socket pins are for China.

1 Like

Sorry didn't quite follow that, which driver should I use with this one? I would also need a new Tasmota Sensors .bin as well if I was to bring this one over as it needs the sensors addon.

Sorry, I was interrupted and forgot to finish that sentence, so no wonder you don't understand :stuck_out_tongue:
The driver to use for the debug-log would be the generic-pm-plug one which will be in the repository in a bit, but without the sensor addon the logs will not be complete, so best to handle that first. Set debug to Insanely Verbose and give me the rows which start with "result:".
Ah, if you need the sensors addon I can compile a bin for that, will have to see how large that gets though.
@jchurch I've compiled a sensors-binary, it is on GitHub in the same release. It is UNTESTED. Ie, I have not flashed it to any device. Compilation was successful without errors and size looks ok. Go from minimal to this one and there should be no issues. Please tell me how it goes.

1 Like

All good, I added it via IP and it seems to work. Interestingly enough, setting the template in hubitat makes the tasmota 'forget' its wifi configuration and go back to AP mode after 5 minutes or so.

I wasn't sure whether your generic wifi switch was for a plug, or just a light switch. I ended up using your sonoff s2x driver, and it seemed to work as well.

The prime plug is referenced here: Prime CCRCWFII113PK

Thanks for all your work to this integration.