# Problem adding Sonoff Dual R3 to Tasmota integration

**URL:** <https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331>\
**Category:** Configuration\
**Created:** [May 28, 2022, 10:04am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331 "2022-05-28T10:04:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 28, 2022, 10:04am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/1 "2022-05-28T10:04:59Z")

</div>

Hello,

I have a Sonoff Dual R3 flashed with Tasmota that I want to add to Gladys but I can’t add it. Gladys always returns an error message.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5f56aeee40bb754219c0ad473e0da4175515592a.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/26fe7cd534e35e1f4cc8c931031592fc4045de6c.png)

Does anyone have any idea? Thanks in advance.

---

<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:** [May 28, 2022, 10:07am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/2 "2022-05-28T10:07:03Z")

</div>

Do you happen to have another device with the same name?

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 28, 2022, 1:12pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/3 "2022-05-28T13:12:30Z")

</div>

I had another Tasmota device that I deleted. I also tried changing the name but without success.

---

<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:** [May 28, 2022, 4:25pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/4 "2022-05-28T16:25:01Z")

</div>

You want to see more details about the response in the Network tab of your browser’s «&nbsp;developer&nbsp;» mode, by looking at the response details.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 28, 2022, 10:42pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/5 "2022-05-28T22:42:07Z")

</div>

As indicated I have the following error below

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/6/6f4293fb101f0b8832a47adc54b28deeacf7b3c5.png)

With the details

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a66bb8df485f45a17a27d96f2e9b3a1837a79bf8.png)

---

<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:** [May 29, 2022, 6:27am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/6 "2022-05-29T06:27:33Z")

</div>

Thanks a lot. A bug has appeared!!!

---

<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:** [May 29, 2022, 8:04am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/7 "2022-05-29T08:04:32Z")

</div>

I’ll ask a bit more of you, but can you also provide me with the request content?  
With the entire «&nbsp;device&nbsp;»? So we can more quickly identify which feature reads a value «&nbsp;[0, 0]&nbsp;»  
Thanks

EDIT: and if you’re motivated, the content of the response

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 29, 2022, 9:08am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/8 "2022-05-29T09:08:37Z")

</div>

No worries — you’re not overdoing it at all.  
How should I proceed to see the contents of the request?

Below is the output of the STATUS8 and STATUS11 commands

```auto
09:59:39.403 MQT: stat/tasmota_DB3C40/STATUS = {"Status":{"Module":0,"DeviceName":"Relais_Tasmota","FriendlyName":["Relais_Tasmota1","Relais_Tasmota2"],"Topic":"tasmota_DB3C40","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
09:59:39.525 MQT: stat/tasmota_DB3C40/STATUS11 = {"StatusSTS":{"Time":"2022-05-29T09:59:39","Uptime":"0T10:08:27","UptimeSec":36507,"Heap":150,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":25,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":40},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"freebox_WSMD71","BSSId":"DC:00:B0:95:F4:C0","Channel":6,"Mode":"11n","RSSI":74,"Signal":-63,"LinkCount":1,"Downtime":"0T00:00:03"}}}
09:59:39.781 MQT: stat/tasmota_DB3C40/STATUS8 = {"StatusSNS":{"Time":"2022-05-29T09:59:39","Switch1":"ON","Switch2":"ON","ENERGY":{"TotalStartTime":"2022-02-22T19:49:31","Total":0.000,"Yesterday":0.000,"Today":0.000,"Power":[0, 0],"ApparentPower":[0, 0],"ReactivePower":[0, 0],"Factor":[0.00,0.00],"Voltage": 0,"Current":[0.000,0.000],"BL09XX":{"Temperature":34.5}},"ESP32":{"Temperature":50.0},"TempUnit":"C"}}

```

---

<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:** [May 29, 2022, 9:38am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/9 "2022-05-29T09:38:31Z")

</div>

Well, no need for the request content, I can see the problem on the 3rd line.

> [@\_Will\_71](#):
>
> `"Power":[0, 0]`

With these lines, I’ll be able to reproduce the case locally and try to fix it.

EDIT: I see the BL09XX temperature, I’ll make a second change to add it. Is it really 35°C where you are??? Ouch!

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 29, 2022, 10:20am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/10 "2022-05-29T10:20:55Z")

</div>

Ok thanks if you can fix it.

I actually think the temperature is not correct. I don’t know if I can recalibrate it, I haven’t looked yet because it’s the 2 relays that interest me.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a3fae99e056044dabc174d568210a4eb5ceb3b04.png)

---

