ricott / homey-com.victronenergy

https://homey.app/a/com.victronenergy
GNU General Public License v3.0
3 stars 2 forks source link

Adding Victron EV charger #17

Open CoMMiCH opened 11 months ago

CoMMiCH commented 11 months ago

Amazing application so far.

Would it be possible to add the EV charger as well? image

ricott commented 11 months ago

Hi!

If you are able to help out with testing I think it could be done. I don't own one and will have a hard time testing it. Will require you to be able to install the app via CLI from your laptop, but it is not a complex task.

CoMMiCH commented 11 months ago

I can help out with testing

chrisboer commented 10 months ago

I can help also I have a Cerbo GX installed and a homey pro

ricott commented 8 months ago

The repo now contains the code for an EV Charger device. Wrong icon for the device, but I have requested a proper one. Anyone of you willing to install the app via CLI and give it a go?

chrisboer commented 8 months ago

Hi Ricott you mean MPPT I have an MPPT installed on my Cerbo GX via VE CAN so I can check it.

ricott commented 8 months ago

This ticket is about adding support for the Victron EV Charger

chrisboer commented 8 months ago

Sorry not thinking straight... Electric Vehicle

CoMMiCH commented 8 months ago

The repo now contains the code for an EV Charger device. Wrong icon for the device, but I have requested a proper one. Anyone of you willing to install the app via CLI and give it a go?

Yes! I will test it

CoMMiCH commented 8 months ago

The repo now contains the code for an EV Charger device. Wrong icon for the device, but I have requested a proper one. Anyone of you willing to install the app via CLI and give it a go?

I have no experience installing apps via CLI for Homey, currently I am attempting to install through WSL (under Windows 11). I have Homey installed through npn and cloned the Github repository throuh "gh repo clone ricott/homey-com.victronenergy".

I can login to homey with "homey login" as console command and my homey is selected. When I try to run the cloned app from Github I get a "segmentation error" at first. After installing Docker I get:

sudo homey app run /usr/local/lib/node_modules/homey/lib/Log.js:32 props[key] = value.message ?? value.toString(); ^

SyntaxError: Unexpected token '?'

Likely I am forgetting a step somewhere, any help would be appreciated to get it running :-).

ricott commented 8 months ago

Sure, I wrote a small guide for another of my apps. If you use the VRM device type you will have the same encryption problem as described there. If you don't have a VRM device then you can ignore that part.

These days if you do homey app run the Homey CLI will want to run the app on your laptop using docker. If you want to run the app on your Homey you need to type homey app run --remote. sudo is not needed.

Homey uses node.js in version 18. I use v20 on my laptop.

mioapp23 commented 8 months ago

I would also welcome and support a Victron EV in Homey. It would be amazing to control the performance of an EV based on the impact of the sun.

ricott commented 7 months ago

I just pushed v1.2.9 to test, it contains a device type for the ev charger. I don't own one, so need help testing 😀

Zdeniki03 commented 7 months ago

I just pushed v1.2.9 to test, it contains a device type for the ev charger. I don't own one, so need help testing 😀

Thank you!

I can try to test it. Unfortunately, I ended up with the first step. I don't know how to enter a new device. Where can I find the com.victronenergy.charger entry please? Thanks for your help. ev charger

Zdeniki03 commented 7 months ago

I found the necessary data and the charger was added to Homey just fine. The on off control works fine. But doesn't actualize the charging values. ev charger not update

CoMMiCH commented 5 months ago

Same here, I can add and see the charger. I can start and stop the charger but the values do not update in Homey.

CoMMiCH commented 5 months ago

The interval should be 10 seconds, but according to the graphs in homey the interval is 10 minutes at this moment: image

also charging time is in seconds: image

So it is working but something with the intervals is not correct yet it seems.

CoMMiCH commented 4 months ago

@ricott are you able to edit the interval issues?