torbennehmer / hacs-e3dc

Homeassistant E3DC Integration
GNU Affero General Public License v3.0
70 stars 8 forks source link

Total wallbox usage missing #90

Open derhappy opened 1 year ago

derhappy commented 1 year ago

Checklist

Is your feature request related to a problem? Please describe.

There is an entity for wallbox consumption (kW), but the entity for the total consumption (kWh) is missing.

This is the only entity missing for me to switch from my previous e3dc interface to this integration. There is also more detailed data available (kWh solar / net), but for me the sum is already enough.

Describe the solution you'd like

A new entity for wallbox_consumption_total (or _today) is available.

Describe alternatives you've considered

A Riemann integral would technically be possible. Using another interface to get the data like before would be the another valid option.

Additional context

Currently I'm using the go-rscp command line utility by @spali (https://github.com/spali/go-rscp/). I can get the wallbox data with these keys:

  [ # day current
    "DB_REQ_HISTORY_DATA_DAY",
    [
      ["DB_REQ_HISTORY_TIME_START", some nonsense ],
      ["DB_REQ_HISTORY_TIME_INTERVAL", more nonsense ],
      ["DB_REQ_HISTORY_TIME_SPAN", guess ]
    ]
  ],
  [
    "WB_REQ_DATA",
    [
      ["WB_INDEX", 0],
      "WB_REQ_ENERGY_ALL",
      "WB_REQ_ENERGY_SOLAR"
    ]
  ]
]

example result

result:
  DB_SUM_CONTAINER:
    DB_GRAPH_INDEX: -1
    DB_BAT_POWER_IN: 799.5
    DB_BAT_POWER_OUT: 731.5
    DB_DC_POWER: 4714
    DB_GRID_POWER_IN: 57
    DB_GRID_POWER_OUT: 57612
    DB_CONSUMPTION: 63710
    DB_PM_0_POWER: 0
    DB_PM_1_POWER: -1874.5
    DB_BAT_CHARGE_LEVEL: 17.696
    DB_BAT_CYCLE_COUNT: 0
    DB_CONSUMED_PRODUCTION: 99.07392
    DB_AUTARKY: 9.571495
  WB_INDEX: 0
  WB_ENERGY_ALL: 60670
  WB_ENERGY_SOLAR: 599
friendly_name: e3dc_today

Diagnostics dump

e3dc_dump.json

derhappy commented 1 year ago

I think this data is still missing from the library you're using, so I updated a feature request there with some additional data.

torbennehmer commented 12 months ago

@derhappy I'll look into this. One thing, could you send me a diagnostics dump when your WB is loading? I've not yet seen how the existing API reacts if the WB is active. Please attach it to #54. That would be cool!

T1ppes commented 7 months ago

Wallbox Interactions have been merged to python-e3dc today. https://github.com/fsantini/python-e3dc/pull/116

MBerchtold21 commented 5 months ago

I would need exactly the same. The total wallbox consumption is a important figure. Would be really great if it is possible to add it.

Can we expect it to be added? Or what is the plan? Thank you very much!

bullitt186 commented 4 months ago

@derhappy, @MBerchtold21 , The Beta of 3.8 brings improved Wallbox support, including wallbox consumption broken down into total, grid and sun:

image

Feel free to test and provide feedback in this issue

MBerchtold21 commented 3 months ago

@derhappy, @MBerchtold21 , The Beta of 3.8 brings improved Wallbox support, including wallbox consumption broken down into total, grid and sun:

image

Feel free to test and provide feedback in this issue

Very cool, thanks a lot! Stupid question: How can I switch to the new beta version in HA?