Problem adding Sonoff Dual R3 to Tasmota integration

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.

Does anyone have any idea? Thanks in advance.

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

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

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

As indicated I have the following error below

With the details

Thanks a lot. A bug has appeared!!!

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

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

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

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"}}

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

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!

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.

Hello,
I made some changes to try to integrate the Sonoff Dual R3, or more precisely the Tasmota « multi » 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.

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.

1 Like

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


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

1 Like

@Terdious prepared the work on this :

I suppose it should be integrated soon…

1 Like

Ok thanks for the info @GBoulvin :+1:

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

2 Likes

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

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

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

2 Likes

Thanks @pierre-gilles and @AlexTrovato

1 Like

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

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.