chrishrb/hoval-gateway

Feature Request: Home Assistant addon

Closed this issue · 21 comments

CDaxi commented

Hello,

could you provide this repo as a home assistant addon to be installed on the HA machine directly and be configured via the UI?
This will make an additional raspberry pi or machine where the docker image is running obsolete.
It would be a great advantage for HA users.

Thanks a lot.
CDaxi

Hello,
this is not generally possible because you need the connection to the hoval machine over the CAN bus on the machine that runs HA. I don‘t think that this is the case for most users (including me).

Greetings Christoph

bagges commented

I agree with @chrishrb.

It would be cool to port the code to something like ESPHOME. Then we would just need an ESP32 instead of a raspberry pi. Also the integration in Home Assistant would then be easy. I have this on my list, but did not start with it yet because the raspberry pi solution runs too stable :-D

haha same here. I wanted to rewrite the code in rust so I can run it on a microcontroller but i was too lazy (and there was not really a reason for it). Maybe in the next semester break 😄

bagges commented

I just started designing a PCB. 2x RJ45, CJMCU-230 (CAN Tranceiver), ESP32 Dev Kit v4, DC/DC Step Down Converter... Are any of you interested?

CDaxi commented

I just started designing a PCB. 2x RJ45, CJMCU-230 (CAN Tranceiver), ESP32 Dev Kit v4, DC/DC Step Down Converter... Are any of you interested?

Yes I am. Do you plan to implement it with ESPHome? Thats currently my preferred solution if a HA addon will not be available and read already the esphome docs about canbus and ordered some boards to create some tests. Currently I have no Hoval HV but could be the choice in near future.

I just started designing a PCB. 2x RJ45, CJMCU-230 (CAN Tranceiver), ESP32 Dev Kit v4, DC/DC Step Down Converter... Are any of you interested?

Me too, perhaps https://github.com/MagnusThome/RejsaCAN-ESP32 could help.

bagges commented

pcb_esp32_canbus

schematic_esp32_canbus

This is what I created, but I had no time to test the PCB yet. I have 4 spare PCBs if someone is interessted...

Can you share the easyeda project or source ?
(I mean the hoval can-bus power is 12V)
I'll post the full modbus-datapoints from hoval in PR

That version seems to works, at it's sold for 50€ https://raw.githubusercontent.com/wladwnt/CAN-Gateway/master/KiCAD/Version5/CANGateway.svg (but the software cost 130€).

SVG Picture created as CANGateway

bagges commented

I know this project but I do not like closed source projects. Also the PCB is too expensive for what I need.

The DC/DC converter has an input range of 7-24v.

I'll check how I can share the easyeda project.

This is what I created, but I had no time to test the PCB yet. I have 4 spare PCBs if someone is interessted...

Perhaps can you create a dedicated project on github ? I am not bad with esphome and electronics.
I propose to add an optional BLE0939 power sensor and an optional relay to turn off power

bagges commented

Why would you need relais and power sensor?

Why would you need relais and power sensor?

I have energy monitor in hassio and the relay is for fully stop the hvac. The minimum default runs at 15%

The DC/DC converter has an input range of 7-24v.
What is the DC/DC module you use ?

I like AMS1117-5.0

bagges commented

The DC/DC converter has an input range of 7-24v.
What is the DC/DC module you use ?

I like AMS1117-5.0

I do not know the chip on the module. "PEMENOL DC DC Step Down Modul"

The DC/DC converter has an input range of 7-24v.
What is the DC/DC module you use ?

I like AMS1117-5.0

I do not know the chip on the module. "PEMENOL DC DC Step Down Modul"

But your is ?

The shield is done : https://github.com/nliaudat/esp_canbus
Next the firmware part ....

bagges commented

Wow that looks nice!

bagges commented

@chrishrb could you maybe also help here? We are confused about the can_id's to use.

nliaudat/esp_canbus#2

I think we can close this issue because @nliaudat created a separate project for this use case. For questions please look at this repository.