You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those with a GivEnergy EVC who are using the RESTful interface to control their charger, you will notice the app has the ability to "throttle" the charging rate in amps. There is a (semi) equivalent value in Predbat which controls the power in kW and I liked the idea of linking the two so that the rate adopts the value set from the charger which itself is pulled from the API using REST and converted to kW using the actual grid voltage.
There's a few components to this so I'll break it down.
Firstly, you need to add a new sensor to pull the charging rate in from the API - copy/paste the below into your existing REST configuration for your EVC - if you've used Oliver "Speak to the Geek"'s method this should work with no changes;
Next we will create a template sensor which converts the amps to kilowatts using your inverter grid voltage value. If you don't have an inverter you can simply hard-code it as 230 or whatever your mean grid voltage is. This sensor is also protected against the source going unknown which periodically happens when the REST call is made;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For those with a GivEnergy EVC who are using the RESTful interface to control their charger, you will notice the app has the ability to "throttle" the charging rate in amps. There is a (semi) equivalent value in Predbat which controls the power in kW and I liked the idea of linking the two so that the rate adopts the value set from the charger which itself is pulled from the API using REST and converted to kW using the actual grid voltage.
There's a few components to this so I'll break it down.
Firstly, you need to add a new sensor to pull the charging rate in from the API - copy/paste the below into your existing REST configuration for your EVC - if you've used Oliver "Speak to the Geek"'s method this should work with no changes;
Next we will create a template sensor which converts the amps to kilowatts using your inverter grid voltage value. If you don't have an inverter you can simply hard-code it as 230 or whatever your mean grid voltage is. This sensor is also protected against the source going unknown which periodically happens when the REST call is made;
Finally you need an automation which keeps the two in sync;
Optionally you can smooth out the grid voltage readings by putting them inside a statistics sensor;
...and update the sensor in the template sensor...
The Predbat value will now be kept in sync with the charging power from the GivEVC.
Beta Was this translation helpful? Give feedback.
All reactions