seaside1 / jrule

openHAB Java Rules Engine
Eclipse Public License 2.0
29 stars 15 forks source link

Send updates/commands to group items itself, not just members #150

Closed seime closed 1 year ago

seime commented 1 year ago

Currently when sending commands/updates to group items, the state/command is not updated for the group itself, only member items. This makes it impossible to listen for group commands originating from Jrule, but works when sending from ie openhab-console or android app.

querdenker2k commented 1 year ago

Is it realy neccessary to update the group members separately. I just did it because it was done before as well (and never touch a running system). @seime Have you tested to just update/command the group item itself?

seime commented 1 year ago

Yes, it is necessary to update members separately. The framework does not do this for us. I thought so too a while back :)

seime commented 1 year ago

Now I see that commands are sent twice to each member, which is wrong. sendCommand to a Group item (without manually sending to member items) now do seem to work. I think it didn't at some point?

Can you remember @seaside1 ?

I'm running 3.4.3 now