Events system thread (questions and feedback)

Moderator: leecollings

spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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,
User avatar
tommit01
Posts: 39
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi / ODroid
Domoticz version: multiple
Location: Germany / SL
Contact:

Re: Events system feedback thread

Post 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
1 x RPi3
4 x RPI
3 x RPi2
1 x RPI2 + Win 10 IoT (experimental device)
2 x RPI2 Raspbian "Jessie" + Domoticz (for tenants)
2 x RPI OSMC @ 1GHz
1 RPi Zero W + Cam NOIR
1 RPi Zero W + Cam
RFXtrx 433 FW 1015
RFXtrx 433 E FW 1020
Mike Thrussell
Posts: 3
Joined: Friday 12 July 2013 14:07
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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...
spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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?
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 »

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
Attachments
Capture.JPG
Capture.JPG (30.18 KiB) Viewed 6657 times
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 »

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'
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 »

Dumb question, but with "Set Level X", which range is X? does that vary per device?
SweetPants

Re: Events system feedback thread

Post 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
spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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.
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 »

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.
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:Sweetpants: scenes are not working yet.
Thanks, clear
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 »

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.
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: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 ?
gibbiem
Posts: 4
Joined: Saturday 13 July 2013 3:36
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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?
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 »

set landing light = on for 5 minutes
jfcjfc
Posts: 10
Joined: Monday 15 July 2013 14:37
Target OS: -
Domoticz version:
Location: France
Contact:

LUA errors : attempt to compare two nil values

Post 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 !
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 »

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..?
SweetPants

Re: Events system feedback thread

Post 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
spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post 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……….
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 »

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

Who is online

Users browsing this forum: No registered users and 0 guests