I`m planning to use Network Binding to detect status of some equipment at home (TV, xbox and radio). Also possibly will be using this add to detect mobile phone presence.
I have installed this binding (version 2.3.0) and was expecting to find configuration file under services in usual place but this time the file wasn`t created automatically.
Just before I installed Network Binding, I installed Network Health Binding (v 1.12.0), started configuring networkhealth.cfg but found on the documentation that for openhab2 I should be using Network Binding instead.
So I uninstalled Network Health Binding, restarted my openhab2 but NetworkHealth.cfg was still located inside service folder. Then I removed this config file manually and restarted openhab service again.
After installing Network Binding , realised that network.cfg was not created automatically and wonder if this has anything to with me deleting previous binding file manually from the system ?
Should I be creating network.cfg manually in this situation ?
Also what would be the correct syntax in sitemap if my item looks like follow to detect device via ip.
I got it to work finally.
I can read device status ON/OFF, response time and last seen time.
I used the following configs
sitemap
}
Frame label="Status" {
Text item=MyDevice label="Device [%s]" valuecolor=[ON="green" ,OFF="red"]
Text item=MyDeviceResponseTime label="Device Response Time [%s]"
Text item=MyDeviceLastSeenTime label="Last Seen Time [%1$ta %1$tR]"
}
items
/* Network Device Status */
Switch MyDevice { channel="network:pingdevice:devicename:online" }
Number MyDeviceResponseTime { channel="network:pingdevice:devicename:latency" }
DateTime MyDeviceLastSeenTime { channel="network:pingdevice:devicename:lastseen" }
I would like to create group status and display under my system frame.
}
Frame label="System" {
Group item=Server icon="settings"
Group item=Status icon="settings"
}
So in items I added (Status) group before the address but for some reason is not displaying my items under Frame “System” and group Status.
What am I doing wrong ? How to amend it in order display all items under System/Status group.
When I changing my first item String to Switch I get to display toggle switch which actually showing me correct status of device : if device is on Switch is On, if the device is Off switch will change state to off position.
However I can toggle this switch at any time (for example force it to off position when the device is on). What I need is just to display text with two states: ON (in green or OFF in red).
Ironically all this seems to work without me creating group System, but really my intention is to hide it under System frame so Im chasing my tail at the moment