Hello,
I had problems to react on the buttons of a DECT 440. So I created an other solution.
First I created a some interfaces to react to the buttons:
Switch ItemXTopLeftPressed "Top Left"
Switch ItemXTopRightPressed "Top Right"
Switch ItemXBottomLeftPressed "Bottom Left"
Switch ItemXBottomRightPressed "Bottom Right"
Afterward i created some scripts to reset the button after I received a change:
rule "RuleXInit"
when
System reached start level 100
then
ItemXTopLeftPressed.sendCommand(OFF)
ItemXBottomLeftPressed.sendCommand(OFF)
ItemXTopRightPressed.sendCommand(OFF)
ItemXBottomRightPressed.sendCommand(OFF)
end
rule "RuleXTopLeft"
when
Item ItemXTopLeftPressed changed from OFF to ON
then
ItemXTopLeftPressed.sendCommand(OFF)
//TODO: Reaction of the button
end
Then I created a script to call a website when a botton is clicked. The name of the Website is:
http://X:8080/rest/items/ItemXBottomLeftPressed
These are the settings:
I hope this will help others to integrate theirs.