djtimca / haomnilogic

Hayward Omnilogic integration for Home Assistant available through HACS
Apache License 2.0
17 stars 6 forks source link

Variable Speed Pumps only have On/Off #9

Closed MHillyer closed 2 years ago

MHillyer commented 2 years ago

My pumps are variable speed, but in HASS they present as on/off devices. Generally this is fine, I can always go to the Hayward app to change speeds, but it would be ideal if they could be adjusted from within HASS.

And thank you for all the work so far!

djtimca commented 2 years ago

Your pumps should be an on/off switch plus a sensor for variable speed pumps to show the speed.

Then you should be able to use the omnilogic.set_pump_speed service to set the speed of variable speed pumps.

I have set up scripts/scenes with preset speeds and then trigger those with buttons in the UI and on my watch to make it easy. Also have a slider helper to allow manual setting with the service.

Does that work?

MHillyer commented 2 years ago

I can fiddle with that, I'm relatively new to HASS but got a fire HD to make into a yard dashboard. I was thinking maybe it could be presented as a variable speed fan so that it could be a matter of just setting speed. Would make it work with Google Home for voice control easier.

djtimca commented 2 years ago

Unfortunately there isn't a pump entity in Home Assistant so couldn't do that. There was a suggestion to look at their new number entity but haven't had time to look at that yet.

Here is how I have my dashboard using the switch / services as they are today.

image

image

MHillyer commented 2 years ago

With that mix of C/F you must be Canadian. ;)

Can you let me know what the helper looks like for the slider? Also what widgets your temp history displays are?

djtimca commented 2 years ago

No problem - here's the helper: image image

Then I have an automation based on change in input_number.pool_pump_speed which actions: data_template: entity_id: switch.knight_home_pool_filter_pump speed: '{{ states.input_number.pool_pump_speed.state | int }}' service: omnilogic.set_pump_speed

(I also have another automation to update the slider value when the pool pump speed changes to make sure that other changes are reflected in the slider)

The pool temperatures are in a custom:mini-graph-card (from HACS).

Let me know if the service option works for you and this issue can be closed.

MHillyer commented 2 years ago

I'll learn from here, close away.