# \[V4\] Sonoff Tasmota

**URL:** <https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115>\
**Category:** Développement\
**Created:** [December 8, 2019, 10:03am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115 "2019-12-08T10:03:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 8, 2019, 10:03am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/1 "2019-12-08T10:03:52Z")

</div>

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

On the Tasmota wiki, all devices ([Modules](https://github.com/arendst/Tasmota/wiki/Modules)) supported are listed.

Today, only 3 of them are «&nbsp;really&nbsp;» 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 🙂  
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.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 8, 2019, 10:37am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/2 "2019-12-08T10:37:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 8, 2019, 12:53pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/3 "2019-12-08T12:53:34Z")

</div>

What information do you need?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 8, 2019, 1:03pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/4 "2019-12-08T13:03:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 8, 2019, 2:01pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/5 "2019-12-08T14:01:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 8, 2019, 4:01pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/6 "2019-12-08T16:01:24Z")

</div>

> [@AlexTrovato](#):
>
> I use MQTTBox

Can you explain how to configure MQTTBox?

 ![Capture%20MQTTBox](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/8f573da8e01b8a7f3c173b4334798a59fa2f7ffd.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 8, 2019, 4:38pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/7 "2019-12-08T16:38:30Z")

</div>

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/+/+

 ![4_subscribe](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/88ff3e8bceae3bb2edd2277539665d0213527787.png)

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

- stat/ **sonoff-plug** /+
- tele/ **sonoff-plug** /+

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 8, 2019, 5:00pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/8 "2019-12-08T17:00:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 8, 2019, 10:17pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/9 "2019-12-08T22:17:55Z")

</div>

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

```bash
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.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 9, 2019, 9:07am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/10 "2019-12-09T09:07:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [December 10, 2019, 2:26pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/11 "2019-12-10T14:26:23Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 10, 2019, 6:26pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/12 "2019-12-10T18:26:59Z")

</div>

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 «&nbsp;color&nbsp;» 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.

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [December 10, 2019, 6:35pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/13 "2019-12-10T18:35:13Z")

</div>

Hello @AlexTrovato,

I’m working on a native Sonoff module (and other eWeLink-compatible devices). If you want to take a look: [Github](https://github.com/NickDub/Gladys/tree/ewelink-service) 😉

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 10, 2019, 6:39pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/14 "2019-12-10T18:39:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [December 10, 2019, 7:41pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/15 "2019-12-10T19:41:38Z")

</div>

Or rather

> Sonoff with Tasmota

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

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 10, 2019, 8:07pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/16 "2019-12-10T20:07:54Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [December 11, 2019, 8:09pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/17 "2019-12-11T20:09:05Z")

</div>

> [@AlexTrovato](#):
>
> I had thought of renaming the `sonoff` module to `tasmota`…

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

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 14, 2019, 9:05pm UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/18 "2019-12-14T21:05:08Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [December 17, 2019, 8:56am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/19 "2019-12-17T08:56:46Z")

</div>

@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 😉 Thanks to you anyway!

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [December 17, 2019, 11:18am UTC](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115/20 "2019-12-17T11:18:48Z")

</div>

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.

[Next page](https://community.gladysassistant.com/t/v4-sonoff-tasmota/5115.md?page=2)
