I have a coffee machine I would like to turn on at 7:30am each weekday and stay on for 1 hour then turn off, I also have a button switch I would like to press on at any time and the coffee machine comes on but goes off after 30 minutes.
Ideally I would also like to use the button to turn OFF the cofffee machine if I am in the 1 hour morning sequence
I have experimented with rules and dummy switch items with expire bindings that have more rules looknig for OFF status to then turn off the coffee machine but I have got myself in a bit of a knot with expire bindings on the dummy items and rules all over the place.
Is anyone able to help with a set of cler rules, items and config that could support the scenario above?
Create one rule triggered by time (7.30am) and your button item
Within the rule you can differentiate if the rule is executed by time or by button (check if a triggering item is existing or not)
If the rule is triggered by time, then turn on the coffee machine and set a timer to 1 hour, which will turn the coffee machine off
If the rule is triggered by the button and the coffee machine is off, then turn on the coffee machine and sweet a timer to 30 min to turn off the coffee machine again
If the rule is triggered by the button and the coffee machine is on, then cancel any existing timer and turn off the coffee machine immediately
Ok it sounds like I’m actually on the right track the only difference I can see in suggestions is I’m using the expire binding which itself seems to be unreliable to trigger rules