google-code-export / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

homematic hm-rc no state fallback #518

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
a rule was triggered with a change to ON is only once triggered.
the state is after the first change fix ON.
My workaround today is to set the state of the rc control with an rule to off.

What is the expected output? What do you see instead?
a rc control schould have a value of OFF after the button released.

What version of the product are you using? On what operating system?
1.4.0, #526, java 1.7, pc Linux opensuse 11.3

Please provide any additional information below.
it shows that other wall switches can be have the same problem, in my debug log 
I see never a release message, only a press short or press long with the 
corresponding install test messages.

Original issue reported on code.google.com by falk.sa...@gmail.com on 16 Nov 2013 at 5:32

GoogleCodeExporter commented 9 years ago
following rule works today without state reset, the secret is 'received update':

rule "Garagentor auf / zu"
when
    Item Fb_Falk_B2 received update ON 
then
    if(timer == null) {
        sendCommand( Tor_Aussen_Garage, ON)
        timer = createTimer(now.plusSeconds(2)) [|
            sendCommand(Tor_Aussen_Garage, OFF)
            timer.cancel
            timer = null
        ]
    }
end

a rule with changed to ON needs a state reset after rule start like:

rule "Garagentor auf / zu"
when
    Item Fb_Falk_B2 received update ON 
then
    if(timer == null) {
        sendCommand( Tor_Aussen_Garage, ON)
        timer = createTimer(now.plusSeconds(2)) [|
            sendCommand(Tor_Aussen_Garage, OFF)
            postUpdate(Fb_Falk_B2, OFF)
            postUpdate(Fb_Andrea_B2, OFF)
            timer.cancel
                        timer = null
        ]
    }
end

Original comment by falk.sa...@gmail.com on 17 Nov 2013 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 17 Nov 2013 at 6:43

GoogleCodeExporter commented 9 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:09

GoogleCodeExporter commented 9 years ago
Set status to "invalid" to show that these issues are not tracked here anymore 
- please refer to GitHub instead!

Original comment by kai.openhab on 2 Dec 2013 at 7:12