LUUP code to activate a scene ... howto ...

Good day all ,

I bought a fibaro 3in1 sensor , but have some issues using it. According the manual you can use it as a scene controller , and that is exactly how I want to use it.

The documantation of the fibaro sensor is very poor , but I managed to find some info on the fibaro forum , but they cannot help me for the correct LUUP code on the vera3 . Since I have no clue how to programm things and use LUUP code , I hope someone can help me.

It is this device:
http://www.vesternet.com/z-wave-fibaro-universal-door-window-sensor-5
The manual:
http://materialy.fibaro.com/instrukcje/instructions_EN/door-window/DoorWindowSensor%20%20FGK-101-107%20ENG%20v12.pdf

The parameter #14 in the setup for the sensor I have allready changed (parameter 14 to 1)
here a copy paste of the manual:

Parameter no. 14 Scene activation functionality. Default value: 0 Available parameter settings: 0 - functionality deactivated 1 - functionality activated

The device offers the possibility of sending commands compatible
with Command class scene activation. Information is sent to
devices assigned to association group no. 3
Controllers such as the Home Center 2 are able to interpret such
commands and based on these commands activate scenes, to
which specific scene IDs have been assigned. The user may
expand the functionality of a button connected to IN input by
distinguishing the sequence of it being pushed. For example:
double click would trigger the ?goodnight? scene and triple click
would trigger the ?morning? scene. To fully use the possibilities
offered by the parameter no.14 it is recommended to use a
momentary or a toggle switch (parameter no.3).
Scene ID is determined in the following manner:
IN input:
Switch from ?off? to ?on? ID10
Switch from ?on? to ?off? ID11
Remaining IDs are recognized correctly if the value of parameter
no.3 was set to 2
Holding down ID12
Releasing ID13
Double click ID14
Triple click ID15

And here some LUUP code I found on the fibaro forum:

[code]if ( tonumber(fibaro:getValue(45, “sceneActivation”)) == 10)
then

end[/code]
(45 - id device
10 - value of scen activation from instruction)

and this code:

[code]–[[
%% properties
44 sceneActivation
%% globals
–]]

if ( tonumber(fibaro:getValue(44, “sceneActivation”)) == 24)
then
fibaro:call(38, “turnOn”)
end [/code]

But I think this is only for a fibaro HC2 or so.

Can someone tell me how I put this LUUP code into a scene? and what the right order is?

I guess I start with a new scene, But do I go to “trigger” and insert some LUUP-code or go to “LUUP” directly.

Any help is very much appreciated.

( here the thread I started about this device:
http://forum.micasaverde.com/index.php/topic,13302.0.html)

Cor

Please do not double post. Please use your other thread:

http://forum.micasaverde.com/index.php/topic,13302.0.html

  • Garrett

@ Garrettwp: I get your point, but when i started the other thread , I had no clue my problem was only to be solved with LUUP code

I expect more results in this subforum since this forum is specialized in LUUP codes.

Or does everyone read every subforum on this forum?

Cheers,
Cor

No-one who can give me at least a start how to “trial and error” :frowning:

This code:

[code]if ( tonumber(fibaro:getValue(45, “sceneActivation”)) == 10)
then

end[/code]

Is it vera compatible?

Thanks,
Cor

No-one who can help me a bit ? :frowning:

Cor

that code looks HC2 specific, I think it’s unlikely it will work without some MCV changes. I wouldn’t hold your breath.

That is what I think as well… And need some (a lot of) help to change it… cannot do it on my own :cry:

Cor

I’m not an expert but I doubt it’s solvable in pure Luup and that anyone on the forum who doesn’t work for MCV (who don’t appear to read the forum) can help you as I bet it requires custom device specific support.

You could try the bug tracker or contacting MCV tech support but we can’t even get customisable icons for each device so I’d just give up and if it’s really important to you buy an HC2.

Oh . that sucks, I expected with this LUUP code from fibaro the devices could "talk to eachother… but it is nit that simple than … :frowning:
MCV Tech support; mmmmm, it is woth an email i guess…
Cor