[V4] Sonoff Tasmota

Hello everyone,
you already know that the Sonoff integration service is already present in Gladys V4.

On the Tasmota wiki, all devices (Modules) supported are listed.

Today, only 3 of them are « really » managed:

  • sonoff basic
  • sonoff pow
  • sonoff s26
  • sonoff mini
  • sonoff 4CH
  • sonoff dual R2

I am therefore posting this message to ask members of the community who have devices flashed with Tasmota to help me complete the V4 service.

Tell me what your devices are :slight_smile:
We will determine together, case by case, how to proceed.

Thank you for your participation.

– EDIT –
Sonoff Tasmota becomes Tasmota.

Most Tasmota-compatible devices are supported by Gladys.
Please indicate if a device does not work correctly in Gladys.

I have a dual R2, I’ll keep you posted.

What information do you need?

If you can send me the MQTT messages sent by it during the different actions (switch 1 / switch 2).
You can use different MQTT client tools to capture these messages.
On Windows, from the Microsoft Store, I use MQTTBox to capture this kind of messages.

And if this device has other features, I am interested in knowing (energy meter, temperature… ???).

Edit: Is it properly flashed with Tasmota?

Okay, I’ll try to check that out this evening.
Yes, there is indeed the Tasmota software on it.

Can you explain how to configure MQTTBox?

Ok, based on what I’ve done:

  • MQTT Client Name: the client name (ex: Gladys)
  • MQTT Client id: leave as is
  • Protocol: mqtt or mqtts (if secure)
  • Host: the URL of your MQTT broker (ex: 192.168.1.40:1883)
  • Username: the login if needed
  • Password: the password if needed

I left everything else with the default values.

Once created, you will arrive on a page where you will need to add 2 subscribers:

  • stat/+/+
  • tele/+/+

If you put « +/+ », you will see messages from all devices.
If you want to filter on your device only, replace the first « + » with the « topic » of the device, the one you specified on the device configuration page.
For example:

  • stat/sonoff-plug/+
  • tele/sonoff-plug/+

To avoid polluting the entire topic, I’ll send this to you via private message.

Hi,
if you want to test, I have generated a docker image:

docker run -d \
      --restart=always \
      --privileged \
      --network=host \
      --name gladys-sonoff \
      -p 80:80 \
      -e NODE_ENV=production \
      -e SERVER_PORT=80 \
      -e TZ=Europe/Paris \
      -e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v ${PWD}/gladysassistant:/var/lib/gladysassistant \
      -v /dev:/dev \
      atrovato/gladys-sonoff:4.0.0-beta-arm

Warning, the sonoff image is on the same port as the original Gladys.

I prefer not to test on the same SD card, I will reinstall on another one as soon as I can.

Hello @AlexTrovato!

I have a strip of RDB WIFI LEDs, model AL-LC01, running Tasmota, waiting to be used under Gladys. I’ve already done some digging and found this: https://nathan.chantrell.net/20170526/arilux-al-lc01-wi-fi-rgb-led-controller-with-mqtt-esp8266/! I’ll keep you informed as soon as I have some time to provide MQTT frames. How can I generate ones that will be most useful to you?

Thanks for your involvement!
Jean

Super @jean_bruder, I will start integrating it according to the information I find on the tasmota git repo, but I’m not sure if the « color » feature is in place on gladys, so testing will be quite difficult.

After that, as I said above, I’m open to all messages published on the stat/+/+ and tele/+/+ topics.

Hello @AlexTrovato,

I’m working on a native Sonoff module (and other eWeLink-compatible devices). If you want to take a look: Github :wink:

Super, but we’re talking about third-party, right?
I was thinking of renaming the sonoff module to tasmota

Or rather

Sonoff with Tasmota

After developing a service without flashing the Sonoff, it’s also great.

Yes, I agree, but I’m a bit confused when I have to create an account on a website on the other side of the world to turn on the lamp next to me. But it’s much easier to set up…

So both services are welcome :wink:

Good idea, especially since this firmware can work with devices other than Sonoff.
On my side, my module will be eWeLink (unofficial).

Hello,
I did the dev to integrate the AL-LC01 LED strip, according to the information found on Tasmota.
Everything is in the Docker image :slight_smile:

@AlexTrovato: I must have missed an episode regarding the automatic version upgrade proposed by @pierre-gilles when we discussed the use of Tower, because I don’t see any new Sonoff hardware at my place? I’ll check that from this WE, I have a few days off :wink: Thanks to you anyway!

Hello, the latest Sonoff developments are not yet in the official beta offered by Pierre-Gilles.
This is a new test Docker image. If the feedback is good, the developments will be integrated into the official version.