This provides sensors, switches and climate to control your ControlMySpa controlled spa via MQTT in Home Assitant. It support MQTT autodiscovery to automatically register sensors, switches and climate control to adjust and monitor the state of your spa.
Create haconfig directory for homeassistant config directory
Build and run:
docker-compose up -d --build
Simples way is to run it using docker-compose.yml. The latest versio is available direct from Docker Hub so no need to even build it locally.
version: "3.4"
services:
mqtt:
image: eclipse-mosquitto
volumes:
- ./mosquitto/config.conf:/mosquitto/config/mosquitto.conf
controlmyspa-ha-mqtt:
image: mikakoivisto/controlmyspa-ha-mqtt:latest
links:
- mqtt
env_file:
- docker.env
Add following to docker.env file
MQTTHOST=mqtt
MQTTPORT=
MQTTUSER=
MQTTPASS=
CONTROLMYSPA_USER=
CONTROLMYSPA_PASS=
CONTROLMYSPA_CELSIUS=true
HASSTOPIC=homeassistant/status
DEBUG=app:info,*:error,spa:info
NODE_TLS_REJECT_UNAUTHORIZED=1
HASSTOPIC is important because mqtt discovery message is trigged by it. Default value should be fine. If you have TLS errors in connecting to controlmyspa server you may need to set NODE_TLS_REJECT_UNAUTHORIZED=0.
This currently supports jets with HIGH and OFF state. If you have components the current implementation does not support I'll gladly discuss on how to add that support.
Tested with Novitek spa with Balboa jets. Implementation is based on forked ControlMySpaJs library https://gitlab.com/VVlasy/controlmyspajs