Events system thread (questions and feedback)

Moderator: leecollings

User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Ugh yeah I would like to have events in english only at this point, since it is already complex enough in one language, sorry.
puck2013
Posts: 1
Joined: Friday 12 July 2013 14:45
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by puck2013 »

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
Last edited by puck2013 on Saturday 20 July 2013 15:23, edited 1 time in total.
Orangina_L
Posts: 3
Joined: Monday 15 July 2013 10:11
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by Orangina_L »

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 ?
macaidwin
Posts: 28
Joined: Saturday 13 July 2013 9:36
Target OS: -
Domoticz version:
Location: Harderwijk
Contact:

Re: Events system feedback thread

Post by macaidwin »

V1.843
When I make use this event:
Image
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:
Image
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.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Did you try with "Off" instead of !="On"?
macaidwin
Posts: 28
Joined: Saturday 13 July 2013 9:36
Target OS: -
Domoticz version:
Location: Harderwijk
Contact:

Re: Events system feedback thread

Post by macaidwin »

CopyCatz wrote:Did you try with "Off" instead of !="On"?
Yes, I did. I tried also !=1 with the same result.
In another test event it is working to check if switch = On or Off
User avatar
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

Post by capman »

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
User avatar
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

Post by capman »

macaidwin wrote:
CopyCatz wrote:Did you try with "Off" instead of !="On"?
Yes, I did. I tried also !=1 with the same result.
In another test event it is working to check if switch = On or Off
Maybe you try "open" instead of "off".
macaidwin
Posts: 28
Joined: Saturday 13 July 2013 9:36
Target OS: -
Domoticz version:
Location: Harderwijk
Contact:

Re: Events system feedback thread

Post by macaidwin »

capman wrote:
macaidwin wrote:
CopyCatz wrote:Did you try with "Off" instead of !="On"?
Yes, I did. I tried also !=1 with the same result.
In another test event it is working to check if switch = On or Off
Maybe you try "open" instead of "off".
I do not get other results when using !="open" or ="closed" or other combinations.
commodore white
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

Post by commodore white »

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
User avatar
Jochen
Posts: 11
Joined: Saturday 13 July 2013 10:37
Target OS: -
Domoticz version:
Location: Germany / NRW
Contact:

Re: Events system feedback thread

Post by Jochen »

CopyCatz killed my blockly-events :)

I have some Blockly-Rules that look like this:

Code: Select all

if(Device==Open)
{
    if(Time >= 20:00) 
    {
        // do something
    }
    // Do something
}
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 not failed 1,000 times.
I have successfully discovered 1000 ways to NOT make a light bulb.
*Thomas Edison*
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Implemented disabling of blockly events in the web interface.
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by luckysession »

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
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Jochen wrote:CopyCatz killed my blockly-events :)
Why you disable this? It was running very well.
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.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

luckysession wrote:
second: if MAC or IP is ONLINE or OFFLINE
Not gonna happen. Figure out a nice lua script and share it with us.
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by luckysession »

CopyCatz wrote:
luckysession wrote:
second: if MAC or IP is ONLINE or OFFLINE
Not gonna happen. Figure out a nice lua script and share it with us.
Thank you, for the moment i have found this... http://www.luteus.biz/Download/LoriotPr ... MAC_EN.htm

On my own its to late in the afternoon to create a script in lua, if its possible.

btw, good night!
pierre4fun
Posts: 5
Joined: Friday 12 July 2013 13:39
Target OS: -
Domoticz version:
Location: Toulon France
Contact:

Re: Events system feedback thread

Post by pierre4fun »

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 :shock:

Regards
Pierre
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

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.
commodore white
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

Post by commodore white »

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
willie-p
Posts: 34
Joined: Friday 12 July 2013 14:19
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Events system feedback thread

Post by willie-p »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests