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

I should be updating to 8.1.0 any day now, just not prioritized it. I've not tried downgrading via OTA from 8.1.0, to be honest I basically only use TTL. Wait a few days and I'll update it.

2 Likes

thank you markus and for your work on integrating tasmota into hubitat

1 Like

That would be a mirror app bug then. I use the standard capabilities and Light/Bulb offers the same on/off functions as switch does.

1 Like

Marcus,

Clearly I must be doing something wrong. But here is my setup:

TASMOTA/ESP8266

  • Hubitat version of the tasmota firmware running on ESP8266MCU (Other tasmota configs set to Hubitat/Smartthing and Hue Bridge ; Hubitat Config (host IP and port set to point to Hubitat hub)
  • Set tasmota configuration (Generic) for DHT11 on D4
  • Tasmota main menu url is correctly reporting Temp and Humidity values so that is all working ok

HUBITAT

  • Using driver = Tasmota - Generic Temperature/Humidity/Pressure Device
  • Set device parameter to point to IP of device
  • The device page on Hubitat doesn't seem to even match what I would expect for Temp and Humidity device parameters profile and instead shows ON/OFF command options like it thinks its a switch device only.

Screen Shot 2020-01-08 at 7.53.53 PM.png

Thoughts on what I am missing here?

Thanks in advance

@petevorenkamp I can’t see that screenshot, but have you set a password in the Tasmota device? If so you need to input that in the driver as well. Also, try pushing the Configure button in the driver and make sure it shows the right IP of your device on the driver page. If this doesn’t work, please turn on debugging with Insanely verbose, press Configure then Refresh and give me those logs either here or in a PM.

I’ll report it as a bug then, thank you

EDIT: We were wrong:

No password set. I will try the configure button and check the IP and also turn on logging and let you know.

thanks

pete

Generic Temperature/Humidity/Pressure Device Driver logs
(note - i replaced actual ip# with "xxx" below) but this was the log info I got:

sys:12020-01-09 08:15:12.707 pm warnReceived data from 192.168.xxx.xxx, no matching device found for 192.168.xxx.xxx, C0A88BAE:E010, 84F3EBB2CCB5 or C0A88BAE.

sys:12020-01-09 08:15:12.666 pm warnReceived data from 192.168.xxx.xxx, no matching device found for 192.168.xxx.xxx, C0A88BAE:FA88, 84F3EBB2CCB5 or C0A88BAE.

Note - The actual Hub IP and Device IP addresses in the logs were correct

Force the use of IP and enter the IP manually in the driver. Save and press Configure again. The device sends the data to HE, just need to make sure HE knows it is meant for this driver. Make sure your device has a static IP or is pinned in the DHCP server. Do you have your Tasmota device in a separate VLAN or double-NAT or some other setup where it is not on the same subnet as Hubitat?

Is it possible to use to this driver as a button controller? I have this dimmer with 3 buttons on it,
https://www.amazon.com/gp/product/B07K67D43J/

I don't really care about using the buttons for dimming and would rather just use the buttons to send commands to Hubitat to control my smart bulbs, through the "Button Controller" app.

Here is my template:
{"NAME":"MJ SD02","GPIO":[11,10,0,33,34,32,255,255,31,0,30,9,29],"FLAG":15,"BASE":18}

Right now I have the three buttons set as Switch1 - Switch3, with switchmode1 6; switchmode2 5; switchmode3 5. This way they act like buttons and register a quick press and a hold. I can set them as Button1 - Button3 if necessary though.

Marcus,
I am not a coder so didn't know in the driver code where to hard code the IP address so I tried one other idea and it worked! Maybe you can help explain how, but here is what I did.

In Hubitat Driver Preferences:

1 - I enabled Override IP - Override the automatically discovered IP address and disable auto-discovery.

2 - I then added my device IP address to the Device IP Address - Set this as a default fallback for the auto-discovery feature.

Results:

Current States

  • driverVersion : v0.9.2 for Tasmota 7.x (Hubitat version)
  • humidity : 36
  • ipLink : 192.168.xxx.xxx
  • module : 18 (Generic)
  • needUpdate : NO
  • temperature : 72.7
  • templateData : {"NAME":"Generic","GPIO":[0,0,0,0,0,0,0,0,0,0,1,0,0],"FLAG":0,"BASE":18}
  • ip : 192.168.xxx.xxx

That is great! That is what I meant, that is what that option is for. I was a bit imprecise in expressing myself, good you found it!

Markus,

Thanks again for all your help.

It's people like you on these forums that really make a difference to help educate the rest of us to get the most out of these devices capabilities.

pete

1 Like

That shouldn't be a problem, if you set Debug Mode to Insanely Verbose and get the logs which start with "result:" like "result: [POWER1:ON]" I will get it clear. Then it's a simple thing to map, do tell me how you expect this to translate to button events in HE if you have some thoughts on that?

I'm happy it worked as expected! I'm not certain how things will behave with temperature in Fahrenheit though, if there's any issue, please do tell me.

Yes, I did the convert of C to F using the direct tasmota SetOption command.

I actually didn't even look to see if any conversion code was embedded in the Hubitat driver .

Ok, if that works, let's keep it that way :slight_smile:

A little reminder to those who really want to keep their internal private IPs secret for some reason. In Hubitat, the hex values you see above "C0A8XXXX" (I removed the last 2 bytes) are actually the IP in HEX. And the other part "84F3EBXXXXXX" is the network MAC. Just friendly pointer.

THIS VERSION WORKS
@mackj12345 I've merged in Tasmota 7.2 and 8.1, I've not released binaries yet since I've not tested these new firmwares yet, at least not more than flashing them through TTL onto a device. If you want to try, the binaries will be available shortlyare available below. I would NOT recommend trying this new firmware on a device you can't easily flash through TTL.
Make SURE you follow the official migration recommendations!
Do keep in mind that there is a REQUIRED migration path when changing between Tasmota versions:

"tasmota-basic" is now "tasmota-lite" (this is the version to use for Tuya OTA etc (UNTESTED!), use minimal for upgrading over http (Partially tested but use caution!) and then install the version you want (Partially tested but use caution!).

So if anyone wants to try, keep in mind this is somewhat UNTESTED! Keep TTL flashing on standby... For TTL flashing, follow the official docs!

Tasmota for Hubitat v7.2.0 - Binary Release Here

Tasmota for Hubitat v8.1.0 - Binary Release Here

Migration Instructions

1 Like

thank you markus and i have not compiled firmware before. if you dont mind compiling them for me ill be the guinea pig with afew of my sonoff's s31's and switchs i have cause there pins for flashing are easy to access