I think the "and" should be an "or" due to the 00:00 end of day within Domoticz.tozzke wrote:Sunset/rise have to be linked into the Time-blockly

Moderator: leecollings
I think the "and" should be an "or" due to the 00:00 end of day within Domoticz.tozzke wrote:Sunset/rise have to be linked into the Time-blockly
I'd say that this should do the trick:AimoPaukku wrote:Hi...
How can i create this IF event?
IF it is cold outside(<10c I have virtual weatherstation) and any door(i can do doors or package) is left open for a 5min or more. Ignore if less.
Then I want a message (can do this part)
Code: Select all
2017-04-01 01:03:33.339 User: Admin initiated a switch command (123/TESTknop1/On)
2017-04-01 01:03:33.340 (TESTknop1) Lighting 2 (TESTknop1)
2017-04-01 01:03:35.427 User: Admin initiated a switch command (124/TESTknop2/On)
2017-04-01 01:03:35.457 EventSystem: Event triggered: TEST - 1-4-2017 - AimoPaukku Domoticz forum Blockly samples_1
2017-04-01 01:03:35.460 var TESTlamp1 = 1
2017-04-01 01:03:35.460 var TESTlamp1 = 2 after 10 seconds
2017-04-01 01:03:35.428 (TESTknop2) Lighting 2 (TESTknop2)
2017-04-01 01:03:35.746 (TESTlamp1) Lighting 1 (TESTlamp1)
2017-04-01 01:03:39.447 User: Admin initiated a switch command (124/TESTknop2/Off)
2017-04-01 01:03:39.478 EventSystem: Event triggered: TEST - 1-4-2017 - AimoPaukku Domoticz forum Blockly samples_3
2017-04-01 01:03:39.480 var TESTlamp1 = 0
2017-04-01 01:03:39.448 (TESTknop2) Lighting 2 (TESTknop2)
2017-04-01 01:03:39.775 (TESTlamp1) Lighting 1 (TESTlamp1)
2017-04-01 01:03:46.743 Set UserVariable TESTlamp1 = 2
2017-04-01 01:03:50.066 User: Admin initiated a switch command (124/TESTknop2/On)
2017-04-01 01:03:50.095 EventSystem: Event triggered: TEST - 1-4-2017 - AimoPaukku Domoticz forum Blockly samples_2
2017-04-01 01:03:50.097 WARNING!!!!! DOORS OPEN!!!!
2017-04-01 01:03:50.067 (TESTknop2) Lighting 2 (TESTknop2)
2017-04-01 01:03:50.371 (TESTlamp1) Lighting 1 (TESTlamp1)
2017-04-01 01:03:50.761 Set UserVariable TESTlamp1 = 0
2017-04-01 01:04:20.292 User: Admin initiated a switch command (124/TESTknop2/Off)
2017-04-01 01:04:20.293 (TESTknop2) Lighting 2 (TESTknop2)
2017-04-01 01:04:21.116 User: Admin initiated a switch command (123/TESTknop1/Off)
2017-04-01 01:04:21.117 (TESTknop1) Lighting 2 (TESTknop1)
Depending of the lamp type, I've noticed "Off AFTER 5" works sometimes a lot better than "On FOR 5". It possibly has something to do with the states that are available for the lamp type. Basic On/Off works (maybe) well also with "On FOR XX" whereas dimming / RGB etc. bulbs need to use "Off AFTER XX"?anno wrote:this is working only not all the time. for example this evening the tuin lights didn't turn off after 5 min. Why?
Thanks you, i will try itNautilus wrote:Depending of the lamp type, I've noticed "Off AFTER 5" works sometimes a lot better than "On FOR 5". It possibly has something to do with the states that are available for the lamp type. Basic On/Off works (maybe) well also with "On FOR XX" whereas dimming / RGB etc. bulbs need to use "Off AFTER XX"?anno wrote:this is working only not all the time. for example this evening the tuin lights didn't turn off after 5 min. Why?
So I would change the first command to just "On" and then add a second command to each condition with "Off AFTER 5"
'On for x minutes' means that after the set time, it goes back to the previous setting.anno wrote:this is working only not all the time. for example this evening the tuin lights didn't turn off after 5 min. Why?
If you only have an "If" but not an "Else If" then you should use the block without the blue "gear" symbol.Caribou wrote:Hi,
I'm a newbie with domoticz and beginning to play with events.
Could you please tell me what am I missing with this blocky scenario:
My goal is to receive an email alert when a motion is detected between specific hours (next I will try to improve it, by receving only an email for the first motion of each day).
anyone could help me?videodrome wrote:I made this script to bring the nest thermostat to 18 degrees when the window is opened.
the script works fine (open url"http://192.168.1.xxx:8080/json.htm?type ... &svalue=18")
How can run the script when the window is left open for more than five minutes? When x is open for more than 5 minutes, do....
Thanx for the idea: now it works. The nest thermostat will be set to 18 degrees if the door remains open for at least 5 minutes, otherwise it will remain at the set temperature. "Finestra"is the virtual sensorfour2six wrote:quick idea: have a virtual switch, turn that switch on when the window opens and make it turn off after 5 minutes. when it turns off, open the url.
Users browsing this forum: No registered users and 1 guest