I have been researching if an existing integration is actually a rebranded Zealux heatpump. If so, that integration should also work with any other Alsavo Pro-compatible heatpump. But so far I haven’t been able to find one .
Thanks for replying.
Converting to Python is far beyond my non-existing programming skills. But it got me thinking.
Im hoping to compile it as a ubuntu executable and have home assistant send commands using command line sensor: Command line Sensor - Home Assistant
My next experiment is to try to install ubuntu + whatever needed in a virtual machine and compile it there, then copy the executable to the HA server (also running in ubuntu virtualbox on windows).
Ah, nevermind. I am used to seeing Python and C code, not C++. So when I saw the # in front I interpreted that as a line that was commented out, but I see now this is a feature of C++.
Hi, I am not skilled enough for fully implementing all this. But I am thinking, wouldn’t it be easier, in a first step to have it running on a docker container, and have it publish and listen via mqtt as suggested here MQTT publish and listen · Issue #7 · strandborg/AlsavoCtrl · GitHub ?
I would love to help as much as I can on that…
Then it is reltively easy to run a container as an add-on through HA supervisor and even add HA mqtt autodiscovery. But that is more the icing on the cake.
Check that you are in the the AlsavoCtrl directory when executing the commands?
I just tested in a new dir (i use vim to edit the file):
mkdir test
cd test
git clone https://github.com/strandborg/AlsavoCtrl.git
cd AlsavoCtrl/
vim loguru.cpp
apk add cmake make musl-dev build-base linux-headers curl-dev
cmake --clean-first -DCMAKE_EXE_LINKER_FLAGS="-static -Os" .
make
I havent managed to run the command from home assistant as a command line sensor or shell_command.
But, I got Node-RED to execute the command using the exec function. So i have a flow that sets heatpump temp to 40 degrees if the water temp is below threshold and set the heatpump temp to 34 degrees if not. Works well and stops the heatpump from overshooting the target when just filtering the water.
Now I need to find a way to parse the data from the heatpump. I believe Node-RED can help, but havent tried yet.
Great idea with Node Red !! I manged to run the command as well and parsed the string in individual JSON items which I am now sending every x seconds to MQTT.
Then from them I will create template MQTT sensors and a climate device.
I need to work more on the subscribing of MQTT to control from home assistant, but should be feasible !
you can turn it off using
./AlsavoCtrl -s xxxxx -l yyyy 4 5
turn on:
./AlsavoCtrl -s xxxxx -l yyyy 4 51 (turn on in auto mode)
./AlsavoCtrl -s xxxxx -l yyyy 4 52 (turn on in cool mode)
./AlsavoCtrl -s xxxxx -l yyyy 4 53 (turn on in heat mode)