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

I finally can connect HA to my Bestway Spa.
Now I still have to figure out some stuff, but we’re getting there.

Looks nice, I’m going to construct something like that.

Update: got everything working now.

1 Like

Hello
iam very new to HA, i installed the extension with HACS but how can i install the nice entitities ?

Is there somewhere a howto or a wiki?

Thanks a lot

ok jist copied all under config\packages\hottub-lay-z-spa into my folders added the packages string to the configuration but i got the error loading the config

Error loading /config/configuration.yaml: Secret hottub_api_did not defined

You need a secrets file in the folder with your file. I can’t share it on github as it contains my own passwords etc.

Anything in my files that says…

!secret xxx_xxx_xxx

needs an entry in a
secrets.yaml
file.

Like:
hottub_email_password: xxxxxxxxxxxxxxx

I’ll post an example copy of the secrets file later.

I’ve added an example secrets file to my github.
If you read the beginning of this thread, it will explain how things work.

ok i set up the secret and loaded all entities into one card which shows up as in the pictures but i can´t get a connection,

I’ve added the integration from HACS, but i don’t get any control buttons except temperature of the pump, heater etc. What is wrong?

I wonder if anyone could help, I’ve managed to get the first piece, the hottub_login token, however when I use this in the second, all hottub_bindings returns is “Unknown”. Any assistance appreciated, as this could be an amazing set up if I can get it working :slight_smile: Thank you.

@BruceH5200 sorry to trouble you, but any thoughts? I feel so close, yet so far away :slight_smile:

If you download something like “postman”, you could experiment with the web calls that it is using to see what results you get.

Have given it a go, I don’t really know how to use it (I set the headers), it just responds with ‘{devices[]}’

Unfortunately I don’t have a la-z-spa tub anymore, so can’t really offer much support as I can’t test anything.
Sorry !

1 Like

I got it sorted Bruce - I needed to follow the Lay Z Spa instructions not the beltway - it works a treat - thanks so much.

Would you mind providing me with the code for this view? It looks awesome!

I have completely changed my setup - which differs to the original integration what in particular are you interested in?

type: vertical-stack
title: LayZ Spa Hot Tub
cards:

  • type: horizontal-stack
    cards:
    • type: button
      tap_action:
      action: toggle
      entity: switch.hottub_power
      icon: hass:power-settings
    • type: button
      tap_action:
      action: toggle
      entity: switch.hottub_heat
      icon: hass:radiator
    • type: button
      tap_action:
      action: toggle
      entity: switch.hottub_filter
      icon: hass:air-filter
    • type: button
      tap_action:
      action: toggle
      entity: switch.hottub_bubbles
      icon: hass:chart-bubble
    • type: conditional
      conditions:
      • entity: sensor.hottub_online
        state: ‘true’
        card:
        type: button
        tap_action:
        action: more-info
        entity: sensor.hottub_online
        icon: mdi:wifi-arrow-up-down
        show_icon: true
        show_state: false
        show_name: true
        name: Online
    • type: conditional
      conditions:
      • entity: sensor.hottub_online
        state: ‘false’
        card:
        type: button
        tap_action:
        action: toggle
        entity: sensor.hottub_online
        show_name: true
        show_icon: true
        name: Offline
        icon: mdi:wifi-strength-alert-outline
  • type: thermostat
    entity: climate.hottub
  • entities:
    • entity: sensor.hottub_pump_target
    • entity: sensor.hottub_water_temp
      name: HotTub Water Temperatures
      show:
      graph: line
      type: custom:mini-graph-card
  • type: history-graph
    entities:
    • entity: sensor.hottub_summary
      hours_to_show: 24
      refresh_interval: 0

1 Like

I had some issues with the thermostat card. It doesn’t work fully. It shows current temp but if I set lower or higher it doesn’t change anything. Heating on/off doesn’t work either

here is my yaml code for the thermostat if you want to compare - I use packages

climate:
  - platform: generic_thermostat
    name: Hottub
    heater: switch.hottub_heat
    target_sensor: sensor.hottub_water_temp
    min_temp: 10
    max_temp: 40
    min_cycle_duration: 
      seconds: 10
    target_temp: 12
    precision: 1
    initial_hvac_mode: "heat"
    ac_mode: false
    cold_tolerance: 1
    hot_tolerance: 0.0
1 Like

Got it working. Thanks

With summer well on the way, I recently purchased a Milan Airjet Plus, and thanks to the hard work of everyone here, I’ve wrapped up everything in a custom integration, installable via HACS.

Feedback and contributions very much welcome.

9 Likes