-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Comments
As I mentioned on Google Groups - A rule using 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 InformationSee Wiki for more information. |
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? |
Once the switch is off, there is no power consumed through the relay. It's been discussed previously. This But, if you are looking for consistent behavior for you... Rules. |
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. 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. |
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. |
Closing this issue as it is duplicated. Sorry. Remember to read the Contributing Guideline and Policy. Thanks. Support InformationSee Docs for more information. |
sorry for my post, where is the original issue post ?? Thanks |
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 |
- Bump version to 8.4.0.3 - Add command ``PowerDelta1`` to ``PowerDelta3`` to trigger on up to three phases (#9134)
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!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)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)
The text was updated successfully, but these errors were encountered: