Closed Henry-Sir closed 1 year ago
Hi Henry,
sorry it took me so long to get back to you. First off, thank you for your extensive work!
I'll adress you modifications seperately:
definitely on board with this one! I've allready implemented this in the code, if that's ok by you. My old way of doing it was still a remnant of a completely other route i was taking previously.
dynamic code length was allready added by the time you posted this. So the implementation is a bit different from yours, but it should do the same thing.
I don't have a smart meter attached, so i really can't confirm this. But if it's working for you, i'll gladly add it to the .h file. However where you say if(grid_power_value.UInt16 > 32768) {
, shouldn't it be if(grid_power_value.UInt16 > 32767) {
?
My ESP was allready struggling with the amount of sensors being updated at the same time. So i didn't add anymore (i'll probably even remove some of the less interesting ones later on). Feedin generation is always 0 for me and i'm not even sure what it's supposed to represent. The timestamp is basicly generated by HA.
Hi,
As I wrote in the Home Assistant forum, I made some changes. First sorry for late response.
For background: I have installed a Foxess T15 with smart meter (https://forum--foxess-pro.translate.goog/community/foxess-konfiguracja-falownikow/opis/?_x_tr_sl=pl&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp) and 17 solar moduls on one string connected to "String 1" Input (String 2, 3, 4 are not used at the moment) This also makes the inverter have values like loadPower, GridPower, Feedin Power, etc.
My change / enhancements
PV power 1 - 4 sensor via class and not as template sensor. Why: The template sensor is updated every 5 seconds, even if it has no values. I found this unattractive. I also added a PV power sensor (total PV power).
dynamic code length As already written, the length changes with the software states. Code length is specified byte 8 & 9.
sensor GridPower & LoadPower gives values close to 65536. According to configuration from inverter exported power may be between 0 - 32767 W. Since I have seen values close to 65536 in the Home Assitant, I had wondered. These values are then the negative values of the grid, so the power that is fed into the grid. -> Value from 0 to 32767 is the power that is consumed by the grid. (positive value) -> Value from 65535 to 32768 is the power that is fed into the grid. (negative value) I also added a FeedIn power sensor.
See the values from ESP and the Foxess cloud
Before the change
After the change
Added a few sensors
YAML and the .h file
foxess-inverter.yaml.txt foxess_t_series.h.txt