Hi,
I am trying to get my pool pump to switch on using some interesting logic, which is only partly working… What I have is two automations setup as such;
alias: Pool pump on using Octopus
description: ""
trigger:
- platform: numeric_state
entity_id:
- >-
sensor.octopus_energy_electricity_22l4355372_2200011132368_current_demand
below: -1.5
- type: monetary
platform: device
device_id: 8cce88b2cd45d71274239eeb0841bd11
entity_id: 67029e547f6bb43434970804ee92b7e6
domain: sensor
below: 0.13
- platform: numeric_state
entity_id:
- sensor.solis_ac_output_total_power
above: 2
condition: []
action:
- device_id: e18c842ae6e45850f584ba922b1095a4
domain: mobile_app
type: notify
message: Sun is out - Pool pump on
- type: turn_on
device_id: 6e3c5832bcf773b1b62b2c1290c355a6
entity_id: switch.pump_room_socket_s1
domain: switch
mode: single
and to turn it off
alias: Pool Pump Off using Octopus
description: ""
trigger:
- platform: time
at: "18:59:00"
- type: monetary
platform: device
device_id: 8cce88b2cd45d71274239eeb0841bd11
entity_id: 67029e547f6bb43434970804ee92b7e6
domain: sensor
above: 0.25
- platform: numeric_state
entity_id:
- sensor.solis_ac_output_total_power
below: 0.5
- platform: numeric_state
entity_id:
- >-
sensor.octopus_energy_electricity_22l4355372_2200011132368_current_demand
above: 4
condition: []
action:
- device_id: e18c842ae6e45850f584ba922b1095a4
domain: mobile_app
type: notify
message: Sun has gone in - Pool pump off
- type: turn_off
device_id: 6e3c5832bcf773b1b62b2c1290c355a6
entity_id: switch.pump_room_socket_s1
domain: switch
mode: single
The thing is that I would like to override some of the OFF events if for example the “current electricity rate” is at its cheapest keeping the pump on.
I am sure this is possible, but can someone please let me know how it might be achieved?