NorthernMan54 / esp32_balboa_spa

ESP32 Based Balboa Spa wifi controller module
3 stars 1 forks source link
balboa eink epaper spa

esp32_balboa_spa

WiFI Enable your Balboa SPA using a ESP32 module connected to your spa controller using rs485 interface to Balboa SPA Controller.

Multimode code base, with multiple user interfaces available. Interfaces include MQTT, Web and ePaper display.

Code base can also operate in client mode to a remote implementation of the code base in the Hot Tub. This allows for creating a ePaper display in a central location.

In my setup I have the code base deployed twice, one connected to the Balboa spa controller via rs485. And a second deployment on a LilyGo T5 ePaper Display that is mounted to the kitchen so you can see the temperature etc.

Advanced Features

This is the ePaper display

alt text

Display is based on the LilyGo T5 ePaper Display

Pls note I have stopped development of ePaper functionality, as my device stopped working.

This is the web site

Credit for the code goes to https://github.com/jozefnad/balboa-spa

alt text

Currently the WebSite buttons are not working. I never got around to wiring them up.

Integration with Homebridge

I have used this with the homebridge plugin homebridge-plugin-bwaspa to control and automate my Hot Tub.

MQTT Interface

MQTT Commands are not working yet. I never got around to wiring them up.

Code Base Build

For the build I use platformio.

Compiler Definitions

In spa configuration

For the unit deployed in the spa, and connected to the Balboa spa controller via rs485 I use these compiler definitions.

  '-DLOCAL_CONNECT'
  '-DLOCAL_CLIENT'
  '-DBRIDGE'
  '-DTELNET_LOG'

Remote module configuration

This is for the LilyGo T5 ePaper Display

  '-DREMOTE_CLIENT'
  '-DspaEpaper'

Background / History

This is port of the package to run on an ESP32 Device, and modernization of the package

Based on the great work over at \ https://github.com/cribskip/esp8266_spa https://github.com/ccutrer/balboa_worldwide_app/wiki https://github.com/ccutrer/balboa_worldwide_app/blob/master/doc/protocol.md

Original README by cribskip

esp8266_spa

Control for a Balboa spa controller using the esp8266 (tested on BP2100 and BP601 series)

The sketch connects to the tub, gets an ID and spits out the state to the MQTT broker on topics "Spa/#". You can control the tub using the subscribed topics, f.e. "Spa/light" with message "ON" for maximum compatability with openhab.

Maybe you need to adjust the sketch to your tub configuration (number of pumps, connection of blower, nr of lights...). You may find the DEBUG comments useful for this task.

Bonus: you may add several relays or such like I did ;-)

Getting started

Parts

Hardware connections

Example

Example

Debug

Appetiser using OpenHab...

Example

HomeAssistant integration

The system uses HomeAssistant autodiscover and should just appear in the MQTT Integration under "Esp Spa" Example

TODO