How to enable custom #define for ADE7880 driver #19391
Replies: 3 comments
-
I saw your discord discussion and hoped you never got here.... Anyway. I suggest you first try to make your FIRMWARE_SHELLY3EM functional without changing the ADE7880 driver. I guess your current issue with the EnergyFormat error is that in addition to your enabled ADE7880 driver you also need the energy driver (define USE_ENERGY_SENSOR) which provides the EnergyFormat function (and the core of any energy presentation). And ofcourse the ADE7990 needs I2C enable (define USE_I2C) In addition I made your suggested changes to the ADE7880 driver in the latest dev release just now. |
Beta Was this translation helpful? Give feedback.
-
Oh, looking at your file I noticed you are not using the latest released driver source. It has changed some months ago. I suggest you restart your effort using the latest dev branch which has the correct EnergyFmt function. |
Beta Was this translation helpful? Give feedback.
-
No such luck, sorry. But I hope it will be quick and painless. I added I2C and energy_sensor and pulled the git again. I have no idea why my fork was outdated. I literally forked it yesterday. Anyway, build went through and I am now testing the "normal" build on a spare device before testing the Shelly 3EM build. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I would really like to not just ask for help but be part of the solution.
But well, I have my IT strengths and weaknesses.
I would like to adjust xnrg_23_ade7880.ino so the user can
#define
the different calibration data during compilation rather than using (and wasting) rules.When I try to
#undef
and then#define
viauser_config_override.h
I got
So sfromis told me that the driver does not support this.
So I changed the driver to
(of course I always change all parameters but I omit them here)
Having done that, I run into the issue that the driver later needs this definition
Could someone help me or tell me what to do to make it work?
I would be happy to do any leg work/busy work that is needed to make this a default for everyone.
Also happy to grant rights to anyone willing to help, if that would make it easier for some
https://github.com/AleXSR700/Tasmota-dev/blob/development/tasmota/tasmota_xnrg_energy/xnrg_23_ade7880.ino
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions