Compile and use executable to control heatpump through HA

I helped a friend to compile alsavoctrl on home assistant OS a month ago. Here’s my notes, which might help you.

  1. Log in to the home assistant shell
  2. Check out the source code (or copy the files to a folder)
  3. Edit loguru.cpp: change LOGURU_STACKTRACES in line 97 to 0
  4. apk add cmake make musl-dev build-base linux-headers curl-dev
  5. cmake --clean-first -DCMAKE_EXE_LINKER_FLAGS="-static -Os" .
  6. make

This should produce the binary that can be used in home assistant OS.

2 Likes