I am running openhab 2.2.0-SNAPSHOT Build 1094, manual install
The network binding is giving me a DEBUG info:
2018-01-25 14:43:23.450 [DEBUG] [nding.network.handler.NetworkHandler] - Command OFF is not supported for channel: online
2018-01-25 14:59:08.186 [DEBUG] [nding.network.handler.NetworkHandler] - Command ON is not supported for channel: online
The channel should give you the status for a device on the network, either connected or not. You cannot send a command to it, because you cannot control via openHAB whether that device is on the network or not. If you explain what you are trying to achieve, we may help you accomplish that if possible.
Changing the item via a switch in the sitemap causes a command to be sent to the item (just standard openhab behavior). I was changing the state manually for rule testing purposes and noticed the debug message. Perhaps I should have a helper item which is updated via a rule from the pingdevice:online item instead.
The point is, though you can use a switch widget in your sitemap, this is wrong, as the channel, the item is bound to, is read only. So it’s normal to get a debug message.
instead of
Except the correct use of the sitemap element (text)…
You could also try to use a Contact type of Item for the online channel. I am not sure if the network binding allows this.
This is what we do over at the Unifi world for the online channel
Though it could be very handy if one uses " (very) long" ping intervals on things and an explicit write then immediately retries the ping via the channel.
If this ping fails, one has an immediate result back without the need to wait for a scanloop.