Lay-Z-Spa Hot Tub wi-fi pump automation

Wrote a simple script to use this and send data to MQTT subject(s).
Based on your work Bruce, thanks! :slight_smile:

/Chris

1 Like

Sorry for my absence of reply, I found this:

Mayeul,

1 Like

This is amazing. I think I might see if I can turn this into a component! Have you started on that, or should I run with it?

If you could, that would be amazing.
It’s a bit beyond me at the moment, so would be very happy to see you work on it.
Happy to give whatever input I can.

I’m a dev, but not a Python dev. I’ll have a bash and see where I get!

FYI - I’m working on the python api here:

A long way off - but any python devs want to give me a sanity check I’d be massively appreciative!

FYI! making good progress!
image

This is a “Water Heater” component and not a climate one so you don’t have a thermostat like you would for a central heating device… it’s not ideal, but it does work.

Looking good. I’ll take a look at the code later.

I’ve not pushed the code for the component yet, only the python library I wrote. There is still a lot to do with the component. Not sure if I should try and get it into home assistant (in which case I can’t put in all the features yet - the PRs must be small) or if I should put it into HACS

I’ve done the absolute bare minimum to get it into HACS - you can add it using this repository https://github.com/rossdargan/lay-z-spa-component

Let me know how you get on with it!

Once added go to add integration and add lay-z spa, then enter your username and password. Hopefully it works!

away mode = heat power off… not sure if I will keep it like that, but it’s possibly the simplest way

1 Like

That’s great. Looks good.
I’m going to use your files to try and learn how to create a component too !

I’ve uploaded my files to:

So you can see what I’ve done.

The funcationality I’ve got running now is…

  1. To get an accurate “water temperature” instead of pump temperature, I only capture the water temperature when the pump is running and the temp is stable.
  2. I run the pump for 5 mins every 30 mins.
  3. If the price of my electric (on Octopus Agile) is below a preset, I heat.
  4. I can set a target time to be ready by and if there are less hours to go, then degrees to heat, it will heat.

Octopus energy was the whole reason I made this component!

That repo is empty - did you forget to push it?

I can see files at:

Can you see them ?

Ah my bad, I was looking on my phone - yes they look great. Hopefully with the component they can be simplified. Do you have HACS installed? I think I might work on getting it looking good in there before trying to submit it to home assistant.

Yes, I’ve already installed your component from HACS.
Looks like a solid starting point.

Fab - feel free to add any issues here: https://github.com/rossdargan/lay-z-spa-component/issues

Also, take a look through them to see what I’m planning (plus feel free to do any PRs :slight_smile: )

Hello!

Im also happy owner of Lay-Z-Spa but in finland as they are also branded under bestway the app is different. With official app i am able to connect my spa to wifi but app wont connect to spa. The app what i use ( becouse instructions told me to) is this https://apps.apple.com/fi/app/bestway-smart-hub/id1456731336?l=fi ( Bestway Smart Hub ). So none of the codes will allow me to capture any data from my spa.I have no experience from fiddler to findout what data is going between app and servers.

They are sold by best way in uk too.
Have you tried the la z spa app ?

Yes. It Will allow to send home wifi data to pump but after that it cant connect to pump. I managed to get api did from bestway app using fiddler but seems like bestway smart hub app users different address for Communicating. What i noticed that those pumps have probably somekind of esp as brains because after connecting to wifi my pump showed as ESP-xxxxx name. Address which fiddler showed was something like usaeapp… I have to check it later

You need to install https certificates so you can decode the https messages between the app and their service.