Page 1 of 1
Timer won't work, Event possible solution?
Posted: Sunday 05 June 2016 17:14
by BullHead
Dear all,
i'm total newbie on Domoticz.
Earlier i used NexaHome things arn't working the same way in these two systems so i need some help/support from you.
If i use timmers on my kitchen lamp.
Turn on 04:50 in the morning
Turn off at Sunrise
OK, that should work.... but now in the summer when sunrise is 03:48 in the morning it will turn on the lamp at 04:50
and ignoring that sunrise is way earlier.
In NexaHome i could "pair/link" those two timers to have it work flawless....
Do we have that possibility in Domoticz?
How should i solve this problem the easiest way?
I'm no script guru.... But a suggestion in blocky might help.
Re: Timer won't work, Event possible solution?
Posted: Monday 06 June 2016 21:41
by georgesattali
Hello,
maybe, there is what you need in blockly, especially if you click on Time, you will get several options with sunrise and times, and so on.
With this, the switch "Prise 7" (an example here) should turn on at 04:50, but only when sunrise occurs after 04:50.
You also have to remove the timer "Turn on 04:50 in the morning" (it is replaced by this block),
but keep the timer "Turn off at Sunrise".

- Capture.PNG (391.71 KiB) Viewed 2242 times
don't forget to click "Event active", as I often do.
I'm sorry I couldn't test it, so you have to do it
Regards,
GD
Re: Timer won't work, Event possible solution?
Posted: Tuesday 07 June 2016 17:35
by BullHead
Thank you!
I will try that at once

Re: Timer won't work, Event possible solution?
Posted: Wednesday 08 June 2016 22:05
by BullHead
That didn't work

The Blocky script generates errors in the logg
Re: Timer won't work, Event possible solution?
Posted: Friday 10 June 2016 17:29
by BullHead
Looks like my usb WiFi stick is creating something that makes the events to not work....
Re: Timer won't work, Event possible solution?
Posted: Thursday 16 June 2016 22:21
by georgesattali
Hello Jonas,
sorry not to have answered sooner, I was away for my work.
you are right, Blockly doesn't like "Sunrise" on the left so, this new block worth a try.
I think it equivalent to the previous one.
As I cannot do an image attachment, I will explain in text :
instead of : "Sunrise >= 04:50"
one must use : "Time >= Sunrise"
See you, tell me if u want more.
GD
Re: Timer won't work, Event possible solution?
Posted: Saturday 18 June 2016 10:59
by Derik
try:
time = x or sunrise
Time and sunrise is not possible
Re: Timer won't work, Event possible solution?
Posted: Saturday 18 June 2016 11:35
by BullHead
Derik wrote:try:
time = x or sunrise
Time and sunrise is not possible
Hi Derik.
Can you please post an example?
What im looking for is: turn on a switch/lamp 04:50 in the morning but not if sunrise is before 04:50
Re: Timer won't work, Event possible solution?
Posted: Saturday 18 June 2016 11:56
by Derik
Bullhead
Make a dummy switch that is turning on and off @ the times you like [ With timer in the Switch ]
Make the blockley:
If dummy switch is on or off then switch the light @ 4:50
Sorry no screendumps possible..[ quota reached ]
Re: Timer won't work, Event possible solution?
Posted: Saturday 18 June 2016 12:27
by BullHead
Excellent idea!
I will try that asap.
Thanks!