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

I think that’s enough to get me started figuring it out for myself. Thanks for your patience!

Brilliant. Got that working which gives me a reading I can use. I can start working the rest out now I think.

that’s great.
Let me know if you have any more questions.
Some of my stuff might be a bit over complicated, but hopefully you can get what you need from it.

We will have to figure out how to link the two methods into the component!

1 Like

I’ve now got switches for power, heat, filter, bubbles and reports on current and set temperature but what I’m struggling with is how to actually set the target temperature. I’ve added the automations but I can’t quite see how I would set the temp using them in the UI. Is there something basic I’m missing?

Graham

Made it in the end. Here’s what I did:

  • Added the various yaml from @BruceH5200’s repo
  • Created a thermostat (config below)
  • Installed HACS and then installed Scheduler card/custom component
  • Set a scheduler card to do a heating cycle that suits my needs and can be altered easily
  • Made a dashboard :slight_smile: - The cards are mostly to prove what can be done

Thermostat code:

climate:
  - platform: generic_thermostat
    name: Hottub
    heater: switch.hottub_heat
    target_sensor: sensor.hottub_pump_temp
    min_temp: 21
    max_temp: 40
    target_temp: 35
    precision: 1.0

Notes:

All of this works on the basis that the target temp is set to 40 degrees C and left that way. I’ve not actually figured out a way to set that explicitly through the UI. The thermostat reads the pump temp and turn the heating off or on based on that reading. Thus if your target temp is set to 30 and the thermo is trying to heat to 40 it’s never going to turn off. This will work better if the thermostat is actually manipulating the pumps target temp rather than just switching the heater on or off. It also doesn’t control the filter.

To do

  • work out if the target temp can be set from the generic thermostat setting
  • understand the automations better as the idea of turning on the pump for a few minutes to sample temp and then turning off if it’s high enough seems good. Ditto running the filter on it’s own regularly.
  • look at the Octopus agile automations.

For now I’ve got much more than I had. A easy to use scheduler that actually works and is probably trustworthy!

Thank you all for getting me started one this :slight_smile:

You shouldn’t need scheduler or the climate component.
All of this can be done with just my code.
You need to create the helpers that the code mentions.

Eg.
Input_number.hottub_water_temp

The main automation : pump every 30 or similar then handles the schedule to get the tub to a certain temperature by a defined fine.

If you use octopus agile for your electric it will use the cheapest electric price slots too.

This is my interface :slight_smile:

Hi Bruce,

Very nice!

I’ve pulled the main automation for the moment as it seemed to be throwing some errors which I’ll check over and report back on. It’s more than likely my error.

I did, after I posted last night, create a helper for hottub_water_target which is useful. I’m currently fiddling with having the generic thermo temperature set the hottub_water_target via an automation but I suspect that’s probably wasted energy. I’ve created the other helpers and will have a further play when I’ve got time. Right now the tub has hit a good temp just as my lunch break is due so I’m off for a dip :smiley:

Anything new on HACS update? =)

Hi Bruce, and all the other contributors on this page. Excellent work.
Just purchased a Lazy-Z-spa Milan and by following the detailed work on this page I have been able to get the hot tub fully integrated in to home assistant. I used the BESTWAY app on android to get the hottub registered. The official apps are junk and took many attempts to get registered but once registered I’m delighted with the integration capable through your many configuration files. This integration is everything I could of hope for and more. Many Many Thanks for posting this.

Welcome!

It’s been quiet of late as I think most of us got what we needed. I’ve just been switched to Octopus agile so am looking forward to using Bruce’s automations to benefit from that.

As for the component/HACS idea, it’s on my hobby time to do list but it’ll be a while before I can find space to do the learning I need to do to get started. If anyone else is having a shot, shout out and I’ll be happy to help in any way I can.

Ok. I am having some problems with this. hottub login sensor is not returning any values? no errors in log but it wont show anything…

Have you tried posting to the URL using postman or similar to see what you are getting ?

Not yet. I need to try that! Have a example how i should put this in to postman?

I’m not at a computer right now.
I’ll post something tomorrow.

Got it working. i needed to use fiddler to find my application-id first, then i needed to also create new account as i was getting incorrect user/pass messages with postman. could be because my previous account was made for finland, altought i tried to use on login lang: “fi” but it didnt work. i made new account to uk so now it worked.

Fantastic thread!

I unfortunately bought the wrong hot tub and have a clever spa!

Hoping I can adapt what is here to make it integrate with home assistant, ideally via MQTT.

Best get started with Fiddler!

Does the Clever Spa have a wifi controlled pump / heater ?
If it does, then there is a reasonable chance that the control will be similar.

What application ID did you get?
What app are you running on what type of phone.
The App ID should be the same for everyone on a particular device type I think.