kr0ner / OneESP32ToRuleThemAll

17 stars 5 forks source link

Combines the energy entities and returns only the sum #40

Closed Hotdogxxxx closed 1 month ago

Hotdogxxxx commented 1 month ago

I waited until midnight to check again that everything is working correctly. I’m sending it to you as a draft because I still have a problem with two entities. For some reason, my ESP doesn’t boot after compiling when I leave these two values activated. I don’t have 2WE myself and can’t solve the problem. I suspect it might be due to the zero values being used for multiplication, but I’m not sure.

Another approch is that the ID numbers migh be incorrect, as I didn’t see any values being received in the log.

`

WAERMEERTRAG_2WE_HEIZ_TAG: !include { file: wp_energy_offset.yaml, vars: { property_numerator: "WAERMEERTRAG_2WE_HEIZ_TAG_KWH", property_minor: "WAERMEERTRAG_2WE_HEIZ_TAG_WH" }} # Issue: Deactivated because my ESP compiles but fails to connect when it is activated

WAERMEERTRAG_2WE_WW_TAG: !include { file: wp_energy_offset.yaml, vars: { property_numerator: "WAERMEERTRAG_2WE_WW_TAG_KWH", property_minor: "WAERMEERTRAG_2WE_WW_TAG_WH" }} # Issue: Deactivated because my ESP compiles but fails to connect when it is activated

`

And I renamed ‘WAERMEERTRAG_RUECKGE_TAG_WH’ to ‘WAERMEERTRAG_WRG_TAG_WH’ to match the original naming in the WP and documentation.

kr0ner commented 1 month ago

There were some things that I had to change, like the sntp triggers. Also made a generic_combined template and used it like you did, but additionally also to combine the VERDICHTERSTARTS :+1: finally got rid of that extra :hotdog: I don't know why your version crashes ... for me all values work. You want to give it a try? https://github.com/kr0ner/OneESP32ToRuleThemAll/pull/38