Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shelly 2.5 - MQTT send sensor update on switch change #9134

Closed
4 of 7 tasks
GiorgioRoma opened this issue Aug 20, 2020 · 9 comments
Closed
4 of 7 tasks

Shelly 2.5 - MQTT send sensor update on switch change #9134

GiorgioRoma opened this issue Aug 20, 2020 · 9 comments
Labels
duplicated Result - Duplicated Issue

Comments

@GiorgioRoma
Copy link

GiorgioRoma commented Aug 20, 2020

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

In shelly 2.5 when I change the state of a switch, the other shelly data (eg Watts consumed) is not sent (via mqtt). These are sent only according to the teleperiod parameter.
I tried using the "PowerDelta" command but it only works with switch1

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • [ x] Searched the problem in issues
  • [ x] Searched the problem in the docs
  • [ x] Searched the problem in the forum
  • [ x] Searched the problem in the chat
  • [ x] Device used (e.g., Sonoff Basic): Shelly 2.5___
  • [ X] Tasmota binary firmware version number used: 8.4.0_
    • [ X] Pre-compiled
    • Self-compiled
      • IDE / Compiler used: _____
  • [ X] Flashing tools used: _esptool
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:
10:49:42 CMD: Backlog Template; Module; GPIO 255
10:49:42 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"NAME":"Shelly 2.5","GPIO":[56,255,17,255,21,127,0,0,6,128,5,22,156],"FLAG":2,"BASE":18}
10:49:42 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"Module":{"0":"Shelly 2.5"}}
10:49:42 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"GPIO0":{"56":"Led1i"},"GPIO1":{"0":"Nessuno"},"GPIO2":{"17":"Pulsante1"},"GPIO3":{"0":"Nessuno"},"GPIO4":{"21":"Relè1"},"GPIO5":{"127":"Pulsante2in"},"GPIO9":{"0":"Nessuno"},"GPIO10":{"0":"Nessuno"},"GPIO12":{"6":"I2C SDA"},"GPIO13":{"128":"Pulsante3in"},"GPIO14":{"5":"I2C SCL"},"GPIO15":{"22":"Relè2"},"GPIO16":{"156":"ADE7953 - IRQ"}}

  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:


  • Provide the output of this command: Status 0:
  STATUS 0 output here:
10:51:32 CMD: status 0
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS = {"Status":{"Module":0,"DeviceName":"Luci Corridoio Luce Scale Primo Piano","FriendlyName":["Luci Corridoio primo piano","Luce scale primo piano"],"Topic":"primopiano/lucicorridoio_lucescale","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[3,3,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/release/tasmota.bin","RestartReason":"External System","Uptime":"0T15:43:25","StartupUTC":"2020-08-19T17:08:07","Sleep":50,"CfgHolder":4617,"BootCount":39,"BCResetTime":"2020-08-07T17:11:01","SaveCount":295,"SaveAddress":"F5000"}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS2 = {"StatusFWR":{"Version":"8.4.0(tasmota)","BuildDateTime":"2020-07-29T12:26:48","Boot":31,"Core":"2_7_2_1","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"508/699"}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Vodafone-37853567",""],"TelePeriod":60,"Resolution":"55C180C0","SetOption":["000A880F","0A05C8000100060000005A00000000000000","00000200","00006000"]}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS4 = {"StatusMEM":{"ProgramSize":593,"Free":408,"Heap":23,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"15701C","FlashFrequency":40,"FlashMode":3,"Features":["00000410","8FDAE797","04368001","000000CD","010013C0","C000F981","00004004"],"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"}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS5 = {"StatusNET":{"Hostname":"LuciCorridoioLuceScalaPrimoPian","IPAddress":"192.168.1.217","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.1.1","Mac":"D8:F1:5B:12:EE:02","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.13","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_12EE02","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS7 = {"StatusTIM":{"UTC":"2020-08-20T08:51:32","Local":"2020-08-20T10:51:32","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":99,"Sunrise":"06:50","Sunset":"20:55"}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS9 = {"StatusPTH":{"PowerDelta":1,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS10 = {"StatusSNS":{"Time":"2020-08-20T10:51:32","ANALOG":{"Temperature":68.5},"ENERGY":{"TotalStartTime":"2020-08-07T17:11:01","Total":0.010,"Yesterday":0.001,"Today":0.000,"Power":[0,0],"ApparentPower":[0,0],"ReactivePower":[0,0],"Factor":[0.00,0.00],"Frequency":0,"Voltage":0,"Current":[0.000,0.000]},"TempUnit":"C"}}
10:51:32 MQT: home/primopiano/lucicorridoio_lucescale/STATUS11 = {"StatusSTS":{"Time":"2020-08-20T10:51:32","Uptime":"0T15:43:25","UptimeSec":56605,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:05"}}}

  • Provide the output of the Console log output when you experience your issue; if applicable:
    (Please use weblog 4 for more debug information)
  Console output here:
10:52:19 CMD: weblog 4
10:52:19 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"WebLog":4}
10:52:20 CFG: Salvato nella flash in F4, Conteggio 296, Byte 4096
10:52:20 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T10:52:20","Uptime":"0T15:44:13","UptimeSec":56653,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:05"}}
10:52:20 MQT: home/primopiano/lucicorridoio_lucescale/SENSOR = {"Time":"2020-08-20T10:52:20","ANALOG":{"Temperature":67.6},"ENERGY":{"TotalStartTime":"2020-08-07T17:11:01","Total":0.010,"Yesterday":0.001,"Today":0.000,"Period":0,"Power":[0,0],"ApparentPower":[0,0],"ReactivePower":[0,0],"Factor":[0.00,0.00],"Frequency":0,"Voltage":0,"Current":[0.000,0.000]},"TempUnit":"C"}
10:52:20 ADE: 5997430, 4473, [1773, -17, 633, 74], [1773, -10, 633, -2]
10:52:20 ADE: U 5997430, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:21 ADE: 5999804, 4474, [1773, 2, 633, 55], [1773, -32, 633, -2]
10:52:21 ADE: U 5999804, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:22 UDP: Packet (119)
10:52:22 ADE: 5999106, 4474, [1773, -45, 633, 12], [1773, 1, 633, -9]
10:52:22 ADE: U 5999106, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:23 ADE: 6002513, 4474, [1773, 19, 633, 108], [1773, -24, 633, 10]
10:52:23 ADE: U 6002513, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:23 UDP: Packet (119)
10:52:24 UDP: Packet (119)
10:52:24 ADE: 5998422, 4474, [1773, 42, 633, 60], [1773, 5, 633, 16]
10:52:24 ADE: U 5998422, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:25 ADE: 5998412, 4474, [1773, 19, 633, 10], [1773, -8, 633, -15]
10:52:25 ADE: U 5998412, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:26 ADE: 6004678, 4474, [1773, -36, 633, 28], [1773, 8, 634, 11]
10:52:26 ADE: U 6004678, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:27 UDP: Packet (119)
10:52:27 ADE: 5997579, 4474, [1773, -50, 633, 71], [1773, -10, 633, -3]
10:52:27 ADE: U 5997579, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:28 ADE: 5998002, 4473, [1773, -60, 633, 40], [1773, 7, 633, 6]
10:52:28 ADE: U 5998002, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:29 ADE: 5998494, 4475, [1773, 9, 633, -3], [1773, -24, 633, 17]
10:52:29 ADE: U 5998494, C 4475, I 0 + 0 = 0, P 0 + 0 = 0
10:52:30 ADE: 6004174, 4474, [1773, -54, 633, 104], [1773, 4, 634, 28]
10:52:30 ADE: U 6004174, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:31 ADE: 6005636, 4473, [1773, -5, 633, 24], [1773, -6, 634, 1]
10:52:31 ADE: U 6005636, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:32 UDP: Packet (119)
10:52:32 ADE: 6004659, 4474, [1773, 2, 633, 40], [1773, -9, 634, -21]
10:52:32 ADE: U 6004659, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:33 ADE: 6006461, 4474, [1773, -7, 634, 22], [1773, 9, 634, 4]
10:52:33 ADE: U 6006461, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:34 ADE: 6007392, 4474, [1773, -9, 634, 21], [1773, -2, 634, -3]
10:52:34 ADE: U 6007392, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:34 UDP: Packet (94)
10:52:34 UDP: Packet (94)
10:52:34 UDP: Packet (101)
10:52:35 ADE: 5996106, 4474, [1773, 7, 633, 20], [1773, 6, 633, 5]
10:52:35 ADE: U 5996106, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:36 ADE: 5993752, 4474, [1773, -31, 632, 34], [1773, -5, 633, -1]
10:52:36 ADE: U 5993752, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:36 UDP: Packet (94)
10:52:36 UDP: Packet (94)
10:52:36 UDP: Packet (101)
10:52:36 UPP: Hue 3 pacchetti di risposta inviati a 192.168.1.71:35874
10:52:37 UDP: Packet (119)
10:52:37 ADE: 5997522, 4474, [1773, -46, 633, 29], [1773, 4, 633, 16]
10:52:37 ADE: U 5997522, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:38 ADE: 5997102, 4474, [1773, -79, 633, 55], [1773, -18, 633, 13]
10:52:38 ADE: U 5997102, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:38 UDP: Packet (94)
10:52:38 UDP: Packet (101)
10:52:38 UDP: Packet (94)
10:52:39 WIF: Controllo connessione...
10:52:39 ADE: 5998052, 4474, [1773, -52, 633, -13], [1773, -3, 633, 5]
10:52:39 ADE: U 5998052, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:40 ADE: 6001116, 4474, [1773, -33, 633, 83], [1773, 19, 633, -9]
10:52:40 ADE: U 6001116, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:40 UPP: Hue 3 pacchetti di risposta inviati a 192.168.1.71:46258
10:52:41 ADE: 6001955, 4473, [1773, -41, 633, 11], [1773, -11, 634, -4]
10:52:41 ADE: U 6001955, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:42 ADE: 6000170, 4474, [1773, 20, 633, 46], [1773, -1, 633, -6]
10:52:42 ADE: U 6000170, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:43 ADE: 5992078, 4473, [1773, -74, 633, 47], [1773, -13, 633, -6]
10:52:43 ADE: U 5992078, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:44 ADE: 5991094, 4473, [1773, -30, 633, 13], [1773, 0, 632, 20]
10:52:44 ADE: U 5991094, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:44 UDP: Packet (119)
10:52:44 UDP: Packet (119)
10:52:45 UDP: Packet (119)
10:52:45 UDP: Packet (119)
10:52:45 UDP: Packet (119)
10:52:45 UDP: Packet (119)
10:52:45 ADE: 5989204, 4473, [1773, -18, 632, 7], [1773, -8, 632, -7]
10:52:45 ADE: U 5989204, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:45 UDP: Packet (119)
10:52:46 ADE: 5986904, 4473, [1773, -26, 632, 28], [1773, -5, 632, 7]
10:52:46 ADE: U 5986904, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:47 ADE: 5995744, 4473, [1773, -68, 633, 70], [1773, 5, 633, -18]
10:52:47 ADE: U 5995744, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:48 ADE: 5995288, 4474, [1773, -8, 633, 21], [1773, -22, 633, -9]
10:52:48 ADE: U 5995288, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:49 ADE: 5997849, 4473, [1773, -57, 633, 67], [1773, -2, 633, -13]
10:52:49 ADE: U 5997849, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:50 ADE: 5997960, 4473, [1773, -73, 633, 31], [1773, -9, 633, -3]
10:52:50 ADE: U 5997960, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:51 ADE: 5990722, 4474, [1773, -60, 633, 27], [1773, -10, 632, 4]
10:52:51 ADE: U 5990722, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:52 ADE: 5990681, 4474, [1773, 0, 633, 35], [1773, -2, 632, -1]
10:52:52 ADE: U 5990681, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:53 ADE: 5992484, 4474, [1773, 3, 633, 39], [1773, -1, 632, -4]
10:52:53 ADE: U 5992484, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:52:53 UDP: Packet (119)
10:52:54 UDP: Packet (119)
10:52:54 ADE: 5998767, 4473, [1773, -45, 633, 45], [1773, -3, 633, 2]
10:52:54 ADE: U 5998767, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:55 ADE: 6005738, 4473, [1773, 24, 634, 43], [1773, 1, 634, 19]
10:52:55 ADE: U 6005738, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:56 ADE: 5999827, 4473, [1773, -51, 633, 58], [1773, 20, 633, 23]
10:52:56 ADE: U 5999827, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:57 ADE: 6006545, 4473, [1773, -36, 634, -4], [1773, 1, 634, -18]
10:52:57 ADE: U 6006545, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:58 ADE: 6004449, 4473, [1773, -84, 634, 67], [1773, 11, 634, -33]
10:52:58 ADE: U 6004449, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:52:59 WIF: Controllo connessione...
10:52:59 ADE: 5999020, 4474, [1773, -29, 633, 10], [1773, -23, 633, -10]
10:52:59 ADE: U 5999020, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:00 ADE: 6002900, 4474, [1773, -81, 634, 49], [1773, -18, 633, -10]
10:53:00 ADE: U 6002900, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:01 ADE: 6003123, 4474, [1773, -51, 633, -23], [1773, -13, 633, -12]
10:53:01 ADE: U 6003123, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:02 UDP: Packet (91)
10:53:02 ADE: 6001360, 4474, [1773, -22, 633, 30], [1773, -4, 633, -17]
10:53:02 ADE: U 6001360, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:03 ADE: 6010819, 4474, [1773, -61, 634, 43], [1773, -10, 634, 20]
10:53:03 ADE: U 6010819, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:04 UPP: Hue 3 pacchetti di risposta inviati a 192.168.1.13:58762
10:53:04 ADE: 6011302, 4474, [1773, -39, 634, 17], [1773, 10, 634, 34]
10:53:04 ADE: U 6011302, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:05 ADE: 6007279, 4473, [1773, -38, 634, 62], [1773, -4, 634, 6]
10:53:05 ADE: U 6007279, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:06 ADE: 6011321, 4474, [1773, -75, 634, -22], [1773, -16, 634, -1]
10:53:06 ADE: U 6011321, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:07 ADE: 6010520, 4474, [1773, -35, 634, 47], [1773, -28, 634, 8]
10:53:07 ADE: U 6010520, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:08 ADE: 6006510, 4474, [1773, -16, 634, 123], [1773, -6, 634, 14]
10:53:08 ADE: U 6006510, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:09 ADE: 5999506, 4474, [1773, -3, 633, 61], [1773, 8, 633, 2]
10:53:09 ADE: U 5999506, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:10 ADE: 6003293, 4474, [1773, -15, 633, 48], [1773, -10, 633, 12]
10:53:10 ADE: U 6003293, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:11 MQT: home/primopiano/lucicorridoio_lucescale/HASS_STATE = {"Version":"8.4.0(tasmota)","BuildDateTime":"2020-07-29T12:26:48","Module or Template":"Shelly 2.5","RestartReason":"External System","Uptime":"0T15:45:04","Hostname":"LuciCorridoioLuceScalaPrimoPian","IPAddress":"192.168.1.217","RSSI":"50","Signal (dBm)":"-75","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:05","MqttCount":1,"LoadAvg":19}
10:53:11 ADE: 6003622, 4474, [1773, 44, 634, 88], [1773, -19, 634, 23]
10:53:11 ADE: U 6003622, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:12 ADE: 6002354, 4474, [1773, -31, 633, -21], [1773, -18, 633, -7]
10:53:12 ADE: U 6002354, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:13 ADE: 6013050, 4473, [1773, 27, 634, 9], [1773, 8, 635, -11]
10:53:13 ADE: U 6013050, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:14 ADE: 6012664, 4474, [1773, -19, 634, 6], [1773, 19, 635, -25]
10:53:14 ADE: U 6012664, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:14 UDP: Packet (119)
10:53:14 UDP: Packet (119)
10:53:15 UDP: Packet (119)
10:53:15 UDP: Packet (119)
10:53:15 UDP: Packet (119)
10:53:15 ADE: 6008028, 4473, [1773, -17, 634, 91], [1773, -2, 634, 13]
10:53:15 ADE: U 6008028, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:15 UDP: Packet (119)
10:53:15 UDP: Packet (119)
10:53:16 ADE: 6003362, 4474, [1773, -33, 633, 37], [1773, 4, 634, 11]
10:53:16 ADE: U 6003362, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:17 ADE: 6003953, 4474, [1773, 34, 633, -23], [1773, 9, 634, 2]
10:53:17 ADE: U 6003953, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:18 ADE: 6001836, 4473, [1773, 17, 633, 13], [1773, -8, 633, 2]
10:53:18 ADE: U 6001836, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:19 WIF: Controllo connessione...
10:53:19 ADE: 6010310, 4474, [1773, -49, 634, 63], [1773, 13, 634, -6]
10:53:19 ADE: U 6010310, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:20 ADE: 6004982, 4473, [1773, -67, 634, 71], [1773, -7, 634, 9]
10:53:20 ADE: U 6004982, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:20 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T10:53:20","Uptime":"0T15:45:13","UptimeSec":56713,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:05"}}
10:53:20 MQT: home/primopiano/lucicorridoio_lucescale/SENSOR = {"Time":"2020-08-20T10:53:20","ANALOG":{"Temperature":68.0},"ENERGY":{"TotalStartTime":"2020-08-07T17:11:01","Total":0.010,"Yesterday":0.001,"Today":0.000,"Period":0,"Power":[0,0],"ApparentPower":[0,0],"ReactivePower":[0,0],"Factor":[0.00,0.00],"Frequency":0,"Voltage":0,"Current":[0.000,0.000]},"TempUnit":"C"}
10:53:21 ADE: 6002593, 4473, [1773, 23, 633, 65], [1773, 7, 634, 16]
10:53:21 ADE: U 6002593, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:22 ADE: 6075196, 4474, [1773, -35, 641, -2], [1773, 6, 641, 0]
10:53:22 ADE: U 6075196, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:23 ADE: 6061981, 4474, [1773, -15, 640, 68], [1773, 4, 640, 4]
10:53:23 ADE: U 6061981, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:23 UDP: Packet (119)
10:53:24 UDP: Packet (119)
10:53:24 ADE: 6061890, 4474, [1773, -49, 640, 25], [1773, -15, 640, 7]
10:53:24 ADE: U 6061890, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:25 ADE: 6062899, 4474, [1773, -52, 640, 83], [1773, 0, 640, -10]
10:53:25 ADE: U 6062899, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:26 ADE: 6066877, 4474, [1773, -11, 640, 31], [1773, 2, 640, 13]
10:53:26 ADE: U 6066877, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:27 ADE: 6074970, 4474, [1773, -41, 641, 92], [1773, 11, 641, 0]
10:53:27 ADE: U 6074970, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:28 ADE: 6078980, 4473, [1773, 36, 642, 26], [1773, 9, 642, 31]
10:53:28 ADE: U 6078980, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:28 MQT: Topic Ricevuto "home/primopiano/lucicorridoio_lucescale/cmnd/POWER2", Dimensione dati 2, Dati "ON"
10:53:28 SRC: MQTT
10:53:28 CMD: Gruppo 0, Indice 2, Comando "POWER", Dati "ON"
10:53:28 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T10:53:28","Uptime":"0T15:45:21","UptimeSec":56721,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:05"}}
10:53:28 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"ON"}
10:53:28 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = ON
10:53:29 CFG: Salvato nella flash in FB, Conteggio 297, Byte 4096
10:53:29 ADE: 6076434, 4473, [1773, -60, 642, 39], [7784, 1614, 2820, -526]
10:53:29 ADE: U 6076434, C 4473, I 0 + 7784 = 7784, P 0 + 1614 = 1614
10:53:30 ADE: 6074045, 4474, [1773, -38, 641, 57], [7752, 1620, 2807, -537]
10:53:30 ADE: U 6074045, C 4474, I 0 + 7752 = 7752, P 0 + 1620 = 1620
10:53:31 ADE: 6072505, 4474, [1773, -28, 641, -2], [7693, 1605, 2783, -538]
10:53:31 ADE: U 6072505, C 4474, I 0 + 7693 = 7693, P 0 + 1605 = 1605
10:53:31 MQT: Topic Ricevuto "home/primopiano/lucicorridoio_lucescale/cmnd/POWER2", Dimensione dati 3, Dati "OFF"
10:53:31 SRC: MQTT
10:53:31 CMD: Gruppo 0, Indice 2, Comando "POWER", Dati "OFF"
10:53:31 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T10:53:31","Uptime":"0T15:45:24","UptimeSec":56724,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
10:53:31 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"OFF"}
10:53:31 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = OFF
10:53:32 CFG: Salvato nella flash in FA, Conteggio 298, Byte 4096
10:53:32 ADE: 6071915, 4474, [1773, 28, 641, 30], [1773, -29, 641, -11]
10:53:32 ADE: U 6071915, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:33 ADE: 6068556, 4474, [1773, -62, 641, -6], [1773, 9, 641, 0]
10:53:33 ADE: U 6068556, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:34 UDP: Packet (119)
10:53:34 ADE: 6070124, 4473, [1773, -46, 641, 16], [1773, 4, 641, 40]
10:53:34 ADE: U 6070124, C 4473, I 0 + 0 = 0, P 0 + 0 = 0
10:53:34 UDP: Packet (94)
10:53:34 UDP: Packet (101)
10:53:34 UDP: Packet (94)
10:53:35 UDP: Packet (119)
10:53:35 ADE: 6078382, 4474, [1773, -67, 642, 27], [1773, -2, 642, 5]
10:53:35 ADE: U 6078382, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:36 UDP: Packet (119)
10:53:36 ADE: 6080699, 4474, [1773, -55, 642, 37], [1773, 30, 642, 8]
10:53:36 ADE: U 6080699, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:36 UPP: Hue 3 pacchetti di risposta inviati a 192.168.1.71:60472
10:53:36 UDP: Packet (94)
10:53:36 UDP: Packet (101)
10:53:36 UDP: Packet (94)
10:53:37 UDP: Packet (119)
10:53:37 ADE: 6076552, 4474, [1773, -12, 642, 41], [1773, -5, 641, 0]
10:53:37 ADE: U 6076552, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:38 ADE: 6075215, 4474, [1773, -15, 642, -29], [1773, 1, 641, 16]
10:53:38 ADE: U 6075215, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:39 UDP: Packet (94)
10:53:39 UDP: Packet (101)
10:53:39 UDP: Packet (94)
10:53:39 WIF: Controllo connessione...
10:53:39 ADE: 6071173, 4474, [1773, -60, 641, 68], [1773, -3, 641, 8]
10:53:39 ADE: U 6071173, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:40 ADE: 6072325, 4474, [1773, -48, 641, 121], [1773, -10, 641, 21]
10:53:40 ADE: U 6072325, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:40 UPP: Hue 3 pacchetti di risposta inviati a 192.168.1.71:46296
10:53:41 ADE: 6070730, 4474, [1773, 13, 641, 35], [1773, -7, 641, -15]
10:53:41 ADE: U 6070730, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:42 ADE: 6067888, 4474, [1773, -111, 640, 68], [1773, 4, 640, -3]
10:53:42 ADE: U 6067888, C 4474, I 0 + 0 = 0, P 0 + 0 = 0
10:53:42 CMD: weblog 2
10:53:42 SRC: WebConsole from 192.168.1.200
10:53:42 CMD: Gruppo 0, Indice 1, Comando "WEBLOG", Dati "2"
10:53:42 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"WebLog":2}

TO REPRODUCE

Steps to reproduce the behavior:

in shelly 2.5 if you change the status of switches 1 and 2, the consumption information is not sent via mqtt. By sending the "PowerDelta 1" command, the consumption information is sent only if the status of switch 1 changes

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

I would have expected that the values ​​of the consumption sensors had been sent to change the status of the switches, but I saw that instead they are linked to "teleperiod". However, sending the "PowerDelta 1" command, I would have waited for the status of the consumption sensors to be received even when the status of switch 2 changes

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

11:02:00 CMD: PowerDelta 0
11:02:00 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"PowerDelta":0}
11:02:08 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:08","Uptime":"0T15:54:01","UptimeSec":57241,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":46,"Signal":-77,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:08 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER1":"ON"}
11:02:08 MQT: home/primopiano/lucicorridoio_lucescale/POWER1 = ON

11:02:13 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:13","Uptime":"0T15:54:06","UptimeSec":57246,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:13 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"ON"}
11:02:13 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = ON

11:02:18 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:17","Uptime":"0T15:54:10","UptimeSec":57250,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:18 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER1":"OFF"}
11:02:18 MQT: home/primopiano/lucicorridoio_lucescale/POWER1 = OFF
11:02:23 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:23","Uptime":"0T15:54:16","UptimeSec":57256,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:23 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"OFF"}
11:02:23 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = OFF
11:02:27 CMD: PowerDelta 1
11:02:27 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"PowerDelta":1}
11:02:30 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:30","Uptime":"0T15:54:23","UptimeSec":57263,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:30 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER1":"ON"}
11:02:30 MQT: home/primopiano/lucicorridoio_lucescale/POWER1 = ON
11:02:33 MQT: home/primopiano/lucicorridoio_lucescale/MARGINS = {"MARGINS":{"PowerDelta":10}}
11:02:33 MQT: home/primopiano/lucicorridoio_lucescale/SENSOR = {"Time":"2020-08-20T11:02:33","ENERGY":{"TotalStartTime":"2020-08-07T17:11:01","Total":0.010,"Yesterday":0.001,"Today":0.000,"Power":[11,0],"ApparentPower":[18,0],"ReactivePower":[4,0],"Factor":[0.59,0.00],"Frequency":50,"Voltage":230,"Current":[0.076,0.000]}}

11:02:38 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:38","Uptime":"0T15:54:31","UptimeSec":57271,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:38 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"ON"}
11:02:38 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = ON

11:02:45 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:45","Uptime":"0T15:54:38","UptimeSec":57278,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:45 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER1":"OFF"}
11:02:45 MQT: home/primopiano/lucicorridoio_lucescale/POWER1 = OFF
11:02:48 MQT: home/primopiano/lucicorridoio_lucescale/MARGINS = {"MARGINS":{"PowerDelta":-10}}
11:02:48 MQT: home/primopiano/lucicorridoio_lucescale/SENSOR = {"Time":"2020-08-20T11:02:48","ENERGY":{"TotalStartTime":"2020-08-07T17:11:01","Total":0.010,"Yesterday":0.001,"Today":0.001,"Power":[0,10],"ApparentPower":[0,18],"ReactivePower":[0,4],"Factor":[0.00,0.58],"Frequency":50,"Voltage":231,"Current":[0.000,0.077]}}
11:02:54 MQT: home/primopiano/lucicorridoio_lucescale/STATE = {"Time":"2020-08-20T11:02:54","Uptime":"0T15:54:47","UptimeSec":57287,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Vodafone-37853567","BSSId":"2C:91:AB:D3:3F:43","Channel":11,"RSSI":48,"Signal":-76,"LinkCount":1,"Downtime":"0T00:00:05"}}
11:02:54 MQT: home/primopiano/lucicorridoio_lucescale/RESULT = {"POWER2":"OFF"}
11:02:54 MQT: home/primopiano/lucicorridoio_lucescale/POWER2 = OFF

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@meingraham
Copy link
Collaborator

As I mentioned on Google Groups - A rule using Power<x>#State and Status 8.

Please address this to the Tasmota Support Discord Chat. The chat is a better and more dynamic channel for helping you. Github issues are best used for Tasmota software feature requests and bug reporting. Troubleshooting and setup assistance is more effective using an interactive forum.

Please check the Contributing Guideline and Policy and the Support Guide.

Thanks.

Support Information

See Wiki for more information.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@GiorgioRoma
Copy link
Author

Ciao Meingraham, yes, i saw your comment on the google groups, but in my opinion this is a bug, as sending the consumption sensor information is not sent if the state of switch 2 changes, but only if switch 1 changes. do you think it's a bug?

@meingraham
Copy link
Collaborator

Once the switch is off, there is no power consumed through the relay. It's been discussed previously. This PowerDelta "behavior" is as designed. I'm surprised that it is sent when either switch changes state. That may actually be the bug. Unsure.

But, if you are looking for consistent behavior for you... Rules.

@GiorgioRoma
Copy link
Author

what you write is clear, but in the command docs there is this:

Set maximum delta for energy monitoring devices to report on active power load change while the power is ON. PowerDelta will not report when the power turns off. 
0 = disable reporting on power change
1..100 = set reporting on percentage power change to send an MQTT telemetry message
101..32000 = set reporting on absolute power change to send an MQTT telemetry message (offset by 100, e.g., 101=1W, 207=107W)

So it is correct that when the switches are turned off PowerDelta does not generate an update event, it only generates it if there is a change in power (watts) when the switch is on, or when the switch state changes. But this only applies to switch 1, it doesn't work for switch 2, I hope I was clear.

@sfromis
Copy link
Contributor

sfromis commented Aug 20, 2020

The short version is that it would be reasonable to expect PowerDelta to trigger for energy usage changes on both channel 1 and channel 2. However, it only triggers on channel 1, not when turning on/off a consumer on channel 2.

Ignore all that stuff about switch state changes, that is not part of how Tasmota works for energy monitoring.

The easy way forward is, as already suggested, to create a small rule to trigger some more reporting of the energy consumption numbers.

@ascillato2 ascillato2 added the duplicated Result - Duplicated Issue label Aug 20, 2020
@ascillato2
Copy link
Collaborator

Closing this issue as it is duplicated. Sorry.

Remember to read the Contributing Guideline and Policy. Thanks.


Support Information

See Docs for more information.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@GiorgioRoma
Copy link
Author

sorry for my post, where is the original issue post ?? Thanks

@sfromis
Copy link
Contributor

sfromis commented Aug 20, 2020

#7890

@GiorgioRoma
Copy link
Author

Thanks for the reply, however my report is different than the post reported, the bug I described concerns switch2, when its status changes (ON), PowerDelta does not send sensor data. This is the bug

arendst added a commit that referenced this issue Aug 23, 2020
- Bump version to 8.4.0.3
- Add command ``PowerDelta1`` to ``PowerDelta3`` to trigger on up to three phases (#9134)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicated Result - Duplicated Issue
Projects
None yet
Development

No branches or pull requests

4 participants