[Solved] Question about sitemap and log

Hello,

I am starting with openhab and is kinda lost about a few thing.

I am trying to find the log as told by the tutorial, http://docs.openhab.org/tutorials/beginner/logs.html
but my folder is empty, do I need to activate something?

I am still at the sitemap part of the tutorial, trying to get my light and a motion sensor show up.
Here is the content of the default.items

Switch Entrance.Motion “Entrance.Motion” { channel=“wemo:motion:Sensor-1_0-221213L010156A:motionDetection” }
Switch Entrance.Light “Entrance.Light” { channel=“hue:0100:001788262bc9:4:brightness” }

and here is what i have in the default.sitemap

sitemap default label=“My first sitemap”
{
Switch item=Entrance.Motion label="Entrance.Motion"
Switch item=Entrance.Light label=“Entrance.Light”
}

I don’t see what is wrong. Anyone can help?

When I make a change into one of those file, how I make openhab to load those file? restart the pi?

Thank

Item names can contain only alphanumeric characters and underscore (don’t use dots “.”). Change Entrance.Motion to Entrance_Motion

Log files (openhab.log & events.log) can be found in:
Linux apt install: /var/log/openhab2/
Linux Manual install: /opt/openhab2/userdata/logs
Windows (Manual) install: C:\openHAB2\userdata\logs

Changes in the *.items and/or *.sitemap files are automatically loaded by openHAB2. No need to restart your entire system (rPi).

Thank, it work!
Manage to make my first rule work too:)

1 Like

Welcome to the magical world of openHAB ! :stuck_out_tongue_winking_eye: