Issue with setting active_power in Berry #21913
Replies: 3 comments 9 replies
-
I'm trying to reproduce, but I'm not sure what you mean with dummy driver. Is it the one enabled with In such case, values are set through the driver, not by writing directly in the Energy structure. |
Beta Was this translation helpful? Give feedback.
-
@s-hadinger I'm glad that you are going to use pseudo arrays instead of the _2 _3 etc. construct. Makes for much cleaner code. |
Beta Was this translation helpful? Give feedback.
-
In Tasmota 14.2 energy module was refactored. Now I am not able to set current at all when "current_available" is 0. @s-hadinger what are the plans with calculating current from power and voltage? |
Beta Was this translation helpful? Give feedback.
-
I have a few modbus devices which gives out only Voltage and Active Power per phase, no current available. Tasmota could calculate current by Voltage and Power as it calculates Power from Voltage and Current.
I am using dummy energy driver.
Here is one test example:
And code which is calculating Power from Current:
https://github.com/arendst/Tasmota/blob/development/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino
Beta Was this translation helpful? Give feedback.
All reactions