I’ve managed to get my Vera linked up in OpenHAB, and most things seem to be working. I can trigger scenes, but rather than have a “switch” for each scene, I’d like to combine them into one.
Unfortunately, each “scene” is a different item from the importer:
(items file): String SceneBedroomDimmed "Bedroom Dimmed Scene" <sofa> (GScenes,GRoom2) {mios="unit:house,scene:17/status", autoupdate="false"} String SceneBedroomEnergize "Bedroom Energize Scene" <sofa> (GScenes,GRoom2) {mios="unit:house,scene:16/status", autoupdate="false"} String SceneBedroomOff "Bedroom Off Scene" <sofa> (GScenes,GRoom2) {mios="unit:house,scene:2/status", autoupdate="false"}
Create a Design Pattern: Proxy Item for the Switch, probably as a Number Item or a String Item, and a Rule that triggers on a command to the Proxy Item and sends the command to the appropriate Mios Item.