elden1337 / hass-peaq

Home Assistant custom component that aids in both peak-level energy charge avoidance and spotprice-aware charging.
Other
48 stars 7 forks source link

Refactor Zaptec setup (breaking change on their part) #321

Closed elden1337 closed 1 week ago

elden1337 commented 11 months ago

https://github.com/custom-components/zaptec#bangbang-breaking-change

elden1337 commented 11 months ago

@JonathanJorstad i realize this will go so much quicker if i could get a list of sensors from you that you would claim are:

JonathanJorstad commented 11 months ago

Ok, there's always a risk of me making a mistake but i think it's like this: There are three devices:

  1. the installation (top entity - this is where you set the current limitation)
  2. the circuit (this is mainly a passive device, just conatining the information about the current limitation in the physical electrical circuit - should not be changed)
  3. and finally the charger (or multiple chargers). This division in three levels mirrors the setup in the Zaptec native application.
elden1337 commented 11 months ago

ok, so there are two variables for this integration now, CHARGER_NAME and INSTALLATION_NAME. hmm. that calls for a bit larger refactoring i'm afraid, let me think.

gustafssone commented 8 months ago

I upgraded the Zaptec installation and the new version with updating amps works just fine. Here is a blueprint that defines loadbalancing too, which I use: https://github.com/svenakela/ha/blob/main/zaptec/charger-balancing-blueprint.yaml . It might give you hints on what variables to use.