mikakoivisto / controlmyspa-ha-mqtt

GNU General Public License v3.0
11 stars 4 forks source link

Add third option "LOW" for jets #18

Open SebastiaanVBH opened 1 month ago

SebastiaanVBH commented 1 month ago

At the moment jet-settings are implemented as binary setting only supporting OFF and HIGH How hard/easy is it to change this to OFF, LOW and HIGH? (obviously can't be a binary sensor anymore)

mikakoivisto commented 1 month ago

How does it work in your ControlMySpa app? Is it a toggle button that just cycles the speed from OFF -> LOW -> HIGH -> OFF and so forth? I think that might be doable. The only problem I see is cycling through them fast would not work very well due to how long it takes to actually change the state.

The mqtt endpoints do support setting the state already so you could use it by adding your own mqtt template or by making a automation that uses input select and calls mqtt with the selected state.

SebastiaanVBH commented 1 month ago

I see one button indeed which cycles through those states. If the heater is on (or was on) it only cycles through LOW and HIGH (obviously). When the heater has been cooled down, the cycles are as you expected: OFF -> LOW -> HIGH -> OFF and so forth.

I need to dig into own mqtt templates to see what needs to be done.

JSkier21 commented 1 month ago

I see one button indeed which cycles through those states.

If the heater is on (or was on) it only cycles through LOW and HIGH (obviously).

When the heater has been cooled down, the cycles are as you expected: OFF -> LOW -> HIGH -> OFF and so forth.

I need to dig into own mqtt templates to see what needs to be done.

Confirming this on mine as well (US Calspa). One jet is off -> high -> off, the other is off -> low -> high -> off. I typically don't use jets with this framework, but that would be interesting to do. Following and will be able to test.

SebastiaanVBH commented 1 month ago

I'll be writing some updates in this thread for my own reference as well. I only have 1 jet in my spa (EU, smallest version I could find). The API is returning capabilities of the spa:

`controlmyspa/xxxxxxxxxxxxxxxxxx/pump/0 10 meest recent ontvangen bericht(en) Received 07:19:11 QoS: 0 Payload: componentType: PUMP materialType: PUMP port: '0' value: 'OFF' targetValue: 'OFF' availableValues: