[SOLVED] Issue with presence detection in Basic Ui


(amarasinghe) #1

first of all, i’m a beginner to openHab. i started with the examle given in the documentation section (presence detection of John’s mobile ). in the Papaer Ui, the presence dection works fine. but in the Basic Ui, the presence detection does not respond.
items file - Switch Presence_Mobile_John “John’s Mobile” { channel=“network:device:192_168_1_7:online” }

Sitemap file-sitemap default label=“My first sitemap”
{ Switch item=Presence_Mobile_John label=“John’s Mobile”}

have i done any thing wrong? any help is very much appreciated


(Angelos) #2

what is the name of the sitemap file? (it should be: default.sitemap and be placed in the OPENHAB_CONF/sitemaps/ folder)

make sure that you use the correct quote marks: "" instead of “”

and… How to use code fences


(Vincent Regaud) #3
Sitemap file-sitemap default label=“My first sitemap”
{ Switch item=Presence_Mobile_John label=“John’s Mobile”}

Your sitemap is called file-sitemap default. That won’t work

Sitemap default label=“My first sitemap”
{ Switch item=Presence_Mobile_John label=“John’s Mobile”}

What is the name of the file? They should match.

sitemap file name: default.sitemap

Called them both the same
I recommend default for the first one as @Dim said above


(amarasinghe) #4

thanks for the reply, the problem solved !. network device was shown as network:pingdevice:192_168_1_7:online on openHab instead i have written
network:192_168_1_7:online