I’ve got a pingable device configured with the network binding. This works fine, and I’ve got it disabled on my sitemap. I don’t want a toggle switch on the sitemap, as you can’t turn it off remotely, only issue a WOL packet.
So I’ve worked out that if I add a mapping to the sitemap switch, I get a nice button instead of a toggle:
On the Item I’ve added Command Options Metadata:
Which to me, all adds up. There’s a button that will issue a command, and a command defined against the item.
I’ve also setup a rule to do the WOL action, although at the moment it’s just logging into the log that it has fired:
When I jab the button on the site map, nothing happens. If I reconfigure the item as a number, I lose ON/OFF functionality elsewhere (e.g. the icon won’t change to an off version).
Is it possible to do what I’m wanting?
- Platform information:
- Hardware: amd64/ample
- OS: 5.14.21-150400.24.60-default
- Java Runtime Environment: 11.0.18
- openHAB version: 3.4.3