gazoodle / gecko-home-assistant

Home Assistant integration for spas equipped with Gecko Alliance in.touch2 modules
MIT License
67 stars 22 forks source link

Setting a heating schedule #98

Open TheClyk opened 7 months ago

TheClyk commented 7 months ago

Is your feature request related to a problem? Please describe. I've looked in the automation and cannot see an option to set a heat schedule. I'm in the UK and have a cheap tarrif at night and would like to heat up the hot tub then overnight and let it cool until later on when we are ready to get in it. This will save the tub kicking in during the day so much that I pay a lot more for energy.

Describe the solution you'd like Ability to set the temperature at say 40c at 12.30 am and then to 20c at 4.30 am when my tariff becomes more expensive.

Describe alternatives you've considered None that I can see.

dannyb2100 commented 6 months ago

I appreciate this is an old question. But I've done something similar using Automations.

See: https://www.home-assistant.io/docs/automation/basics/ on how to get started. It's very easy, so when the time is 00:30, and between 00:30 and 04:00 - set your tub to heat.

Here is a very basic YAML.

- id: 'hot_tub_heating_control'
  alias: "Control Hot Tub Heating Based on Time Slot"
  description: "Turns on the hot tub heating between 00:00 and 05:30."
  trigger:
    - platform: time
      at: "00:00:00"
  condition:
    - condition: time
      after: '00:00:00'
      before: '04:30:00'
  action:
    - service: switch.turn_on
      target:
        entity_id: switch.hot_tub_heating

Then, have a second one to turn off the heating.

- id: 'hot_tub_heating_off'
  alias: "Turn Off Hot Tub Heating After Time Slot"
  trigger:
    - platform: time
      at: "04:30:00"
  action:
    - service: switch.turn_off
      target:
        entity_id: switch.hot_tub_heating
TheClyk commented 6 months ago

Great, thanks for this.