[Release] Tasmota Sonoff Hubitat Driver & Device Support

You lost me on the password. Is this the password for the web UI to the device, or something else? I have set a password for accessing the web ui, so unsure why that would be it. Is there another password that can be set for the device itself, and how would that be enabled?

I've played with the preferences of the device to set password, but unclear if that is where I need to start.

If you set a password for the webui on the Tasmota, you need to put the password in the hubitat preferences for the device. You also need to get the latest driver from github.

So apparently the tasmota RPC code that you shared is causing issues on my hub. I have 6 of these devices and I guess they are killing the Lan Service. Do you had any updates or should I try one of the other drivers for generic single switch?

Thank you for the update. I looked at your hub's error log and the errors before your reboot yesterday morning came from the Lan Service. Looks like your hub got disconnected and then a custom code was trying throwing this error: Unknown HubAction: 8408

Nope... Haven't had that problem on my hub. Haven't seen any errors. That's the only info you have? Was this driver the only custom code that you have? The thing is, unless you are issuing a command to the device, the driver just sits there waiting for the Sonoff. It doesn't have to poll it because the Sonoff should report in on port 39501 when it changes, that's what the driver is keyed to. So, unless you were sending a command at the same time you were rebooting your hub, I can't see what in this driver would be causing that. But if support can be more helpful or you find out any more info , please let me know.

You're right.. too quick to point blame. Apologies; assumed that because I started having issues once I added more switches. I'm going through everything and turning on debug to try and narrow down. It's either this (which I doubt now), HubDuino Ethernet, or TP Link as those are the only ones doing HubAction calls.

Updated drivers for TP Link and HubDuino. Also lowered RSSI reporting for Hubduino and reduced the cloud refresh rate to once every 30 minutes (thought about disabling it but, we'll see if this helps). Worst case, I get my spare Hubitat out and move Lan devices to it...

1 Like

@jchurch Moving this over to the Tasmota thread. I've updated the driver for a fix on the button parsing. After updating make sure to go into the device and hit "Save Preferences".

Like I've mentioned, the Bridge could use a lot of work since it is an extremely capable device. My thought was to have the option to create different child devices in the preferences (motion, contact, smoke alarm, etc.). Right now it is only supporting button events.

I don't have time to dedicate to it so it would be nice if someone else could work on it.

1 Like

Thank you mate. I will "test" it out after work and let you know how I get on. I really do appreciate your work.

I wish I was a developer that was capable of doing that otherwise I would most definitely take that on but that would be outside my current skill set. I hope someone with the right skills will give it a shot though because it's a pretty powerful tiny device.

Is any one here having issues on the dashboard with the Sonoff Smart Switch? Mine show the status "on" or "off" (although the symbol "?") properly, I can command thru dashboard to turn it "off", but not turn it "on"...
If I uses the Device List, it can be commanded in both state on/off

Confirmed the button's are now working @ericm.

Anyways fingers and toes crossed that someone intends to work on this in the future as it would make an excellent bridge for really cheap yet reliable motion and contact sensors.

Yeah, I agree. I have tested it with some 433Mhz motion and contact sensors. Of course, the current code is sending button events, but it does work. The main problem I have seen is that the contact sensor / motion sensor that I have only send "open / active" reports. They do not report when the contact closes or motion stops. The driver can have a "timeout" put into it to simulate the "close / inactive" report, but I prefer the other way. Seems like a lot of the 433Mhz sensors work this way.

1 Like

All today's morning i was flashing sonoff s31 and have 2 issues.....:
1 new your tasmota firmware not installing.. All the time errors.. But that's fine for me... I had old one downloaded a few months ago...
2 i don't see power meter info any more in s31 driver... Se attachment



Have you made sure to fill out the Hubitat settings on device itself. You will need to make sure your hub ip address and port are there and correct.

spent all morning...checked everything

The Device network Id should be the MAC address without any port number. So, in your case the DNI should be:

68C63ACD8278

I'm not sure how it ended up in the other state. Did you use the connect app to add it?

Added manually through connect app.. Bc was waiting 15min. And connect app automatic didn't find...Did you find out why your new tasmota firmware doesn't work?

spent whole day long and nothing, installed couple times pow firmware from sonoff connect ... then original 6.6 tasmota... and endless...
but not showing 000000 in driver good step... but does not showing correct power and voltage meters just zeros

What errors are you getting with the new firmware? I haven't had any problems with it.

Also, did you change the DNI like I suggested?

Every time says failed...
Yes.. At first i changed like you said but it didn't help...
Then i removed everything and installed pow firmware after that sonoff connect app found automatically....... And then i just played With installing back and forth, Other firmware alternatives such us tasmota different versions etc... But no luck

I have a sonoff dual r2 flashed to tasmota that I am in the process of migrating from st. I had it working perfectly thru st using the tasmota 4 channel device handler and child driver. For some reason i couldn't get the correct dual handler to work but it worked anyways. No that i've moved it over to hubitat I have both drivers installed using the 4 channel driver and it is paired and working but i don't see where I can toggle both channels. I hit the configure button but it doesn't do anything. How do I differentiate the two channels and get this thing working? I was using it to control my daughters ceiling fan and light separately. Any help would be greatly appreciated.

I am in the process of switching over from st. I have a sonoff dual flashed to Tasmota and after a bunch of trial and error have it working. I have it mounted in the cover of a ceiling fan to independently control the fan and light of the ceiling fan. I can control it from the desktop perfectly and it works every time, but I have a aeon wallmote mounted to control the dual. I tried just making two simple lighting rules to say when button one of the wallmote is pushed toggle the ceiling fan. It will turn on but won’t turn off. And it’s the same way for the light. They turn on but not off. I then tried making a virtual switch for each one and that brought the same results. I’ve honestly had so much trouble getting migrated it seems like I might just go back to st. I hate to do it but it seems like getting devices to work in st didn’t require me sitting in front of my computer for hours on end. Please help me and save me from going back. Thanks.

Just as a test, set the aeon up to have one button turn the light on and one button turn the light off to see if it works (rather than a toggle setup).