<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:** [July 14, 2022, 5:51pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/11 "2022-07-14T17:51:28Z")

</div>

Hello,  
I made some changes to try to integrate the Sonoff Dual R3, or more precisely the Tasmota «&nbsp;multi&nbsp;» devices.  
I based them on the MQTT messages you sent me.  
I’m fairly confident, but I haven’t tested it on a real device because I don’t have the device.

Do you think you could try a custom Docker image that includes the changes?  
`atrovato/gladys:tasmota` is available.

This image also includes temperature sensors.

I recommend, if you can, testing on another machine (another Raspberry Pi or PC), or making a backup of your database—just in case. And above all, before the fixes are merged into a new release, you don’t want Gladys to be blocked for you.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 14, 2022, 6:08pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/12 "2022-07-14T18:08:22Z")

</div>

Ok thanks @AlexTrovato, I’ll test over the weekend.  
No worries, I have a second Raspberry Pi for testing. I never test on the one that’s in production.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 15, 2022, 9:38pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/13 "2022-07-15T21:38:41Z")

</div>

Good news, I was able to add my Sonoff Dual R3

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/3266144e2d92930f0eab421686baf5051315e138.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1584b76a6877cc8c170f25bf9a04f63ec55a8a53.png)  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1f89e7c3befcc11216e70b5d0aaaf02dc83945d5.png)

I haven’t yet connected a load to the relays to see the power and energy. I’ll do it as soon as I have 5 minutes.  
However the voltage value is not correct. 0.232V in Gladys instead of 232V.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/6/645e83043f88cb330b79ab9cb8c67600c6a4d8d5.png)

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [July 15, 2022, 9:57pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/14 "2022-07-15T21:57:09Z")

</div>

> [@\_Will\_71](#):
>
> However, the voltage value is incorrect. 0.232V in Gladys instead of 232V.

@Terdious prepared the work on this :

> [@Plusieurs erreurs/manques pour Tasmota POW-R2](https://community.gladysassistant.com/t/plusieurs-erreurs-manques-pour-tasmota-pow-r2/7306/23):
>
> Salut @Terdious ! Je reviens sur ce sujet car j’ai réussi à bidouiller la prise ‹&nbsp;Aubess 16A Power Monitoring Plug&nbsp;› pour qu’elle soit en Tasmota. J’ai donc pu tester avec succès les changements que tu as apporté sur l’intégration Tasmota. Vivement la release wink

I suppose it should be integrated soon…

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 15, 2022, 10:00pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/15 "2022-07-15T22:00:13Z")

</div>

Ok thanks for the info @GBoulvin 👍

---

<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:** [July 16, 2022, 5:41am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/16 "2022-07-16T05:41:24Z")

</div>

Is it still as hot at your place!! 😛  
Indeed, the value issue will be handled by another party. We’ll try to get it passed along as well.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 16, 2022, 9:33am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/17 "2022-07-16T09:33:28Z")

</div>

Yes, still as hot, I really think the temperature isn’t right.😁

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 8, 2022, 9:21am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/18 "2022-09-08T09:21:20Z")

</div>

I just merged @AlexTrovato’s PR on the topic!

> <https://github.com/GladysAssistant/Gladys/pull/1571>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- ~~\[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)~~
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- ~~\[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)~~
> \- ~~\[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).~~
> \- ~~\[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).~~
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> According to https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331?u=alextrovato
> 
> This changes allow Tasmota to manage multiple equivalent features, when Tasmota sends an array instead of a number.

It will be included in the next Gladys release, thanks @AlexTrovato 🙏

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [September 8, 2022, 9:34am UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/19 "2022-09-08T09:34:51Z")

</div>

Thanks @pierre-gilles and @AlexTrovato

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [September 20, 2022, 12:43pm UTC](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331/20 "2022-09-20T12:43:26Z")

</div>

Thanks again for this fix, but regarding the names of the switches is anything planned?  
Because I can change the name of each switch, but it’s not reflected on the dashboard

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/918767aebed5549ee68bd5939b9526e66ef69ba0.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/10e334f96f5d1a282375eebb790b9b0625ee52f7.png)

On the other hand, the names of other functions—for example, here I changed the power consumption—no problem, I can modify them and they’re displayed correctly on the dashboard.

 ![IMG_20220920_143950](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/8f27714b54e17c2ee71c5a9cc04527f4114e156b.jpeg)

[Next page](https://community.gladysassistant.com/t/probleme-ajout-sonoff-dual-r3-dans-integration-tasmota/7331.md?page=2)
