Hi All, very new user here, but very much love what i’ve found so far. I’m running OpenHAB 3.2 on Ubuntu 20.4.
I have a pretty simple rule I’d like to run, but I’m struggling and was wondering if anyone could advise on how to make this work.
Everything is been done via the gui, but I’m not afraid of code and learning if needed.
What i am trying to achieve is the following:
I have a switch defined as a point called DeadLegPump_Power, this basically turns on / off a water pump that circulates hot water round the house.
I’d like to run this pump from 6am to 10pm, in 15 minutes intervals, so at 5am it runs for 15 mins, then at 6:15am it powers off … then back on at 6:30am etc etc …
i’ve built the following rules, but as you will see an i discovered, this basically switches it on once and then its always off.
triggers:
- id: "1"
configuration:
cronExpression: 0 0/30 6-22 * * ? *
type: timer.GenericCronTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
itemName: DeadLegPump_Power
command: ON
type: core.ItemCommandAction
triggers:
- id: "1"
configuration:
cronExpression: 0 0/15 6-22 * * ? *
type: timer.GenericCronTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
itemName: DeadLegPump_Power
command: OFF
type: core.ItemCommandAction
Any pointers would be really appreciated, I’m guessing this could even be possibly done in a single rule using if statements ?
Thanks