Tasmota – TDM, Tasmotize and TasUI

Doris

This is a never-ending story about Theo Arends’s much-loved alternative firmware for IOT as Tasmota is now running at development version 8.1.0.2 Doris (update Dec 30, 2019 – I’ve upgraded most of my units including Itead Sonoff BASIC, TH10, 4CH Pro, ProR2, Powr2, Shelly One, Blitzwolf and others). Previously I was using 7.0.x.x and 7.1.x.x (BETTY).

The new Tasmota docs site replaces the older WIKI and there is also a new flasher utility therein. Firstly we have the updates to Tasmota itself (7.2 release version) and the Tasmota Device Manager software (TDM) version 0.2.6 and now TASMOTIZE as a Windows executable – for flashing Tasmota onto various IOT devices. But not just flashing – EASY flashing – with WIFI, MQTT and module setup all in the same place.

AND NOW – TASUI – got this Dec 21, 2019)… http://tasui.shantur.com – and what is THAT I hear you ask? Well, it is a web-browser based UI for Tasmota devices – apparently for Tasmota 7.0.2.4 or later so please don’t bother until you update your devices… my friend Antonio confused the hell out of me earlier by referring to “CORS http://tasui.shantur.com” – what is that I asked. Well, just take that text without the quotes, paste it into the CONSOLE in one or more of your Tasmota-equipped devices to test – and immediately they know about this new UI (even after a reboot). In a browser on your local network, enter the link (top of this para) and the UI will start up. Therein, tell the UI about your local subnet range for your devices i.e. 192.168.1.2 to 192.168.1.200 or whatever you use). Then tell the page to go searching for your devices. Once done save them. That’s it. You now know as much as me – enjoy the new UI. It’s great. Later, there will be a LOCAL version of this UI. Here is the Github link – currently not documented – https://github.com/IOTReboot/TasUI/tree/1d928ab – I tried the install but it looks like it wanted ARCH Linux – which I don’t have.

Let’s backtrack for a second for those new to the subject… when it comes to controlling devices from simple WIFI-controlled on-off switches through to RGB lighting, LCD displays and so on, Tasmota is one of several free firmware alternatives to the almost endemic numbers of Chinese cloud-based IOT solutions. For obvious commercial reasons, many manufacturers of IOT products would like us to use their own proprietary solutions, often relying on their own control APPS and cloud-based storage/control. One problem there is that some folk don’t trust cloud-based solutions (for a variety of reasons). Another problem is that every manufacturer seems to have their reasons why you should use THEIR solution.

TDM

Tasmota started off as an alternative to control Itead Sonoff and other boards, something you could (can) freely download and “flash ” onto said boards and then either control your devices via simple web commands or something like MQTT. There are other solutions: “Espuna” comes to mind as well as “ESP-GO”. The latter is covered extensively in this blog and I spent many months developing this with help from Aidan Ruff and others.

Recently, Tasmota has been coming on in leaps and bounds and looks set to be the dominant alternative IOT device firmware for some time to come as it now supports a wide variety of IOT WIFI-controlled devices not to mention Zigbee.

SO, here we are, Tasmota can be installed on, for just one example, Itead Sonoff BASIC boards and used to control them, in my case, using a Raspberry Pi running Node-Red snd MQTT protocol. Others may prefer to control devices directly via a browser. What’s new about this ? Well, Tasmota now offers support for a LOT of devices, has a NICE interface, an up and coming DEVICE MANAGER (TDM), a new website putting it all together, TASMOTIZER, software to easily FLASH (program) boards with Tasmota – and it is all getting easier by the day. And NOW we have TasUI – lovely.

Flashing boards is nothing new and started back in the dark ages with various attempts at Python language code (more familiar perhaps to Linux rather than Windows users) – Tasmotizer is now available as a Windows .EXE file as is TDM. A fellow who goes by the name of Faziaty on “Discord” and Jziolkowski on Github is, it would seem, responsible for both Tasmotizer and TDM.

Doris

Tasmota supports up to two access points and for this I’ll point you to the docs referred to above and in particular the “AP” and “SSID” commands.

Tasmota is easy to install on various devices using a serial convertor (FTDI) and is also easily upgradeable “LIVE” – I have many devices, some hidden away in the loft, some in another country – all of which I can now safely update while they are running using TDM – which in my case runs on Windows 10.

And here’s the video.

Backups – this is still in progress you might like to check it out.

Facebooktwitterpinterestlinkedin

