@xbmcnut wrote:
Hey there,
I’ve just switched power companies and I’m now on two tiers, off-peak 1100-1700 and 2100-0700 Mon to Friday and all weekend. To leverage the cheap power, I want to tweak my automation below so I always get 8 hours of pool pump operation but only between the off-peak hours.
Anyone know how to modify my scripts to check for those time and days?
- alias: 'Check Pool Pump in Season' initial_state: true hide_entity: true trigger: - platform: time_pattern minutes: '/2' # seconds: 00 condition: - condition: time after: '11:00:00' before: '16:55:00' - condition: state entity_id: input_select.pool_pump state: Auto - condition: state entity_id: input_boolean.swimming_season state: 'on' - alias: 'Pool Pump Off 1700' initial_state: true hide_entity: true trigger: - platform: time at: '17:00:00' condition: - condition: state entity_id: input_boolean.swimming_season state: 'on' - condition: state entity_id: input_select.pool_pump state: Auto action: service: homeassistant.turn_off entity_id: switch.pool_pump
Posts: 8
Participants: 3