Turning lights on random schedule

Fsolo23 shared this thanks 20 days ago

Hi All

First post here and there has been lot of useful info, but still need some help :).

I'm trying to create a rule to turn lights on nightly at a random time (hopefully) between 6-7pm and turn off randomly later in the evening

This rule I created ins't working, first time I use the schedule config option. I know the scene works as I can use it on its own.

Please help with creating a working rule :)

Please note, I don't have the pro edition yet, as I'm still playing around with zipato as evaluation for automation brain.

Thank you for the help.

Comments (13)

photo
1

Hi,

At first I see two things:

1- make sure you give a date to your start that is in the future (it's a personal observation, perhaps the logic test with the date is based on an event management in Zipato. I cannot say it for sure, but once again, I observed it worked when putting the first date to the next day)

2- your tests" if now between " etc are NOT random

Here my own working rule snapshot. I start at 23H45mn.

1- I make a test on a variable named AtHome (I run the script only if I'm away)

2 - I send an email to myself to inform me of what's going on home...

3 - I have a variable that stores the status of presence simultation that I set to false (I've previously set it at true with another rule more complicated that manages if presence simulation should or not be played)

4 - I switch off the first lamp

5 - I then have an action that waits randomly between 600 and 1200 seconds (that could be any length of time)

6 - After this random wait I switch off the second lamp

etc

Here is the global logic: a starting time, a random wait, an action, and you repeat as many time as needed.


/bbbb8acdef856de90fc10148424c3651

If you need more translation from the french screen, let me know.

Hope this helps.

photo
1

Thank you Testing today. your rule made sense and I understood the french on it. What I was missing and I think it finally clicked is, the scheduler isn't just a start, but a configuration of time. when its (set time and day) execute, and repeat daily. is that understanding correct.

based on this logic, this should actually run my lights everyday at 9.45am? yes?


if that is correct, the next part would be to set the randomizer as you have in "attente"

photo
1

just an update, the config changes I made and provided above, didn't really do anything.

am I using scheduler incorrectly?

photo
1

I have similar rule, but on top of that I use a second random to trigger or not a toggle on my lights.

photo
1

is your rule working Oliver? I want to use a random timer, but figured to get the basics working. since its my first rule. if your is working and you can share a screenshot of all the details .maybe I can reproduce from scratch and see what happens.

photo
1

I use this rule to turn the lights on between 18:00 and 19:00 every day of the week. And its stay on for a minimum of 1 hour and maximum of 2 hours also a rondom time.

photo
1

thanks alex, I just made my look like what you attached. hopefully it works tomorrow :) will come back with an update.

photo
1

I tried the following rule attached here, it didn't work. no email and no lights. I just took out the scene and put the light switch in its place, to see if that works.

I'm struggling with the use of the scheduler and there doesn't seem to be logs or clear instructions on how to use it and debug it.

i appreciate all the help by the forums on this.

photo
1

The schedule should now running every day at 7:00. Keep in mind that the date you choose should be in the future and not the past at the moment you save and synchronize your rule. And don't forget to sync your rules.

I recreate your rule and it works fine. Only thing I added is a JOIN to prevent multiple times of sending the same rule.

photo
1

thanks Alex for the feedback, I'm sitting right next to the lights to see if anything happens... nothing happened. I set the schedule 2 hours into the future, made sure to sync multiple times. Are there any logs I can read.

Also I can't use join, as I haven't purchased the pro version. waiting to see if this is the right product for me :)

photo
1

Unfortunately Zipato is terrible to debug because there are no system logs. You can use events to check if the time setting are correct and wen a events occurs at a device. Debugging rules is not possible.

The thing I normally do is to debug manually. In this case I should try to turn a light ON at a specific time with a schedule. If this works than try to schedule a repeat after xx minutes.

If this works try to make the repeat steps bigger. If it don't work contact Zipato support.

photo
1

So I know that the following scenario works successfully. So I know the issue is with the scheduler.

whats my best way of contacting zipato support ? (sorry I'm new :) )

photo
1

well in a turn of events. today for the first time the scheduler worked. I had it scheduled to run 4 days ago. which means I programmed it 5 days ago. but today, when I pretty much gave up and was research other hub options. lights came on and I got the email.

I know i've done all the sync steps

the only thing that has happened, is i unplugged the device last night from network and power. the battery on it had drained. I replugged early this morning and the lights turn on.

has anyone encountered this issue and do i really have to do this every time or am i missing something.

photo