I’ve taken your fantastic code (it saved me a bunch of time) and turned it into an ESPHome climate external component. Using the simple-thermostat card, this is what I end up with:
Right hacked up your code, and then made a wrapper class for the ESPHome. C++ is not my first language, but it seems to work thus far. Will upload to github in the next few days for people to comment on how bad my code is
It’s worth noting for other readers - this is for an ESP connected to the spa - not for a factory SPA-Link device.
I did - my code is here. Put that in esphome > my_components > spanet. Provided with no warranty, your mileage may vary Works a treat for me though, enabled me to dynamically set my spa operating mode to make the most of free power times of the day (and solar).
Just as a FYI, the SpaNET support guys in Australia seem pretty good. They sold me a V3 (ESP32-based with MQTT support) for half price (AU$200 vs AU$400) and I sold my V2 on Facebook Marketplace for AU$150 so it only cost me AU$50 to upgrade.
I was a bit concerned that the V2 has a pretty solid antenna but the V3 uses the antenna printed on the circuit board, but it seems to be working with MQTT pretty well so far.
I followed this guy’s hardware guide for the hardware but used an ESP32 and mine wouldn’t work with the resistors in-line like he had them - but works fine without any resistors. Basically just an ESP, voltage reg (couple of bucks from ali) and an RJ45 cable.
Great Job !!!
Works very well and beside being able to set the temperature, other settings can be done as well as info displayed.
I gave noticed that the work is in progress, even today, to update it.
Maybe, soon will be able to control the lights also… The limits can be readjusted anytime…
Thank you for your efforts, your time and interest!
This integration requires hardware that uses the SpaLink from SpaNET equipment.
I can confirm that it is working with v.2 of the SpaLink devices.
Installation
The easiest way to get going is to install this integration in Home Assistant using HACS as a Custom Repository. In the custom repository url use the following url https://github.com/lloydw/hass-spanet.
As an alternative you may install it manually by copying the contents of the custom_components folder to the config/custom_components directory of your Home Assistant installation. A restart of Home Assistant is required after the download of the integration.
Proceed to Settings > Devices & Services > add Integration and select the SpaNET.
Lloydw.
I cant thank you enough for this integration. I was going to have to resort to spending about $360au on the new V3 wifi module just so i can integrate it onto HA.
Installed the Plugin from your link and suprise suprise it shows every entity.
Thankyou Very Much
Count.Zilch.
How did you manage $200. They have it on their Spanet web store for over $400. Cheapest i can find is about $375 from Pool & Spa warehouse. Cheers
I emailed support and said that I was bummed that mine didn’t have MQTT, and they emailed back and offered me a unit for half price. So I bought it for $200, and sold the old version for $150. The guys there seemed really helpful.
For what it is worth, there is an active discord chat here about enabling local integration of spanet spa pool controllers into home automation systems (by way of MQTT) here: Spa Control