And if you try this with a fixed time?micbou wrote:and its weird because below does work
Schermafbeelding 2016-06-05 om 22.03.06.png
So when the "door?" is open on that time?
Moderator: leecollings
And if you try this with a fixed time?micbou wrote:and its weird because below does work
Schermafbeelding 2016-06-05 om 22.03.06.png
Code: Select all
2016-06-09 20:59:00.497 Error: EventSystem: Lua script error (Blockly), Name: test_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'NaN'
That's strange...BullHead wrote:Hi,
can anyone explain why this doesn't work?
Skärmavbild 2016-06-09 kl. 20.40.47.png
Simplest event there can be and it's not working.
I'm not able to get any event to work that i have tried.
Timers working fine but not events
I found a similar post earlier but no solution for the problem.
I'm actually getting this error in the loggCode: Select all
2016-06-09 20:59:00.497 Error: EventSystem: Lua script error (Blockly), Name: test_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'NaN'
Code: Select all
2016-06-09 21:55:00.435 EventSystem: Event triggered: 01 - Test_1
2016-06-09 21:55:02.427 (RFXCOM) Lighting 2 (N1 - Lampa Groventre)
What kind of logic should I use?Minglarn wrote:
That's strange...
However, seems to me that you are using wrong kind of logic...
Skärmklipp.PNG
And this is from the log:Using Domoticz V3.5228Code: Select all
2016-06-09 21:55:00.435 EventSystem: Event triggered: 01 - Test_1 2016-06-09 21:55:02.427 (RFXCOM) Lighting 2 (N1 - Lampa Groventre)
Build Hash: 76374d0
i think The problem you have is:micbou wrote:Also I want to make my light turns off after 20 minuten of no activity, but this doesnt seem to work. Instead it just shuts off the lights 20 minutes after it's in turned 'off' state.
Schermafbeelding 2016-06-11 om 22.58.58.png
Well I have tried four times and as soon as i plug in the usb wifi events stop working.micbou wrote:I doubt it has anything to do w/ the wifi. I have a RPi3 and not using WiFi, but nothing with time is working for me (still)
Correct, so how do you suggest I'd set it up. So I want my light to turn on when the light in the room is under an x-amount of Lux (MotionSensor6), but only when motion is detected in the living room. If there hasnt been any motion for >15 minutes the lights need to be turned off.Thomasdc wrote:i think The problem you have is:micbou wrote:Also I want to make my light turns off after 20 minuten of no activity, but this doesnt seem to work. Instead it just shuts off the lights 20 minutes after it's in turned 'off' state.
Schermafbeelding 2016-06-11 om 22.58.58.png
1) motionsensors turnes off
2) command to turn lights off after 1200 seconds (timer starts running)
3) motionsenser turns on again because of some motion
but even after event '3' the timer of event '2' is still running (timer is still running) so when timer is done.. it will still set your lights off..
so '2' is actualie setting a timer for 1200 seconds.. once the time is up turn the lights off. but once the timer is started.. it cant be stopped anymore so it will always turn your lights independent of other events..
I use this kind of logic for one of my lamp and work fine. My Domoticz version V3.5113Minglarn wrote:That's strange...BullHead wrote:Hi,
can anyone explain why this doesn't work?
Skärmavbild 2016-06-09 kl. 20.40.47.png
Simplest event there can be and it's not working.
I'm not able to get any event to work that i have tried.
Timers working fine but not events
I found a similar post earlier but no solution for the problem.
I'm actually getting this error in the loggCode: Select all
2016-06-09 20:59:00.497 Error: EventSystem: Lua script error (Blockly), Name: test_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'NaN'
However, seems to me that you are using wrong kind of logic...
Skärmklipp.PNG
And this is from the log:Using Domoticz V3.5228Code: Select all
2016-06-09 21:55:00.435 EventSystem: Event triggered: 01 - Test_1 2016-06-09 21:55:02.427 (RFXCOM) Lighting 2 (N1 - Lampa Groventre)
Build Hash: 76374d0
I just checked the router time.... it's the same as on my computers.Skippiemanz wrote:Maybe a shot in the dark but is the time on you're router right? Maybe as soon as you place the WiFi stick the system time gets altered.
Verstuurd vanaf mijn SM-G925F met Tapatalk
I opened an issue on the Github, but it got closed right away directing me to this forum. Still seems like a bug of some sort to me.dilepa wrote:I also second, Time events not working at all... Am running the lastest beta 5271.
Is there a bug?
Me to! I've experience with Indigo Domotica software (OSX) and there's a virtual (countdown) switch you can set for eg. 15 minutes and can be triggered by time/events/sensors/etc... After x minutes you can set an action (lights off), but you can set a second condition trigger (again the motion sensor by example) to reset the timer to 15 minutes again. This routine repeats itself over and over again until this 15 min reached 0 min. Off course this countdown timer runs again when the first condition triggers the timermicbou wrote:I opened an issue on the Github, but it got closed right away directing me to this forum. Still seems like a bug of some sort to me.dilepa wrote:I also second, Time events not working at all... Am running the lastest beta 5271.
Is there a bug?
This should do the trick:micbou wrote:Correct, so how do you suggest I'd set it up. So I want my light to turn on when the light in the room is under an x-amount of Lux (MotionSensor6), but only when motion is detected in the living room. If there hasnt been any motion for >15 minutes the lights need to be turned off.Thomasdc wrote:i think The problem you have is:micbou wrote:Also I want to make my light turns off after 20 minuten of no activity, but this doesnt seem to work. Instead it just shuts off the lights 20 minutes after it's in turned 'off' state.
Schermafbeelding 2016-06-11 om 22.58.58.png
1) motionsensors turnes off
2) command to turn lights off after 1200 seconds (timer starts running)
3) motionsenser turns on again because of some motion
but even after event '3' the timer of event '2' is still running (timer is still running) so when timer is done.. it will still set your lights off..
so '2' is actualie setting a timer for 1200 seconds.. once the time is up turn the lights off. but once the timer is started.. it cant be stopped anymore so it will always turn your lights independent of other events..
Users browsing this forum: No registered users and 1 guest