hi folks,
I'm trying to automate my dyson hoover charging BUT:
when Dyson Porszivo (s) switch is turned on, I want to wait until 11pm (night electricity) and then turn on an ikea tradfri outlet (Dyson Porszivo) then wait 3 hours and turn off the outlet and the switch.
I bet I was testing it and it was working but sometimes works sometimes not. Maybe my way of thinking is not the best.
any ideas appreciated.
This should work, though there are other ways you could approach the logic (not saying they would be better, just that there are lots of ways!).
If your rule isn't working, enabling logging will be the best help (trigger, action and event logging are all OK to turn on; this will write things to "Logs," either current if the window is open or Past Logs if it wasn't). Two things may be of interest in your case:
-
A re-trigger will cancel any "Waits" but not "Delays" (unless you add something else to do that). You may wish to change that "Delay 3:00:00" to a "Wait for event: elapsed time --> 3:00:00" to avoid the possibility that the switch turns off then on after 11 PM and you get something unexpected later. (This is only one way to solve the problem, and it also won't be an actual problem unless the switch gets turned off and then on after 11 PM when it was already on--but still maybe something to consider.) This shouldn't be a problem if the switch turns on and off throughout the day; technically, the "Wait for event: time is 11:00 PM" will get cancelled, but it will get re-scheduled right after--so that isn't my concern.
-
Any time you hit "Done" or "Update Rule," any temporary schedules or event subscriptions made in the actions (delays, waits, repeats, etc.) will be cancelled. You do not need to hit either of these buttons after viewing a rule or updating actions; you can just navigate a way from the page. You do need to if you modified triggers, but keep in mind this behavior.
My guess is maybe you did the second thing while you were testing. If not, logs are your friend to figure out the rest. (You can also write this rule a different way, but I don't see how it would be any more or less reliable if done well, however it's done.) Good luck!
hi @bertabcd1234
Thanks for your explanation. The problem is that it's not even turning on. Even if I set let's say a 10 min from now time and saving and closing the rule, then turning the virtual switch off and on, it will not turn on at the specified time. so literally, it's not even get to the Delay clause as its not turning on. Turned on logging, its not showing anything in the logs in the specified time. bah.
Tested the switch at the Devices, I can turn it on and off there so the device itself is probably configured properly. no idea really
it was working while testing, now turned on logging and will wait until 11pm. Thanks again!
also updated as you recommended!
I think it might be more reliable to trigger the rule at a set time (11 PM).
Set a required expressions that the Dyson (S) must be on for it to trigger.
Then in the rule do:
On: Outlet
Delay 3 hours (not wait for event)
Off Outlet and Switch
That would prevent re-triggers because it would only trigger at 11PM (and only if the switch is on).
thanks. I was thinking this through and you're right! modified my rule.
1 Like