I’m newbie in openHAB (since now I’m using HASS,io) and I just followed the tutorial (“John’s mobile”) creating a thing with the network binding with my smartphone but I don’t undestand how openHAB take the some definitions:
OK, I undertsood why I cannot see the things made via paperUI, and how to create an ItemName but I still can’t understand how to find the ItemToThingChannelLink.
If I read this right, you want to use the Network binding. It’s well documented how to use it.
Did you check the docs? Don’t want to offend you tho, but people not reading the manual happens so often…
demo.things:
Thing network:pingdevice:devicename [ hostname="192.168.0.42" ]
demo.items:
Switch MyDevice { channel="network:pingdevice:devicename:online" }
Number MyDeviceResponseTime { channel="network:pingdevice:devicename:latency" }
demo.sitemap:
sitemap demo label="Main Menu"
{
Frame {
Text item=MyDevice label="Device [%s]"
Text item=MyDeviceResponseTime label="Device Response Time [%s]"
}
}
EDIT
I just checked my openHAB, I totally forgot I use the Network binding as well
But I configured it completely with the PaperUI.
I avoid doing Textual configuration with things.
Ehm… no… maybe (for sure) I can’t explain well… My question is more wide and generic, not stricly related to network binding.
My question is how to find a ItemToThingChannelLink for all the possibile “things”.
P.S.: I’m the kind of people that not read the manual!
Why your device it’s called “network:pingdevice:devicename” and my device is called “network:device:192_168_1_103” how I can find the list of all things listed on my openHAB?
In general: In paperui you goto Configuration - Things.
As soon as you click on an existing thing you will see the channels that can be manually added *.items files.
You will struggle with openHAB without the manuals. My advice, read the docs, and when you’re finished read then again twice. Every time you want to use a binding, read the docs for that binding. You’ll be able to do 99% of what you want by sticking with the docs and examples. When you’re stuck, search the forum before asking a question, it probably has been answered before.