For a better alternative, consider using the Rust rewrite
cd /tmp && wget https://github.com/smarthome-go/cli/releases/download/v2.15.0/homescript_linux_amd64.tar.gz && tar -xvf homescript_linux_amd64.tar.gz && sudo mv homescript /usr/bin && rm -rf homescript_linux_amd64.tar.gz
yay -S smarthome-cli
# paru -S smarthome-cli