Integration for a spa, question about available entities

Regarding the MQTT conversion, I put in a PR (Update app.js by JSkier21 · Pull Request #1 · mikakoivisto/controlmyspa-ha-mqtt · GitHub) to update the project to send celsius in the MQTT message, that way we get the conversation automatically to fahrenheit in Home Assistant (helpful for those of us in the US anyway).

Side note, you should increase the poll to 120 or higher, otherwise it seems like it rate limits out pretty quickly at 60.

Looks like light and pump control are still in progress (commented out), I will try to find some time to help it along some.

I’m surprised no one had done integration to ControlMySpa since there was quite capable js library for it. That is my first stab at writing an integration to Home Assistant.

I just fixed few bugs in it.

1 Like

What should I do to integrate either the CMS MQTT or the clonesd python library into hass? Any hints in which direction I should look?

For some this is probably a stupid question but here I go… How do I install GitHub - mikakoivisto/controlmyspa-ha-mqtt in hass.io?

Hi,

If you have access to docker from Hassio (Home Assistant supervised) you can try the instructions from this link.

Nope, I do not have access to docker. I once had that access but got scared I would break everything and flipped some switch to disable and now it is disabled.

I did a test by putting the controlmyspa-ha-mqtt files together with a config.yaml file into a folder in addons and got it visible as an add on. It ieven starts but now I am stuck at how to convey the CMS user name and password to the app.js.

Any updates?

Could you please share that config?

my config.yaml looks like below. It enables HA to see there is an add on and it can install it and all the variables end up on the page for options but the parameters are not relayed to the app. I built this based on guesses so I would have been pleasantly surprised if it had worked.

name: "controlmyspa-ha-mqtt"
description: "Trying to set up mikakoivisto controlmyspa-ha-mqtt to ControlMySPA in HA!"
version: "0.0.11"
slug: "controlmyspa-mqtt"
init: false
arch:
  - aarch64
  - amd64
  - armhf
  - armv7
  - i386
startup: application
options:
  CONTROLMYSPA_USER: "CMS_Username"
  CONTROLMYSPA_PASS: "CMS_Password"
  CONTROLMYSPA_POLL_INTERVAL: 600
  MQTTHOST: ""
  MQTTPORT: "1883"
  MQTTHASSTOPIC: ""
  MQTTUSER: "MQTT_Username"
  MQTTPASSWORD: "MQTT_Password"
schema:
  CONTROLMYSPA_USER: str
  CONTROLMYSPA_PASS: str
  CONTROLMYSPA_POLL_INTERVAL: int
  MQTTHOST: str
  MQTTPORT: str
  MQTTHASSTOPIC: str
  MQTTUSER: str
  MQTTPASSWORD: str

I did annother test where I added parameters into the code which worked so that the add on stays alive but I did not get anything except the add on update, restart etc. entities into HA. Nothing through MQTT yet.

I actually got data through to HA today!

Is anyone working on a native Home Assistant integration for ControlMySpa (CMS) Cloud Service or local control of the Balboa ControlMySpa Gateway Ultra (59303) for BP Spa Control System units?

https://github.com/arska/controlmyspa

https://www.balboawater.com/controlmyspa

https://www.balboawatergroup.com/getdoc.cfm?id=2391

https://www.balboawatergroup.com/getdoc.cfm?id=2441

I guess model 59303 ControlMySpa Ultra Gateway is meant to replace the old 50350 WiFi module?

I just got it and after setting it up to work with the official ControlMySpa app (which required an CMS code from the dealer) I quickly tried to connect to the Balboa Spa Client and got a message that failed to connect host.

Feedback so far of official ControlMySpa app is btw that it got to be among the worse app ever made.

Looks like can login to https://controlmyspa.com cloud service via API web browser which could work?

https://github.com/arska/controlmyspa

https://pypi.org/project/controlmyspa/

1 Like

I have been looking for a while and finally stumbled across this. Have you had success with setting climate and filter cycles through HA?

Not me. Other than that arska controlmyspa Python library I only found the controlmyspa-ha-mqtt solution from mikakoivisto for the ControlMySpa (CMS) Cloud Service which personally also did not get to work so now given up on as too complicated and an integration not working locally would really be last resort for me anyway (as require controlmyspa.com cloud service account and registering with an authorized reseller to get unique store CMS code for them to monitor your setup is IMHO double bad solution).

I have now decided to just place an order for the official bwa™ Wi-Fi Module (50350 / “BWA Link”) from Balboa) instead to be able to use the Balboa Spa Client integration which is supposed to work locally and is a natively embedded integration inside Home Assistant core (so it does not require any cloud service or external ControlMySpa to MQTT bridge project or MQTT broker).

An alternative to buying the official bwa™ Wi-Fi Module (50350 / “BWA Link”) from Balboa is to build your own custom DIY module hardware and use the Balboa Worldwide App gem Ruby library by ccutrer, see → https://community.home-assistant.io/t/balboa-hot-tub-spa-automation-and-power-savings/353032 and https://github.com/ccutrer/balboa_worldwide_app

1 Like

I am able to configure filter cycles through the integration

1 Like

I will look at this. It looks like CMS has integration to Amazon Alexa. Do you think it would be worth integrating it to that and then bridging it over to HA?

Hi Henrik,
as I’m also searching for an easy integration of ControlMySpa into HA I’m wondering if you has been succesful with this topic? If so, is there anything you can share to make it available for me (and the rest of the world)?
Thanks, Martin

Yes, like stated above i have controlmyspa-ha-mqtt solution from mikakoivisto running as an add in on HA on a RPi but I needed to insert my credentials into the actual code for it to work. I did not manage to relay parameters to the add-in.
The biggest problem now is that the CMS service is out of service all too often. Maybe a local integration through RS-485 or with the use of the Balboa WiFi module be more reliable? I do not know but right now I am sticking to this solution for as long as my nerves can tolerate the CMS.

Thank you for your feedback. It seems that you are the only one with a working integration :thinking:
I will try the same way, hoping it will come to work without too much effort.
Btw., the “out of service” problems are related to Balboas server. I contacted them and their reply is that during this month the server will be replaced. Let’s hope that we have a stable environment afterwards.

Hi Henrik, hope you are fine.
Did you recognize that the Balboa server is running stable since a couple of days? At least this is my impression when checking with the ControlMySpa Android app.
Unfortunately I’m stuck with my try to integrate the mikakoivisto solution into my HA. At the time when I start it the log protokoll says:
…s6-rc: info: service legacy-services successfully started
/run/s6/basedir/scripts/rc.init: line 76: run.sh: not found…
I have no idea from where this comes and how I have to proceed… Is there anything you can share or describe? I’m not familar with Linux systems so all the details inside are a black box for me.
I would appriciate any help and best regards
Martin