Timer won't work, Event possible solution?

Moderator: leecollings

Post Reply
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Timer won't work, Event possible solution?

Post 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.
Last edited by BullHead on Wednesday 08 June 2016 22:18, edited 1 time in total.
Best regards
Jonas
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Timer won't work, Event possible solution?

Post 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
Capture.PNG (391.71 KiB) Viewed 2152 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
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Re: Timer won't work, Event possible solution?

Post by BullHead »

Thank you!

I will try that at once :-D
Last edited by BullHead on Wednesday 08 June 2016 22:19, edited 1 time in total.
Best regards
Jonas
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Re: Timer won't work, Event possible solution?

Post by BullHead »

That didn't work :-(
The Blocky script generates errors in the logg
Best regards
Jonas
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Re: Timer won't work, Event possible solution?

Post by BullHead »

Looks like my usb WiFi stick is creating something that makes the events to not work....
Best regards
Jonas
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Timer won't work, Event possible solution?

Post 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
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Timer won't work, Event possible solution?

Post by Derik »

try:
time = x or sunrise
Time and sunrise is not possible
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Re: Timer won't work, Event possible solution?

Post 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
Best regards
Jonas
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Timer won't work, Event possible solution?

Post 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 ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
BullHead
Posts: 11
Joined: Sunday 05 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8771
Location: Oxelösund/Sweden
Contact:

Re: Timer won't work, Event possible solution?

Post by BullHead »

Excellent idea!
I will try that asap.

Thanks!
Best regards
Jonas
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests