Page 4 of 16

Re: Events system feedback thread

Posted: Monday 15 July 2013 23:28
by spiderrob
Great job on the blocky interface.

I appreciate that it's work in progress, but is there a way to currently set dimmer values in blocky. I want my landing PIR to trigger the landing lights only between 2 & 4 in the morning but only at 20%. I think i can do everything but the dimmer value at the moment?

Thanks,

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 0:32
by tommit01
Hello, just a remark..

I just tried to write a script using device RASPBERRY PI 02 and an HE EU 808 S (shared device) together with my fan pad and a USB charger..
Tried to configure WHEN RASPI TEMP >= 60 AND HE EU Switch OFF
THEN HE EU Switch = ON
SEND MESSAGE WITH SUBJECT 'Raspi Cooling started' AND MESSAGE 'RaspBerry PI 02 temperature >= 60'

When Saving with name 'PiCooler Start' I recognized a typo because I only typed 'PiColer' so I corrected name, saved again and delete script with name PiColer.
Then I wanted to reload 'PiCooler' but this script is empty then...

I will be cooling Raspberry Device until temperature will drop again under a certain temperature... it's a RaspBMC @ 1 GHZ

BR
Tommit

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 8:57
by Mike Thrussell
spiderrob
CopyCatz wrote:
Mike Thrussell wrote:How do you set dimmer values in Blocky / Lua scripts?
"Set Level x" should work but haven't tested it as I have no dimmers...

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 10:56
by spiderrob
Thanks Mike but I can't see a set level in Blocky. Can it only be used in Lua scripts? I've tried using the number setting instead of on in the Set 'landing' = on blocks but there appears to be no Set level?

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 14:43
by Orangina_L
Hi,

I still don't understand why it is not working, could you just tell me if it is problem from me or if the function is not implemented yet ?

test = a scene whit on / off

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 17:20
by macaidwin
I am on version 1.851 now and still trying to get no repeating notifications when switching depending on temperature or humidity.

A simple test:
Image

Although is the switch already 'on' the notifications and switch commands are repeated every <minute or so.
|='on' gives the same result as ='off'

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 18:34
by CopyCatz
Dumb question, but with "Set Level X", which range is X? does that vary per device?

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 18:45
by SweetPants
Hi Guys,
I'm very pleased with the event system, great job, but have a question.

Why is this working
switch_scene.png
and this (scene) not?
scenes_event.png
Later i want all my smoke detectors, which are in a scene, to give an alarm if somebody enters my house.

Or is this not implemented yet?

Harry

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 19:00
by spiderrob
CopyCatz wrote:Dumb question, but with "Set Level X", which range is X? does that vary per device?

Dimmer levels should be just 0-100% I believe. It would be great to set these in Blocky.

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 19:05
by CopyCatz
I think I found the cause for a triple statement (mcaidwin's) not working, trying to fix it. I will also create a set level block. Sweetpants: scenes are not working yet.

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 19:22
by SweetPants
CopyCatz wrote:Sweetpants: scenes are not working yet.
Thanks, clear

Re: Events system feedback thread

Posted: Tuesday 16 July 2013 20:21
by CopyCatz
In 855 I hopefully managed to interpret all variations of if statements... was a bitch to get right, so would be happy if all is ok now. Also implemented "Set Level X" block. My x10 dimmer does not seem to respond, please test with other devices. Keep in mind:

- Set Level does not work in the random and for x minutes set blocks yet
- It also doesnt work in the if area, only as an action.

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 9:57
by macaidwin
CopyCatz wrote:In 855 I hopefully managed to interpret all variations of if statements... was a bitch to get right, so would be happy if all is ok now. Also implemented "Set Level X" block. My x10 dimmer does not seem to respond, please test with other devices. Keep in mind:

- Set Level does not work in the random and for x minutes set blocks yet
- It also doesnt work in the if area, only as an action.

I think I can confirm that you managed to interpret the different variations. You Did It!
I tested with Image and it does not repeat any more.
Now I am testing more complex statements.
Good job! Many Thanks!

Do you have any idea how to check if energy meter is on Usage_1 or Usage_2 ?

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 11:13
by gibbiem
Hi, I'm trying to use blocky to create an event that says if landing light is on, turn bedroom light on then wait 5 minutes and turn landing light off. Can't seem to find a way to add the wait bit. Any one have any ideas?

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 13:03
by CopyCatz
set landing light = on for 5 minutes

LUA errors : attempt to compare two nil values

Posted: Wednesday 17 July 2013 19:56
by jfcjfc
........ and devicechanged['Tp_MS_Salon_Temperature'] > devicechanged['Tp_Vacances_Temperature']) then ...
or otherdevices['Tp_MS_Salon_Temperature'] > otherdevices['Tp_Vacances_Temperature']) then ...

error : attempt to compare two nil values => 27.4 and 12.0

???? Thanks CopyCatz !!
without compare two temperature, it's good, for the moment !

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 20:23
by macaidwin
macaidwin wrote: Now I am testing more complex statements.
Good job! Many Thanks!

Do you have any idea how to check if energy meter is on Usage_1 or Usage_2 ?
I have tested some more complex statements, like:
Image

And these are all working. These are just looking complex, but are just to prevent event triggers from repeating over and over again. The ventilation switches only get commands when they are not in the state this event will set them to. Ehm.. complex sentence..?

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 20:33
by SweetPants
Hi, I just seen the new "Show Current States" feature in 1.859, but the names are not refreshed after a change name of the device?
You have to re-start domoticz to get the changed devices in.

Maybe a 'refresh' button near "OK"

Harry

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 22:49
by spiderrob
CopyCatz wrote:In 855 I hopefully managed to interpret all variations of if statements... was a bitch to get right, so would be happy if all is ok now. Also implemented "Set Level X" block. My x10 dimmer does not seem to respond, please test with other devices. Keep in mind:

- Set Level does not work in the random and for x minutes set blocks yet
- It also doesnt work in the if area, only as an action.
'Set Level X' block does not work for Lightwave dimmers either……….

Re: Events system feedback thread

Posted: Wednesday 17 July 2013 23:37
by CopyCatz
Ok will look at the set level issue later. So far I've been busy debugging my domoticz crashing, hope that is fixed now. Also cleaned up the temp, hum and baro values that are sent to lua (other values came in as well which weren't temps etc.)