I have this, and it works perfectly, unless the heat is trying to catch up, or automations get reloaded or… Anything that means the pump can’t be toggled at EXACTLY 7200 seconds. Then the pump just stays in the previous state until some other outside force acts.
I want the system to trigger a change if the pump state is on/off for any reason beyond 2 hours when the other condition(s) stop.
alias: Hot Tub Pump and Heater On
description: Turns on the Pump and Heater after the pump has been off for 2 hours.
trigger:
- platform: device
type: turned_off
device_id: b26321a9a3bce7452776ab81768263eb
entity_id: 4ebdeff4feaab235eccf9f6d101b1e18
domain: switch
for:
hours: 2
minutes: 0
seconds: 0
enabled: true
- platform: device
type: turned_on
device_id: b26321a9a3bce7452776ab81768263eb
entity_id: a6a4557d968d89c246b4eae570a28b37
domain: switch
- type: temperature
platform: device
device_id: b26321a9a3bce7452776ab81768263eb
entity_id: 9b88da1278a356e51fbf450ca639b59d
domain: sensor
below: 93
enabled: false
condition: []
action:
- type: turn_on
device_id: b26321a9a3bce7452776ab81768263eb
entity_id: 4ebdeff4feaab235eccf9f6d101b1e18
domain: switch
- type: turn_on
device_id: b26321a9a3bce7452776ab81768263eb
entity_id: 7225b6999f5f6e2269cc1da8ea62710a
domain: switch
mode: single