Add/delete Group Members in Blockly?

Yes, for now. Eventually it will produce 2021 and use the openhab-js library.

This is a really advanced thing and there are only a few cases where this approach makes sense over alternative solutions. This smells a whole lot like an XY Problem.

That’s ECMAScript 5.1. without seeing the errors it’s impossible to say what’s wrong.

Using the JS Scripting add-on it would be as simple as:

items.getItem(triggeringItem.name).addGroups('gDoorOverdue');

openHAB is event driven. When the light changes, trigger a rule based on that event and recalculate the scene state.

Have you seen Scene Control Suite - Scene Activation?

Typically tags are used for this. But Groups could be used too. It’s still not clear though why Items would need to have their Group membership changed on the fly. The Scene is either ON or it’s not. When an Item changes state away from a scene, that doesn’t mean it’s no longer a part of that scene, it just means that scene is no longer active.

Well that’s a different problem. Why can’t you write them?

1 Like