Events system thread (questions and feedback)
Moderator: leecollings
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
Ugh yeah I would like to have events in english only at this point, since it is already complex enough in one language, sorry.
Re: Events system feedback thread
Hi,
blinds do not work with open/close.
it works with on/off.
But with on/off, switch the relay every minute.
Has no one this problem?
Greeting
Peter
blinds do not work with open/close.
it works with on/off.
But with on/off, switch the relay every minute.
Has no one this problem?
Greeting
Peter
Last edited by puck2013 on Saturday 20 July 2013 15:23, edited 1 time in total.
-
- Posts: 3
- Joined: Monday 15 July 2013 10:11
- Target OS: -
- Domoticz version:
- Contact:
Re: Events system feedback thread
Thanks Copycats for your answer.
It is not a big broblem, we just have to know
Idea about my second problem, why doesn't work ?
It is not a big broblem, we just have to know
Idea about my second problem, why doesn't work ?
-
- Posts: 28
- Joined: Saturday 13 July 2013 9:36
- Target OS: -
- Domoticz version:
- Location: Harderwijk
- Contact:
Re: Events system feedback thread
V1.843
When I make use this event:
It is working, but the event triggers every minute, so every minute the switch is set On. (as long as the hum. is above the set levels) This is working, but all these event triggers are not necessary.
So I thought to do this:
Only trigger event when the switch is Not On. But the log still shows the event triggers every minute. Am I doing something wrong?
When I make use this event:
It is working, but the event triggers every minute, so every minute the switch is set On. (as long as the hum. is above the set levels) This is working, but all these event triggers are not necessary.
So I thought to do this:
Only trigger event when the switch is Not On. But the log still shows the event triggers every minute. Am I doing something wrong?
Last edited by macaidwin on Monday 15 July 2013 16:53, edited 1 time in total.
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
Did you try with "Off" instead of !="On"?
-
- Posts: 28
- Joined: Saturday 13 July 2013 9:36
- Target OS: -
- Domoticz version:
- Location: Harderwijk
- Contact:
Re: Events system feedback thread
Yes, I did. I tried also !=1 with the same result.CopyCatz wrote:Did you try with "Off" instead of !="On"?
In another test event it is working to check if switch = On or Off
- capman
- Posts: 153
- Joined: Friday 12 July 2013 20:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: Events system feedback thread
I have found something that works for my blinds now. When outside temperature is higher then inside , my blinds go down.
https://www.dropbox.com/s/roj8ylvsf7btd2j/blinds.jpg
https://www.dropbox.com/s/roj8ylvsf7btd2j/blinds.jpg
- capman
- Posts: 153
- Joined: Friday 12 July 2013 20:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: Events system feedback thread
Maybe you try "open" instead of "off".macaidwin wrote:Yes, I did. I tried also !=1 with the same result.CopyCatz wrote:Did you try with "Off" instead of !="On"?
In another test event it is working to check if switch = On or Off
-
- Posts: 28
- Joined: Saturday 13 July 2013 9:36
- Target OS: -
- Domoticz version:
- Location: Harderwijk
- Contact:
Re: Events system feedback thread
I do not get other results when using !="open" or ="closed" or other combinations.capman wrote:Maybe you try "open" instead of "off".macaidwin wrote:Yes, I did. I tried also !=1 with the same result.CopyCatz wrote:Did you try with "Off" instead of !="On"?
In another test event it is working to check if switch = On or Off
-
- Posts: 63
- Joined: Sunday 14 July 2013 11:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Ipswich, UK
- Contact:
Re: Events system feedback thread
i struggled to save even a simple rule until i realised motion detectors dont return true/false values, just on and off. The upshot is you cant do:
if detector then set light on for 1 minute
instead, you have to write:
if detector = on then set light on for 1 minute
since its the equality test that the returns a boolean needed for the if statement.
Nevertheless, I've managed to save my first rule! Well done, guys.
Peter
if detector then set light on for 1 minute
instead, you have to write:
if detector = on then set light on for 1 minute
since its the equality test that the returns a boolean needed for the if statement.
Nevertheless, I've managed to save my first rule! Well done, guys.
Peter
- Jochen
- Posts: 11
- Joined: Saturday 13 July 2013 10:37
- Target OS: -
- Domoticz version:
- Location: Germany / NRW
- Contact:
Re: Events system feedback thread
CopyCatz killed my blockly-events
I have some Blockly-Rules that look like this:
Since the last Version this codes are corrupted.
It is not possible to add the second IF-THEN element to the THEN-part of the first IF element.
Why you disable this? It was running very well.
I have some Blockly-Rules that look like this:
Code: Select all
if(Device==Open)
{
if(Time >= 20:00)
{
// do something
}
// Do something
}
It is not possible to add the second IF-THEN element to the THEN-part of the first IF element.
Why you disable this? It was running very well.
I have not failed 1,000 times.
I have successfully discovered 1000 ways to NOT make a light bulb.
*Thomas Edison*
I have successfully discovered 1000 ways to NOT make a light bulb.
*Thomas Edison*
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
Implemented disabling of blockly events in the web interface.
-
- Posts: 18
- Joined: Saturday 13 July 2013 14:43
- Target OS: -
- Domoticz version:
- Contact:
Re: Events system feedback thread
Another two feature request for events...
first: time before or after Sunrise and sunset option
second: if MAC or IP is ONLINE or OFFLINE
And last but not least: very GOOD Job guys, THANK you!
Greating from Germany
Luckysession
first: time before or after Sunrise and sunset option
second: if MAC or IP is ONLINE or OFFLINE
And last but not least: very GOOD Job guys, THANK you!
Greating from Germany
Luckysession
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
Blockly creates a block of xml containing the statements. I have to parse all those statements and separate into 2 blocks: the conditions and the actions. Those are saved in the Domoticz database, so that Domoticz can evaluate the condition line and then execute the actions. If we would allow multiple if .. then's, then we would need multiple condition + action pairs per event, making it way more difficult. As said before, we want to keep the blockly interface simple for people who don't program for a living. If you want complexity, use scripts.Jochen wrote:CopyCatz killed my blockly-events
Why you disable this? It was running very well.
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
Not gonna happen. Figure out a nice lua script and share it with us.luckysession wrote:
second: if MAC or IP is ONLINE or OFFLINE
-
- Posts: 18
- Joined: Saturday 13 July 2013 14:43
- Target OS: -
- Domoticz version:
- Contact:
Re: Events system feedback thread
Thank you, for the moment i have found this... http://www.luteus.biz/Download/LoriotPr ... MAC_EN.htmCopyCatz wrote:Not gonna happen. Figure out a nice lua script and share it with us.luckysession wrote:
second: if MAC or IP is ONLINE or OFFLINE
On my own its to late in the afternoon to create a script in lua, if its possible.
btw, good night!
-
- Posts: 5
- Joined: Friday 12 July 2013 13:39
- Target OS: -
- Domoticz version:
- Location: Toulon France
- Contact:
Re: Events system feedback thread
Hello CopyCatz,
OK: simplier is better but in case of If...then conditions, is it possible to use also the "else" possibility ?
I guess it would be helpfull even for simple tasks.
PS: Nice piece of work anyway
Regards
Pierre
OK: simplier is better but in case of If...then conditions, is it possible to use also the "else" possibility ?
I guess it would be helpfull even for simple tasks.
PS: Nice piece of work anyway
Regards
Pierre
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Events system feedback thread
With an else you already have a set of 3.. I might implement that later on, first get the basics working.
Oh a HEADS UP: when you get to the version with the enable/disable event option, all events will be disabled by default, you have to switch them on after upgrading.
Oh a HEADS UP: when you get to the version with the enable/disable event option, all events will be disabled by default, you have to switch them on after upgrading.
-
- Posts: 63
- Joined: Sunday 14 July 2013 11:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Ipswich, UK
- Contact:
Re: Events system feedback thread
there might be merit in standardising on values such that comparisons can be done consistenly and without language difficulties, so, for instance:
TRUE == lights are on (i.e. not off) == doors or curtains are open == locks are engaged == motion is detected == heating on
FALSE == off == doors closed == locks disengaged == no motion detected
... so, to test if curtains are open, code ...
IF curtains THEN ...
instead of ...
IF curtains = "OPEN" THEN ... (or whatever the local language equivalent is)
Regards
TRUE == lights are on (i.e. not off) == doors or curtains are open == locks are engaged == motion is detected == heating on
FALSE == off == doors closed == locks disengaged == no motion detected
... so, to test if curtains are open, code ...
IF curtains THEN ...
instead of ...
IF curtains = "OPEN" THEN ... (or whatever the local language equivalent is)
Regards
-
- Posts: 34
- Joined: Friday 12 July 2013 14:19
- Target OS: Windows
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Events system feedback thread
Dear All,
I know that there are a lot of request to get more from blockly but I do like the simplicity of the program.
Perhaps it's because I'm not a programmer, technical guy, for me this is a good spending hobby and learning scripting is a little bit to much at the moment.
If you guys want to know something about Basel III, CRV IV, I can tell you all about it.
For short, lets keep it s.m.a.r.t. and simple
cheers,
Will
I know that there are a lot of request to get more from blockly but I do like the simplicity of the program.
Perhaps it's because I'm not a programmer, technical guy, for me this is a good spending hobby and learning scripting is a little bit to much at the moment.
If you guys want to know something about Basel III, CRV IV, I can tell you all about it.
For short, lets keep it s.m.a.r.t. and simple
cheers,
Will
Who is online
Users browsing this forum: No registered users and 1 guest