Closed stefxx closed 4 years ago
Does not seem to be a general problem, with one load connected I have:
Thanks @sfromis . I assume there is actually nothing connected to O2? Or just switched off?
What Tasmota version are you using?
Right, only one load is connected, no wiring on O2. Running version 9.0.0.2, but I also remember it working on older versions.
Still works after upgrading to latest dev 9.0.0.3
I was able to fix this on both Shelly 2.5 devices by flashing Tasmota 8.1.0 and setting the template again. Yes, I had to set (the same, already active) template on 8.1.0 and that instantly started the power measurements on the device. Then I returned to 8.5.0 and 9.0.0.3 and the power measurements continued to work. Even after a "reset 5" and even a "reset 1".
Note that I previously reset the Shelly 2.5 multiple times, re-set the template multiple times, all without success on 8.5.0 and 9.0.0.3. Only setting the template again at 8.1.0 made it work. Don't quite understand, and I am unsure if this is a bug or just a hickup with my devices. I still think it is quite strange that it only happened to 2 out of the 15 devices, and the only 2 with only a single load connected.
Should I close issue for now?
Leave open as I want to investigate.
What happens if you remove power from the device and then reapply power. Does it still work with 9.0.0.3?
After removing and reapplying power it still works. I waited around 60 seconds before reapplying the power.
OK. Let's close it then.
Perhaps you used a different template while tackling the higher temperature issue. Removing or relocating the ADE7953 IRQ gpio did lower the temp but would also make detecting the energy sensor impossible in later versions.
One of the affected devices was brand new, never used before. OTA flashed to Tasmota straight out of the box (by using this procedure here: https://github.com/yaourdt/mgos-to-tasmota).
Either way, as I can't reproduce the issue (even with another brand new device) I will close this issue. Thanks!
I can reproduce the issue on my side. Used OTA flash with mgos-to-tasmota with the firmware version 8.5.1. The power measurement was missing. Then I reverted back to 7.2.0 and after setting the template again the power measurement was back. I then got back to 8.5.1 and power management was again there. Maybe the issue is related to the OTA update? I always had two connected loads, so I don't think it is related to that. BTW, I even used reset 5 to erase the flash, but it didn't help.
I have the same issue for all the 3 devices I just flashed with mgos-to-tasmota with the firmware version 10.0.0. No power measurements are available.
I have an older one which was running Tasmota 9.4.0 that had the measurements. I made a backup of it's config. I have reverted to 9.4.0 from one of the 3 above and restored the backed up config. The power measurements are still missing.
I upgraded the older device running 9.4.0 to 10.0.0. The power measurements are still present.
Here are the details of two of the devices:
It's a really strange issue. @arendst shall I open a new issue or this can be reopened?
Do a power cycle of the device which fails
I did. Multiple times and multiple tries of complete reconfig after complete reset and "Reset 5". I also tried with an older version, like 8.x (don't remember which one exactly) but it still made no change.
I had the exact same issue and needed to go back to 7.2.0 to bring the power management back (by setting the template again). On all other versions after 7.2.0 setting the template didn't fix the issue. So maybe there were changes in between that let to it. Also, as mentioned, a Reset 5 didn't fix the issue.
It still works for me with 10.0.0.1. What templates do you guys use? This is mine:
{"NAME":"Shelly 2.5","GPIO":[320,0,34,0,224,129,0,0,640,128,608,225,3456,4736],"FLAG":0,"BASE":18}
This was and has always been the template I used. It is currently configured for all my Shelly 2.5 (about 10). {"NAME":"Shelly 2.5","GPIO":[56,0,17,0,21,83,0,0,6,82,5,22,156],"FLAG":2,"BASE":18} It's taken from the Tasmota documentation: https://tasmota.github.io/docs/devices/Shelly-2.5/
And this is mine
{"NAME":"Shelly 2.5","GPIO":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736],"FLAG":0,"BASE":18}
Perhaps time to revisit your template.... and then update the docs.
I'm currently running 8.5.1 and on that release this template doesn't work at all. I had issues when updating to 9.x because I'm using it for shutters. Maybe I give it a try again. But could you please explain why there was a change?
When it comes to the gpio component numbers in the template, those were expanded to support more stuff. You cannot use the new numbers on Tasmota versions prior to version 9. OTOH, old working numbers will generally be upgraded to the new scheme, if/when used.
It still works for me with 10.0.0.1. What templates do you guys use? This is mine:
{"NAME":"Shelly 2.5","GPIO":[320,0,34,0,224,129,0,0,640,128,608,225,3456,4736],"FLAG":0,"BASE":18}
Mine is: {"NAME":"Shelly 2.5","GPIO":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736],"FLAG":0,"BASE":18}
Tried yours and did a restart. Nothing changed.
And this is mine
{"NAME":"Shelly 2.5","GPIO":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736],"FLAG":0,"BASE":18}
Perhaps time to revisit your template.... and then update the docs.
Mine's identical, does not work.
@clau-bucur I understand your case to be different from the original one. You have an old unit that was working and is still working with newer firmware You have brand new units that doesn't work with any firmware
May be time to consider that could be a new hw revision. Need to open the box and provide nice photos.
Lovely! I'm not too happy digging into the wall to get one out for the pictures. I think I have a spare one, will try on it later and if it's the same behavior I'll post pictures of that.
I managed to get some pictures of the spare one, which does not work either. Here they are, looks like a rather new revision:
Apart from the date, 2020-07-28, looks the same as my from 2019-11-05 The chip in the middle is the flash chip, differences in which brand should not matter.
The only issue I know of is energy monitoring not working if not power cycling after flashing Tasmota.
Then what's the problem here? I have rebooted the device, of course.
reboot/restart and power-cycling is not the same thing
That is correct and embarrassing! My bad. After a power cycle they all provide power measurements. Thank you.
reboot/restart and power-cycling is not the same thing
Thanks, helped me, too :)
PROBLEM DESCRIPTION
I have 15 Shelly 2.5 devices with Tasmota running. 13 are connected to 2 loads, they are reporting power measurements as expected. 2 of them have only a single load (connected to O1) and those two are not reporting any power measurements.
A clear and concise description of what the problem is. No power measurements when only a single load is connected. I would expect the have power measurements even when a single load is connected.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Rules output here: 21:50:04 CMD: Backlog Rule1; Rule2; Rule3 21:50:04 MQT: stat/KeukenBuitenLicht/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":190,"Free":321,"Rules":"on power2#state do publish cmnd/TuinLicht/Power1 %value% endon on power2#state do publish cmnd/TuinLicht/Power2 %value% endon on power2#state do publish cmnd/SchuurLicht/Power2 %value% endon"} 21:50:04 MQT: stat/KeukenBuitenLicht/RESULT = {"Rule2":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""} 21:50:04 MQT: stat/KeukenBuitenLicht/RESULT = {"Rule3":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
STATUS 0 output here: 21:50:37 CMD: Status 0 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS = {"Status":{"Module":0,"DeviceName":"KeukenBuitenLicht","FriendlyName":["KeukenBuitenLicht1","KeukenBuitenLicht2"],"Topic":"KeukenBuitenLicht","ButtonTopic":"0","Power":3,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[6,6,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:53:51","StartupUTC":"2020-10-31T19:56:46","Sleep":50,"CfgHolder":4617,"BootCount":4,"BCResetTime":"2020-10-31T20:53:56","SaveCount":19,"SaveAddress":"F9000"}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS2 = {"StatusFWR":{"Version":"9.0.0.3(tasmota)","BuildDateTime":"2020-10-31T17:14:54","Boot":31,"Core":"2_7_4_5","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"455/699"}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["DeDroogIoT",""],"TelePeriod":30,"Resolution":"558180C0","SetOption":["0000A009","2805C8000100060000005A00000000000000","00000008","00006000","00000000"]}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS4 = {"StatusMEM":{"ProgramSize":599,"Free":404,"Heap":23,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"15701C","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAE797","04368001","000000CF","010013C0","C000F981","00004004","00000000"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37","Sensors":"1,2,3,4,5,6"}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS5 = {"StatusNET":{"Hostname":"KeukenBuitenLicht-8185","IPAddress":"10.0.3.63","Gateway":"10.0.3.1","Subnetmask":"255.255.255.0","DNSServer":"10.0.3.1","Mac":"40:F5:20:17:5F:F9","Webserver":2,"WifiConfig":4,"WifiPower":17.0}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS6 = {"StatusMQT":{"MqttHost":"10.0.0.15","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_175FF9","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS7 = {"StatusTIM":{"UTC":"2020-10-31T20:50:37","Local":"2020-10-31T21:50:37","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":99,"Sunrise":"07:33","Sunset":"17:09"}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS10 = {"StatusSNS":{"Time":"2020-10-31T21:50:37","ANALOG":{"Temperature":60.5},"TempUnit":"C"}} 21:50:37 MQT: stat/KeukenBuitenLicht/STATUS11 = {"StatusSTS":{"Time":"2020-10-31T21:50:37","Uptime":"0T00:53:51","UptimeSec":3231,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Wifi":{"AP":1,"SSId":"DeDroog_IoT","BSSId":"C6:FB:E4:C1:64:92","Channel":1,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:04"}}}
Console output here: