arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.71k forks source link

MaxPower does not have effect on Channel 1 on SONOFF Dual R3 #21695

Open garageeks opened 3 days ago

garageeks commented 3 days ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

I have a Sonoff POW Dual R3 running Tasmota 13.4.0(tasmota32)] I set up "MaxPower 300" command to switch off power when the more than 300 Watts are pulled. This works on channel 0, but not on channel 1. I tried "MaxPower0 300" like "Power0" style command that is applied on all channels, but it doesn't appear to have an effect. The documentation doesn't specify how to set power limit to a specific channel.

REQUESTED INFORMATION

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

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:

11:55:17.365 CMD: MaxPower 11:55:17.369 RSL: RESULT = {"MaxPower":300} 11:55:21.013 CMD: SetAllPower 11:55:21.022 RSL: RESULT = {"Command":"Unknown"}

- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior:

Set power limit command with MaxPower x where x is a threshold for number of watts

EXPECTED BEHAVIOUR

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

Both channel 0 and channel 1 would switch off

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

A similar issue on a Shelly device was reported here and marked as fixed, but it is not clear which commands are used. https://github.com/arendst/Tasmota/issues/6340

A similar issue for the same device is in the discussions, but got not reply https://github.com/arendst/Tasmota/discussions/18789

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

barbudor commented 3 days ago

From the code, this feature do not support channels The command is 'MaxPower' without index and it applies only to the 1st channel

Behavior may be modified by 'MaxPowerHold' and 'MaxPowerWindow'

There is no command 'SetAllPower' this your error

garageeks commented 3 days ago

@barbudor thank you for the quick reply. Indeed the fix I mentioned https://github.com/arendst/Tasmota/commit/d44104135e7194120715c3267236dc93e316bb8a is switch off both channel when Channel 0 threshold is met. I don't necessarily need to set up different power limits for each channel, it would be great that MaxPower would be effective on both channels.

arendst commented 3 days ago

I'll have a look if implementing multi channel is an option.

garageeks commented 3 days ago

@arendst thank you, really appreciated. I'm always available for testing.

arendst commented 2 days ago

Give dev v14.1.0.3 a try.

Individual phases can now be configured and controlled with MaxPower2 300 for phase/channel 2 and MaxPower1 200 for phase/channel 1.

For backward compatibility MaxPower1 500 with any other MaxPower<x> 0 will result in all phase/channel power control.

garageeks commented 1 day ago

@arendst Thank you for the quick update! I will have access to my test setup next week, will try it and provide feedback.