58 thoughts on “Tasmota – TDM, Tasmotize and TasUI

  1. Really has become quite refined! I prepped 3 x ESP01 relay boards for a friend last week so he had the option of web UI to toggle these or to dabble in some MQTT. In any case the default Tasmota has schedules and more with “bigtimer” styled dawn/dusk options, so many interfacing options.
    Today I updated all three to “BETTY” OTA simply plugging the serial converter into a power bank in front of the TV using a phone. A Β£1 microcontroller with slick UI and ultimate convenience and a ton of option stuff… we are spoiled by Theo and his supporters!

    G

  2. Hi Pete,

    I just wondered if you use Alexa control and if you have tested it in this new version, I have flashed my first one several times a couple of weeks ago and Alexa control was not working no matter which emulation method you used.

    thanks
    Stuart

    1. no problems here, i update all my devices once a week, all working with alexa (all the single relay using Wemo emulation, while the multisocket one uses Hue)… here we can just guess your problems, suggest going to ask in the proper support channels, which for tasmota is: https://discord.gg/Ks2Kzd4

      be prepared for the initial tip you’ll get there: “reset 6” and reconfigure…
      “reset 6” will wipe all settings and memory EXCEPT wifi+mqtt
      “reset 5” is the same, but it keeps ONLY wifi settings…

  3. I am very curious whether the MQTT client is found to be more stable with bad WiFi connection.
    I made some patches to PubSubClient and Theo already included my patches in Tasmota builds, even before my nightly build of ESPEasy was started.
    So at least the number of testers of it will be greatly enlarged by this πŸ™‚

    1. i solved all my issues with wifi disconnecting by using a new access point, dedicated to just iot devices, which is just 50cm away from the old one… not a single disconnect or exceptions anymore… just a basic openwrt wt3020 model πŸ™‚

      now that you’re here, Mr EspEasy in person, welcome! πŸ™‚

      a question: i’d like to create an “iot keypad” to have near my desk or bed, from which send out mqtt messages to toggle my various device, or better, let me choose to send mqtt or rest api calls… this to allow me a physical interaction instead of a voice one, as many devices are hidden and their buttons are not easily accessible πŸ™‚

      i was thinking to tasmota, but then this would need to use rules to publish topics on every keypress, and as gpio are limited, this implies using an mcp23017 for example… i’ve seen that your firmware allows to use some keypads, too, directly… this way (or via mcp23017 too, no problem in that), can the mqtt or rest calls be made by editing the devices in your excellent web gui, or are rules needed even in this case?

      any other suggestion is welcome, of course

      1. You can link a task to a controller, to output any value to the controller (e.g. one of the HTTP controllers), but that will be hardly ever be the most flexible solution.
        So you can also have some rules to act on specific key presses.
        A newly generated value from a task will trigger an event and you can catch those in rules. You can even trigger a rule on a specific value of a variable (on pad#value=1 do …), but you can also in a rules block refer to an event-value by using %eventvalue% (or %eventvalue2%… if there are more).
        So, yes it may be possible without rules, but I think it will be a lot easier when using rules. See the documentation: https://espeasy.readthedocs.io/en/latest/Rules/Rules.html#introduction

      2. Antonio, does your dedicated access point have a different range of IP addresses? Say your main LAN has Ip’s 192.168.1.0 to 255, then does your AP have something different like 10.10.1.0 to 255? I would be very interested in knowing how to achieve such a set up for my IOT devices.

        1. no, mine was set up as an access point on my network, and the dhcp as relay dhcp (devices ask for ip to it and it just asks to the one on the cabled interface), so they’re all in the same network, just different SSIDs… in your case, if your device allows this and you want a different range, you can set it as a router instead, putting the WAN interface on your actual network range, and creating a new network on the bridge which is formed by the LAN and the WLAN interface…

          doing this with openwrt and with mikrotik is quite simple, i suggest looking for mikrotik, it has a very nice interface (both web and pc gui), or for the Yellow Mango GL-Inet Pete reviewd here a while ago, if you want openwrt… both have wizards to do so, and they allow (the mikrotik for sure, but afaik the openwrt, too) MULTIPLE ssids with different dhcp ranges, which you can bridge to the same physical network or separate via vlans

          price are similar, about 25€:

          mikrotik mAP lite: https://www.amazon.it/Mikrotik-100Mbit-Power-Ethernet-access/dp/B01BMMJVLI/

          hAP mini: https://www.amazon.it/Mikrotik-RB931-2ND-RouterBoard-hAP-Mini/dp/B0711VCLG8/

          hAP lite: https://www.amazon.it/Mikrotik-Internal-White-access-point/dp/B00UR758BM/

          Mango Router: https://www.amazon.it/GL-iNET-GL-MT300N-V2-Pre-Installed-Performance-Compatible/dp/B073TSK26W/

          i’ve a wt3020, pretty similar to the last one, for my iot devices

          there are the CAP versions, too, for Ceiling Access Point, very good, we have them in office

          1. Hi Antonio, I bought the Mikrotik hAP Mini and with a bit of effort I got it set up to provide a second range of IP addresses. It’s looking good so far. Many thanks for your help and guidance.

            1. i like mikrotik because of its config tool, Winbox, which you can run on your pc to configure them… it automatically finds them in your network, but then you can use the web interface which is exactly the same… the good is that the menu organization is pretty much the same of the commands via cli… open winbox, open terminal, then write: “export compact”, and you’ll see all the configs you made, look at them and you’ll see they’re similar to the menu items you used πŸ™‚

              an other think you can do, you can go on mikrotik site and download the extras packages, and from there install the USERMAN one… this allows you to run a local radius server and you can enable a new GUESTS ssid which is open to everyone BUT then asks for a user and password to be entered, as soon as you start surfing… this way you can give your friends access to internet, separating them from your local lan, and have their account expired after 1 day, for example… πŸ™‚

              oh, and you can use CAPSMAN to extend your network across multiple access points in a transparent way, so to cover all your house… but that’s more complicated to explain πŸ™‚

      3. Exactly the same. Moved to a cheap router and no more disconnects – my main AP is a Ubiquiti one). I’m going to look into your alternative suggestions as the router I bought really does not have enough configuration options.

    1. Peter has about a much trust in “the cloud” as I do. Great when it works… but ho wants a cold dark house/office when it doesn’t. Some day, Internet service providers will move into the 21st century – until then. I’ll bet you’re agreeing with this, Antonio, stuck over the weekend with no broadband.

      1. absolutely, the only “cloud” services i use are the xiaomi ones, just because they can’t be hacked AFAIK… some rgb bulbs, a couple of cameras, 2 bluetooth (1 with clock, too) temperature and humidity sensors (which i’ll connect to an esp32 soon), and nothing more… oh, and the shelly switch which commands my blinds, but that is easy to hack, just disable cloud from its stock firmware… if a device can’t be hacked, i sell it πŸ™‚

        1. Agreed. Shelly on local – yes, easy – first thing I did was disable the cloud. I’m looking at selling any of my kit that can’t switch to local – apart from Alexa and Google maps on my phone of course. I have TomTom which is mostly local, but then, it’s also mostly out of date.

          1. there’s tomtom on playstore, which has “free” 250km on 1st run, and 75km each month, and in most cases that’s enough πŸ™‚

            you should try “Here”, too, which is the new name of the old “Nokia Maps” which was very good and completely offline, and allows to download single regions instead of full nations, too

            1. Thanks for that Antonio. My TomTom is the one on Playstore, thats how they do it now – 75km free each month – which for me would be useless, when travelling I can rack up 600-800Km in one day – so I signed up to pay – and really they have not moved on over the years, the updates are not regular enough AND the program pesters you to update up to 1GB maps when you are on MOBILE on the ROAD. How dumb is THAT? I’ve written to them but they take no notice.

              I’d forgottten all about “HERE”. The full name is “HERE WeGo” and as you have brought this to my attention, I loaded it up – it insists on storing maps in internal memory – not on SD – nothing new there, I believe “TomTom Go” does the same thing.

              “Offline Maps and Navigation” on the other hand allows you to use either internal storage or SD. I recently put a “cheap” 256GB SD on my Pocophone and so maps of UK and Europe don’t make a dent. Hell I could put the entire world in there.

              Actually that subject almost deserves a blog entry of it’s own.. maybe elsewhere…

              1. for me the 75km cap is fine, as if i’ve to take an highway and move for, let’s say, 200 or 300km, i really don’t need my phone to tell me “go on, keep going, go go go, always forward, never back!”… πŸ™‚

                and, as said, i’ve other options… not even a problem the internal memory, as my pocophone has 128gb, empty for more than an half πŸ™‚

                1. I don’t need maps in Britain – A1 M1 then a couple of changes at the bottom end of the country… easy… but in Spain (I don’t speak Spanish) in and out of long rural roads and onto and off motorways I may never have used before – definitely.. and this coming January – USA – I don’t have a clue though I may be lucky and escape driving there as Maureen is from Chicago. My Pocophone has 64GB – I was in a rush… I know – I should have waited. Still, with 256GB of SD inside for maps and movies I should manage πŸ™‚

  4. Hi folks, I need a bit of help I think. I have Tasmotised a Sonoff basic using the new Tasmotizer under windows, uploaded tasmota.bin no problem. The Tasmota web interface works, I can see the Sonoff output in MQTT-Spy so MQTT is working using a Mosquitto broker running on my Raspi 3B. However, when I run TDM on Windows, installed using the Windows .exe file, there is no device showing up in TDM. Is there anything that needs setting up on the Sonoff to use TDM?

    1. If you have a recent Tasmota on the Sonoff, no you don’t need any changes on the Sonoff to make it show up on TDM, but make sure you are using the friendly name and mqtt topic – I always fill in all three – wifi name, mqtt topic, friendly name.. and I too am using Mosquitto – originally on a 3B, now on a 4 – but that won’t make any difference.

  5. Peter, thanks for the prompt reply. Everything I used is the latest version, the Sonoff binary, Tasmotize, TDM. I had set the friendly name, Tasmota topic and host name, but I changed them just be sure but still no joy!
    I plan to Tasmotize another Sonoff basic and a Sonoff 4 channel pro, hopefully they will show up on TDM. To be clear I have TDM running on my Windows 10*64 machine and Mosquitto running on a RPi 3B running Buster.

    1. and did you set up mqtt settings in TDM itself, top left menu? Both tdm and your sonoffs have to connect to the same mqtt broker to be used…

      and… to add some spices πŸ™‚
      if you have AT LEAST tasmota > 7.2.1.4, open their console via web gui and paste this command and hit ENTER:

      CORS http://tasui.shantur.com

      then go on this site: http://tasui.shantur.com/#/findDevices
      and put in your local network range and hit START DISCOVERY…
      wait till it will find all your devices, then click the + sign to add them to the main DEVICES page… now start playing with it, it has lots of the tdm features (but not all, remember that’s still v0.0.1!), it does not need any mqtt broker, and if you think it will ask for a ransom for your devices, just don’t: CORS allows javascript calls which run LOCALLY between your browser and your devices, nothing on that site… source is there, you’ll be able soon to install locally via NPM, too, or ask the author there if you want it sooner: https://github.com/IOTReboot/TasUI/

      1. Hi Antonio, you hit the ‘head on the nail’ I had not correctly set the mqtt settings. I discovered that after my last post. TDM is very useful!
        Thanks for the TasUI information. I tried that following your instructions and it works well. It will be interesting to see how it develops.

  6. Hi,
    I have also put together my own tool to help setting up multiple Tasmota devices, this works using the Http command so you just need the IP address to work.
    Nothing fancy, the aim was to be able to send the basic commands via http to the device to setup different displays but there are other commands available.
    Still a work in progress but if you’re interesting in trying it here is a link to my onedrive location https://1drv.ms/u/s!AkqVSEM4Y7kDgcxvAUQeeXz3ebzWNg?e=Nelscz

    Cheers

      1. I’ve seen this on the AutoIT forum, others have also seen it as a threat, all I can say is Avira Pro doesn’t see it as a threat and on work PC using Mcafee it’s fine.
        Apparently someone has used AutoIT in the past to write malicious code and therefore some AV scanners say it’s a virus when it isn’t because it was written with AutoIT, strange really because I suppose you have to write malicious code in something and if they banned everything ever used would we’d have nothing to write software with?
        Anyway I don’t think I can do anything about it, I know a few people who have installed it OK and using it on the facebook page.

    1. Yes I tried Tasui but it only found 1 device, maybe it will get better. My solution doesn’t run in a browser like Tas ui though it’s an executable program, I hope to add things like auto detection when I figure out how to do it πŸ€”

    1. from: https://tasmota.github.io/docs/#/Home

      2019-12-21

      Tasmota v7.2 Constance is released. See changelog for all changes.

      Breaking change: tasmota-basic.bin is renamed to tasmota-lite.bin. Update your OtaUrl accordingly.

      warning warning warning
      This will be the only release that supports fallback from future release 8.0 and development versions 7.2.0.x which will be released shortly. Tasmota v8.0 will have major changes in configuration code and layout which will completely break any downgrade to versions below v7.2.

      p.s.: i use tasmota-lite on all my sonoff “basic” devices, as it’s smaller than the standard tasmota.bin file and as such allows a direct upgrade to newer firmware without needing the minimal firmware step, even though the minimal is automatic thanks to tasmota magicOta mechanism… but why bother of flashing a bigger firmware, which needs 2 firmware upgrades, actually, and 2 reboots, when you’re flashing a device with no sensors and just a button, a relay and an led? πŸ™‚

      1. nothing relevant, no hurry in update… especially for standard stuff like sonoffs which gained most of the benefits by moving to core 2.6.1… most of the newer features are about latest devices, or devies with sensors, or zigbee and other internal reorganization like the settings arrays…

  7. Peter,
    I’ve just released a docker container for TasUI, for now just linux/amd64 version, soon we will update it with other architectures. Soon a Home Assistant addon will be available too.
    All is managed locally and with an optimized CORS management.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.