This page last changed on Dec 31, 2015 by phil1348.
I'm stuck with the following simple thing to do :
I want to trig a Openremote rule, from a physical KNX switch (Gira tastensensor)
As there is no possibility to initiate a Openremote Macro from a physical switch, I think I need to use rules.
The rule is running fine when it is trigger from the sensor (as this must be), AND when the sensor is really linked to the feedback object of a KNX switch.
- Push on KNX physical button to turn ON a particular KNX switch
- The feedback object of the switch answers
- The rules start.
But if I just assign a specific KNX group adress to the physical switch, then I created a "pseudo" OpenRemote sensor object, listening to this specific adress, it doesn't work.
I have tried several combination based on my experience and the differents example, but I couldn't succeed.
I have also tried several combination at the KNX level, without succes. Of course, I could just use a unused physical KNX switch to do this, but I feel it a little bit expensive....
All other functionalities are running fine such as switchs, sliders, macros....
Does anyone succeded to do this?
So...answering myself. May be it will be helpful for any one...
The problem :
When the controller starts, it evaluate the "pseudo sensor" as "ON", probably by default because this group adress does not answer from the KNX bus, because it is only linked to a switch.
Thus, when you try to send a "on" from the switch, there is no result from the rule evaluation because it is already considered as "on" by the controller.
In addition, the rules starts when the controller restart after synchronisation.
The solution :
- The rule is evaluate as value==off. This prevents that the rules is passed during controller startup.
- The KNX switch must be set as "off when pressed, on when released".
Happy new year to everyone !
Posted by phil1348 at Dec 31, 2015 16:47