openhab / org.openhab.ui.habmin

HABmin - a graphical user interface for openHAB 2
230 stars 91 forks source link

Rule created with HABmin uses postUpdate instead of sendCommand #161

Closed denniseffing closed 8 years ago

denniseffing commented 8 years ago

So I stumbled upon inconsistency regarding the use of postUpdate and sendCommand. My friend and I were testing HABmin with 2 seperate openHAB 2 instances (which use the same configuration and database) and got different results when creating the following rule: rule

On his system the output looked like this: rule2

On my system the output was slightly different, HABmin used sendCommand instead of postUpdate. Our items Rocker and SmartPlugSwitch are both of type Switch and connected to physical devices via aleoncean EnOcean Binding, so "sendCommand" is what we really want.

For further testing, I decided to set up another openHAB 2 instance on my machine with the very same configuration and installed HABmin again, but to my surprise HABmin used "postUpdate" this time around. I tried to figure out the reason for this but came up with nothing.

Can anyone tell me what is going wrong here? Example 2 on the GitHub page uses "sendCommand" too, while Example 1 doesn't.

We are using the latest stable release of HABmin 2 (v0.1.4, 2016-04-10T22:45:48) and openHAB v2.0.0b2

Also: There is another problem with the rule above, see #162 for more information.

cdjackson commented 8 years ago

Please try the latest snapshot to see if this works better...

cdjackson commented 8 years ago

I believe this is fixed in the latest version. If not, please reopen.