Tasmota – TDM and Tasmotize

Betty

This started off as a quicky but is rapidly mutating into something more extensive. This blog entry is about Theo Arends’s much-loved alternative firmware for IOT (Itead Sonoffs and many other controllers) as Tasmota is now running at version 7.1.2.4 – or the more affectionate 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.1.2.4) and the Tasmota Device Manager software (TDM) 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.

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 and also now TASMOTIZER, software to easily FLASH (program) boards with Tasmota – and it is all getting easier by the day.

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.

Tasmota

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.

Facebooktwitterpinterestlinkedin

25 thoughts on “Tasmota – TDM and Tasmotize

  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. 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 🙂

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.