Having problems with a routine
If / contact sensor - open
Then / send a notification
This works good but I wanted to restrict with a period of time
If / 8 am to 10 am (Use as a precondition) Sensor - open
Then / send notification
This will not work. What did I do wrong
That looks like it should work. Does your routine say:
If 8:00am - 10:00am
Everyday
Use as precondition
“Whatever sensor”
“Room”
Contact Sensor:Open
Then
Send notification to member
“Whatever Message”
With this type of automation the problem is often that the contact is already open at 8am and the expectation is that the Routine will be executed at 8am to deal with that. It won’t, the contact has to change to open during the time period.
Is that a possibility here?
[quote=“orangebucket, post:3, topic:255570
, full:true”]
With this type of automation the problem is often that the contact is already open at 8am and the expectation is that the Routine will be executed at 8am to deal with that. It won’t, the contact has to change to open during the time period.
Is that a possibility here?
[/quote]
Good point. He may want to add another condition to the original routine to check that the contact is closed in addition to the action and precondition triggers.
I can vouch for this. Using periods of time as a precondition does not work for me
So if you only want a routine to work for a few hours a day there is no way to do this now webcore is gone
You should be able to use @Mariano_Colmenarejo “Virtual Calendar Device” driver to do this.
Is that the Virtual Calendar Mc
Sounds like the same thing.
I have one that works reliably to arm-stay my house when I leave the house between 4am-7am for a workout, but I have some other preconditions included with it like if my guest mode is on/off and if my wife is home. Is there some other precondition that you can include in it to try it out and see if that helps?
Im trying to find out how to install the driver
Could it be Virtual Appliances Mc
Actually, several of us have mentioned using virtual devices as variables that turn on or off from a separate routine and are then used as preconditions in another routine. For example, I have a routine that turns on a virtual switch at 10 pm and turns it off at sunrise. That virtual switch state is then used as a precondition to control motion dimmer behavior in multiple rooms during that time period. Best of all, they all run local to the hub instead of in the cloud.
So I can have a few pre conditions but they cant be time based. I have to install a virtual switch to turn on say at 8am and off at 10am and use that as a precondition. OK but Im not to sure on how to use the Virtual appliance driver. I was able to install it but not sure what to do now
Hi @trickyrick
You can do some as this Routine
If
- Local Hour >= 08:00 (800)
And - Local Hour Two <= 10:00 (1000)
And - Sensor Open
Then
- Send NotificaciĂłn