Strange behaviour in scene+group+bind

Discussions about RaZberry - Z-Wave board for Raspberry computer
Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Strange behaviour in scene+group+bind

Post by Pipistrello77 » 25 May 2014 14:25

Hi!

I have a light scene that simply turn Off a set of lights (2 lamps operated by a Fibaro multiswitch).
I have a group that simply includes that light scene only for ON events.
Finally i have a bind between other light and the group (this is because you cannot bind a light with a light scene).

When i turn on the second light, al the lights in the scene are turned Off. Great!... This works fine when i use phisical buttons... But when the lights in the scene are On and the second light is on... When i switch Off the second light... The lights include in the light scene are turned Off tooo... Only when i use virtual button in the ha ui. That is a Strange behaviour.

Another case: if a build a similar conbination to do the opositte action... (Turn Off the second light when i turn on any light in the light scene) when i turn on any light in the light scene i described all lights (the second light but the lights in the light scene ) are turned Off todo

This is really weird... Is this a bug?

Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Re: Strange behaviour in scene+group+bind

Post by Pipistrello77 » 27 May 2014 00:55

Hi PoltoS!
Have you seen this post? Could you please help me with this?

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Re: Strange behaviour in scene+group+bind

Post by PoltoS » 27 May 2014 15:57

Quite hard to follow.... Excuse. May be you can describe it a bit more clearly with modules name, exact actions. Or a video to reproduce ;)

Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Strange behaviour with UI lights button

Post by Pipistrello77 » 02 Jun 2014 18:01

Hi PoltoS
Thanks to LogicalRule module, i have simplified the scenario with problems.

I have a LightScene to switch off Light 1. We could name this scene "Scene1_off"
I have a LogicalRule with the following configuration:
-condition: when Light2 is On
-action: activate Scene1_off

I have performed several tests with diferent results:

Test1
Inicial status: Light1 On. Light2 off.
Action: manual switch on of Light2 (using wall switch or using UI web button).
Result: light1 is automatically switched Off.
Evaluation: OK

Test2
Inicial status: Ligh1 and Light2 are On
Action: Manual switch Off of Light2 (using wall switch)
Result: nothing happens automatically.
Evaluation: Ok

Test3
Initial status: Light1 and Light2 are on.
Action: switch Off of Light2 using UI button
Result: Light1 is automatically switched Off!
Evaluation: wrong behaviour. The result must be the dame as test2.

PoltoS could you review? Itv very Strange!
I have all fibaro relays.
Thanks

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Re: Strange behaviour in scene+group+bind

Post by PoltoS » 03 Jun 2014 00:14

Hard to reproduce... tried - all in vain. If you are able, please have a look on it with a debugger. Or add a lot of console.logJS(...) in LogicalRules/index.js

Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Re: Strange behaviour in scene+group+bind

Post by Pipistrello77 » 03 Jun 2014 01:22

Many thanks for your support, anyway! I will try to debug your code (i will do my best :-))

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Re: Strange behaviour in scene+group+bind

Post by PoltoS » 04 Jun 2014 18:06

may be you can give remote access to the box?

Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Re: Strange behaviour in scene+group+bind

Post by Pipistrello77 » 07 Jun 2014 23:50

hi PoltoS

i have used console.log with no success... i can´t see anything. How console.logJS works??

Maybe, when the module is triggered by a change of state of the switch used in the binary condition, the module is not recovering properly the actual state of the device and maybe is considering a "on" state when is "off"... but i dont know why ¿?

Thanks!
Sergio

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Re: Strange behaviour in scene+group+bind

Post by PoltoS » 08 Jun 2014 00:56

Hard to interpret your data. May be you can use the debugger tool?

Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Re: Strange behaviour in scene+group+bind

Post by Pipistrello77 » 08 Jun 2014 11:00

Ha ha ha i'm sorry... I'm using chrome browser javascript console. Could you recomend me another way to debug?
As i said i put a lot of console.log ("xxxx") but i couldnt see anything.

Post Reply