Note: This is a fork of the amazing Tasmota firmware.
Note: Another community member (@markus) has taken this project to the next level and has added support for many more esp8266 devices. I recommend that you check out his project: [DEPRECATED] Tasmota 7.x/8.x firmware for Hubitat + Tuya, Sonoff and other drivers
Warning: I don't know which method you first flashed your devices with so there may be issues with the OTA from regular Tasmota to this version if your current firmware was compiled a different way. First, after the flash, check to see if the device is broadcasting its SSID and needs to be setup again. If for some reason the OTA does not take, then you may have to flash with the UART headers.
Some may know that I have created an alternate firmware for some esp8266/esp8285 devices (Sonoff, H801, Arilux, etc.) I haven't had the time to keep up with the dozens of devices being released based on the ESP chips. So, I have decided to create a "driver" for Hubitat/SmartThings essentially adds support into the Tasmota firmware.
My plan is to add support to the Tasmota releases (6.4, 6.5, etc.) and not the development branch (since it is a moving target). So, for the 6.5 release you can see the work here 6.6 is up now:
Source
https://github.com/erocm123/Sonoff-Tasmota/tree/6.6
This is a work in progress so any additions to that fork are welcome. Right now I have pretty much everything working (Device discovery, control, device reporting, etc.) but things can definitely be modified and added.
One thing that is lacking is the Hubitat driver list. There are dozens of devices supported by Tasmota so drivers need to be created for the ones you want. The drivers are easy to create though. You basically need to create the events for the attributes that are being reported in the parse method and create a few command methods for the type of things you control (on, off, refresh, etc.). Here are the drivers that I have created and any others will be in my Hubitat git with "tasmota" attached to the name.
Hubitat Drivers (if you make some please contribute)
Sonoff S31
Sonoff SC
Sonoff Bridge (this unique device needs a lot of work)
Sonoff S20
Sonoff 4Ch
Sonoff 2Ch
Sonoff 3Ch (Generic 3Ch)
Sonoff TH
Compiled Firmware
Here is the compiled firmware if you don't want to build it from source. I used the recommended building settings from Tasmota, so you should be able to upgrade to it like you would the regular firmware (first OTA the minimal firmware and then OTA this firmware). I don't know which method you first flashed your devices with so there may be issues with the OTA if your current firmware was compiled a different way. If for some reason the OTA does not take, then you may have to flash with the UART headers.
Device Discovery
You can use my device discovery App to find the devices on your network, add them, and manage them. You will need to enable the Hue Bridge Emulation from the device web configuration for this to work.
https://github.com/erocm123/Hubitat/blob/master/Apps/sonoff-connect.src/sonoff-connect.groovy
Overview of Steps:
- Flash device with modified Tasmota firmware above and connect it to your wifi network.
- Install Sonoff (Connect), Hubitat Tasmota Drivers, & any child device drivers that are needed.
- Turn on Hue Device Emulation from the device web page (for device discovery).
- Start the device discovery from within Sonoff (Connect) and add the detected devices. You may have to wait a few minutes for the devices to be discovered.
- Add the device. Check the web interface of the device to make sure that Hubitat support got enabled and that your Hubitat IP address and port number are in the configuration page. I recommend that you give your Hubitat hub a static IP or DHCP reservation. The Sonoff devices do not need static IPs since the Sonoff (Connect) app will update their IPs if necessary, but doing so definitely won't hurt.