Page 1 of 2
sunset/sunrise timed events
Posted: Sun Sep 21, 2008 4:19 am
by sundodger
hi all, thought i was having trouble with only some timed events not triggering. it turns out that any that are linked to sunrise or sunset times dont "fire".
any related to absolute time no problem.
anyone seen this before and has a solution?
thanks Mark..
Re: sunset/sunrise timed events
Posted: Sun Sep 21, 2008 11:35 am
by Osler
Do you have your lattitude and longitude settings correct?
Osler
Re: sunset/sunrise timed events
Posted: Sun Sep 21, 2008 1:44 pm
by sundodger
set up perfectly (thanks to google earth). i have some events like outside lights that come on at sunset and then turn off at say 00.30am. i have to turn them on manually in housebot but they turn off with no intervention.
odd..
Re: sunset/sunrise timed events
Posted: Sun Sep 21, 2008 2:39 pm
by Richard Naninck
What are your sunset and sunrise times giving you? Are those times correct? If not, you input the wrong coordinates or the right coordinates in a wrong way. If the times are correct, something else is wrong. First things first..
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 5:36 am
by sundodger
as of today sunset 8.09pm and sunrise 6.48am. i am also logging the data and nothing happens at the appointed time. so it seems to be housebot and not a problem with the commands getting to devices.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 7:33 am
by Richard Naninck
Can you show a sample of your task which is supposed to switch the light at sunset? Those times are valid, so your coordinates are not at fault here.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 11:08 am
by sundodger
if ('System Time.Sunset Time' is Equal '9/22/2008 8:04 pm' ) Then
Change 'Outside Lights.Power State'to 'On'
Else If ('System Time.Time Without Seconds' is Equal '0.00' ) Then
Change 'Outside Lights.Power State' to 'Off'
had to type it but that is it basically.
have another one but think it is on civil sunset as the times are slightly different to this one.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 11:18 am
by ScottBot
Make sure that the Tasks are not stuck in a 'Running' state. If a Task is currently running, it won't run it again.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 11:26 am
by sundodger
sorry to be an idiot. how do i check this?
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 11:44 am
by ScottBot
If you click on 'Tasks' in the main tree view, it will display all of the tasks with their current state shown in the list. They are either 'Waiting', 'Disabled', or 'Running'. If you click on the 'State' name in the header, it will sort the tasks into these categories. Typically Tasks don't run for long, so if you see any in the Running state, that may indicate a problem.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 12:03 pm
by kilowatt
I think the problem is with the first "if" since 'System Time.Sunset Time' changes each day and will rarely if ever equal '9/22/2008 8:04 pm'
Try:
if('System Time.Sunrise Indicator' is Equal '0')
This is what I use for events at sunset. For sunrise check for equal to '1'
Also check your off time I'm not sure if 'System Time.Time Without Seconds ever = 0.00 I use "12:00 am"
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 12:20 pm
by ScottBot
kilowatt wrote:I think the problem is with the first "if" since 'System Time.Sunset Time' changes each day and will rarely if ever equal '9/22/2008 8:04 pm'
Ahhh yes, that's it.
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 1:13 pm
by sundodger
i am sure you are correct and will look at changing this. however this is the format housebot uses if i select system stock values/sunset time.
a bug?
Re: sunset/sunrise timed events
Posted: Mon Sep 22, 2008 5:53 pm
by Osler
The way you are doing it should work. For my sunset events I would actually added 30 minutes to the sunset time to ensure it was dark enough to warrant turning exterior lights on. I'll have a look at the logic when I get home this evening.
Does the task have a last executed reading of 'Never'? Is the task set to 'Manual' or 'When Conditions Are Met'? Is it enabled?
Osler
Re: sunset/sunrise timed events
Posted: Tue Sep 23, 2008 5:11 am
by sundodger
last executed last night at 23.59 (i changed the time of the off) as stated absolute time works but i have to switch on "manually"
it is currently waiting
the other task that works on sunset/sunrise shows never.
the task is enabled
and set to when conditions are met.
thanks Mark....