Is it possible to combine a switch with another text item.
I have a zwave aeon smart energy switch. I want to display the Watts next to the switch icon.
I tried two zwave = and also combined them with additional parameter, nothing works. Can you have multiple bindings in an item or multiple values returned to display?
Sadly the answer is no. You can combine Text items using a rule but you can’t combine Text item and a Switch. You will have to put the Text item on a separate line.
You can have multiple bindings defined for a single Item, but they all have to work for the same type. For example, you can have two bindings configured for a Switch, but both configurations have to provide an ON or OFF as their values. You cannot have one that works like a Switch and another that works like a Text.
The rule looks right. “-” means the item is uninitialized. The energy_switch will not be populated until either watt_living or kwh_living are updated. Did you wait long enough for one of those Items to be updated?
Put a log statement in the rule and see if it is triggering or not. If not you know the problem is with the Trigger. If it rule triggers but the item doesn’t update you know it is with the body of the rule.
Combining Switches may be a little bit of a misnomer. What you are really doing is binding one switch to two different bindings. Not all bindings support this and the behavior is not always as expected. To do it you just list both bindings inside the “{ }”. For example:
Theoretically when one of the bindings is updated it causes a command to be sent to the other items to keep them in sync. In practice I’ve only ever seen people have trouble with them. I recommend using a Proxy switch that gets updated by a similar rule to above.
What if I want both switches to be independent? What I have is a lamp with two bulbs, upper and lower. Sometimes you want both but others not. Its via a Hue bridge to Cree bulbs.
When you click on the switch for Lamp both bulbs will turn on or off. If you click on the label for Lamp it will open a new frame listing both bulbs which you can control individually. The status of the Group will be ON is one or more of the Switches in the group are ON.
You can copy the configs to the other box or share the config folder on your openHAB server on the network so your Windows machine can see it. A very common approach is to run openHAB on a Raspberry Pi, share the configurations folder using Samba, and and edit the files on Windows.
I don’t think the openhab user can log in. I think winscp will use the
default file mask of what ever use you do log in as, but you might be able
to change the permissions through winscp.