Control your PureSpa over MQTT or MySensors (comming soon) for #28458, #28462, 28457(US), #28461(US) & #28442, #28440. No hardware modification and used with Smart Home (optimized for Jeedom & Home Assistant).
- Video - Controlling in Action
- Video - Home Assistant - Screen Recording
- Video - Box LC12s & ESP32
- Pictures - Box LC12s & ESP32
- ESP32 Dev Kit C V4 (Microcontroller) - amazon.de or amazon.fr
- LC12s (Wire modul, Manuel about the Chip) - amazon.de or amazon.fr or aliexpress
- Arduino Uno (for MySensors only) - amazon.de
- Arduino IDE
- **Install the “ESP32 Dev Kit C V4” ** (V1 boards not work)
- **Install ESP32 Board for Arduino IDE (verssion 1.0.6) -> Screenshot. **
- Install the following libraries (use the Arduino Library Manager)
- EspMQTTClient
- arduino-timer
- WiFi (comming with Board Driver in Arduino IDE)
- ESPmDNS (comming with Board Driver in Arduino IDE)
- ArduinoOTA
- SoftwareSerial (only for Arduino)
- MySensors (only supported for Arduino)
- You need a MQTT broker (e.g. Mosquitto Broker)
LC12S | ESP32 | Arduino |
---|---|---|
GND | GND | GND |
CS | D18 | D5 |
SET | D19 | D6 |
TX | D16 | D2 |
RX | D17 | D4 |
VCC | 3.3V | 3.3V |
The channel and the network id are unique for each spa, specialy the network id. Unfortunately, I am not yet able to read these parameters from the pump controller. But I write some help software for that.
-
Channel detection
This detection can take up to 3 minutes.- Download the channel detection code
- Upload the code to your ESP32 or Arduino
- Open the Arduino Ide Serial Monitor (speed 115200 baud), the actual channel configuration is diplayed (in hexadecimal)
- Look at the LC12s LED, when the right channel is detected it will flash faster see the video
- Note the actual channel configuration, you will need it for the Network id detection
-
Network id detection.
This detection can take up to 36 hours.- Download the network id detection code
- Write then channel (in Hexadecimal) you note befor here
uint8_t Channel =yourchanel; //(for example 0x37)
- Upload the code to your ESP32 or Arduino
- Look at the LC12s LED, when you use the right channel it will flash fast see the video. If the LED doesn't flash try some channel befor and/or after until the LED flash. If the LED doen't flash her you will not be able to find a network id.
- Download PuTTY and configure it to log serial port inside a file under Linux you can also use grabserial. Of course you can use other tool wo are able to save serial comunication inside a file. With the Arduino Serial Monitor I make bad experiance when he is open 36 hours.
- Uncomment following line
//#define SEARCH_NETWORK_ID
- Upload the code to your ESP32 or Arduino
- Wait untill the right network id is founded this can take up to 36 hours. It will be displayed on your Serial Monitor software and save into the file.
Now you can Download the PureSpa code change it to your settings and upload it to your ESP or Arduino
Put the Channel and Network id you found previously here (in hexadecimal)
#define USED_NETWORK_ID 0xFFFF
#define USED_CHANNEL 0x48
Uncomment one line for your Spa
//#define _28458_28462_
//#define _28442_28440_
Write your WIFI settings in this lines
const char* Myssid = "YourSSID";
const char* Mypassword = "YourPassword";
Write your MQTT settings in this lines
"YourMQTT-Broker-IP", // MQTT Broker server ip
"NameMQTTBroker", // Can be omitted if not needed
"PasswordMQTTBroker", // Can be omitted if not needed
"IntexSpa", // Client name that uniquely identif your device. Don't change the name!
1883 // The MQTT port, default to 1883. this line can be omitted
MQTT topic & payload
- Topic is the path to communtions over MQTT:
e.g.: IntexSpa/Cmd Power on off - Payload is the command
Description | Topic String | Payload | Payload | Only Status |
---|---|---|---|---|
Power | IntexSpa/Cmd Power on off | ON=1 | OFF=0 | - |
Water Filter | IntexSpa/Cmd water filter on off | ON=1 | OFF=0 | - |
Water Filter Timer | IntexSpa/Cmd water filter time | hours=2,4,6 | - | - |
Bubble | IntexSpa/Cmd bubble on off | ON=1 | OFF=0 | - |
Heater | IntexSpa/Cmd heater on off | ON=1 | OFF=0 | - |
Change Farenheit/Celsius | IntexSpa/Cmd Farenheit Celsius | F=1 | C=0 | - |
Decrease the Temp. | IntexSpa/Cmd decrease | UP=1 | - | - |
Increase the Temp. | IntexSpa/Cmd increase | Down=1 | - | - |
ESP Reset | IntexSpa/Cmd Reset ESP | reset | - | - |
Command Setpoint of Temp. | IntexSpa/Cmd Temperature Setpoint | "set a number" | - | - |
Status Communication with pump | IntexSpa/Communication with pump | Com/OK=1 | 0=lost connection | - |
Heater Status | IntexSpa/heater state | standby=1 & ON=2 | OFF=0 | Yes |
Status Setpoint Temp. | IntexSpa/Temperature Setpoint | - | - | Yes |
Send °F Temp. | IntexSpa/Farenheit Celsius | - | - | Yes |
Send Actual Temp. | IntexSpa/Actual Temperature | - | - | Yes |
Send Error Message | IntexSpa/Error Number | - | - | Yes |
Status Power on | IntexSpa/Power on | - | - | Yes |
Status Bubble on | IntexSpa/Bubble on | - | - | Yes |
Status Heater on | IntexSpa/heater on | - | - | Yes |
Status Filter on | IntexSpa/filter on | - | - | Yes |
Status Filter Timer | IntexSpa/filter setup time | - | - | Yes |
Only for Spa #28458, #28462, #28457(US) #28461(US)
Description | Topic String | Payload | Payload | Only Status |
---|---|---|---|---|
Water Jet | IntexSpa/Cmd water jet on off | ON=1 | OFF=0 | - |
Sanitizer | IntexSpa/Cmd sanitizer on off | ON=1 | OFF=0 | - |
Status Water Jet | IntexSpa/Water jet on | - | - | Yes |
Sanitizer Timer | IntexSpa/Cmd Sanitizer time | hours=3,5,8 | - | - |
Status Sanitizer | IntexSpa/Sanitizer on | - | - | Yes |
Status Sanitizer Timer | IntexSpa/Sanitizer setup time | - | - | Yes |
You can debug on Arduino IDE with serial print on baud rate: 115200
Options to debug
Uncomment to debug
//#define DEBUG_RECIEVED_DATA
//#define DEBUG_SEARCH_CHANNEL
//#define DEBUG_SEND_COMMAND
//#define DEBUG_PUMP_DATA
//#define DEBUG_CONTROLER_DATA
//#define DEBUG_CONFIG
//#define DEBUG_MQTT
//#define DEBUG_SEND_VALUE_TO_HOME_AUTOMATION_SW
You can use OTA update (wireless) via Arduino IDE after the first upload via USB. Screenshot
After the correct selection of the model (see point: Choose your PureSpa model) and after the first start, a channel search is performed (slow blinking of the LC12s). After a successful search (fast blinking of the LC12s) the channel is stored in the ESP (EEPROM), this can take up to 10 minutes.
After the next start the memory is read out and checked if the channel is correct.
- If yes, then the code is continued.
- If no, then a new search is started until a channel is found.
Please note: It can happen from time to time that the channel changes. You can see the channel search in debug (#define DEBUG_SEARCH_CHANNEL).
For more infos regarding the configuration from the LC12s, can you see it in the code comments and manuel of the LC12s
Is a powerful open source home automation software. www.home-assistant.io
You can use it as you want, I'll show you an example of a part of the files configuration.yaml and automations.yaml
Screenshot & Video:
- OFF - Whrilpool Screenshot
- ON - Whrilpool Screenshot
- Help/Infos/Reset Screenshot
- Heat Timer
- Push-notification Screenshot
- Video - Screen Recording
Config of Home Assistant:
-
- Define the switches and sensors with MQTT Topics and Payload.
-
automations.yaml (optional)
- All your automation settings such as push-notification on your mobile phone.
Is a powerful and innovative open source home automation software. www.jeedom.com
Screenshot & Video:
- Screenshot dashboard view
- Wiring video thanks @Dim
- Configuration video comming soon.
Config of Jeedom:
Template for the MQTT topics are available inside the beta version from the jeedom plugin jMQTT
On jeedom Community thread:
you can found some information/help (in french) on the Jeedom Community thread
Articel No. | English | German |
---|---|---|
28462, 28458 & 28457, 28561 | Download | Download |
28442, 28440 | Download | Download |
- MySensors isn't implemented
Thanks @LEECHER1 for this documentation and all test he do