boris03
(Boris)
February 24, 2018, 4:54pm
1
My first tries with a sitemap and not successful, please help
Can I use this keys like “energy” or “motion”, or do I always take “switch”?
This is what I get displayed in openhab.log
2018-02-24 17:48:58.470 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘ZUHAUSE.sitemap’ has errors, therefore ignoring it: [7,3]: mismatched input ‘energy’ expecting ‘}’
[13,1]: extraneous input ‘}’ expecting EOF
This is my sitemap, what is wrong here?
sitemap G11 label=“ZUHAUSE”
{
Frame label=“Items”
{
Switch item=Schalter1 label="Kandelaber"
Switch item=zwave_device_296beed3_node4_switch_binary label="Cyrus 1"
energy item=Cyrus_1_Momentan_Verbrauch_Watt label="Cyrus 1 WATT"
motion item=NEO_PIR_1_Bewegung label="NEO 1 Move"
light item=NEO_PIR_1_LUX label="NEO 1 LUX"
batterylevel item=NEO_PIR_1_Batterie label="NEO 1 BAT"
temperature item=NEO_PIR_1_Temperatur label=“NEO 1 TEMP”
}
}
hr3
(Harry)
February 24, 2018, 5:08pm
2
https://docs.openhab.org/configuration/sitemaps.html
erergy, motion, light, batterylevel and temperature are not valid types for a sitemap.
boris03
(Boris)
February 24, 2018, 5:47pm
3
Thanks a lot - Cool that helps now it looks like this,
I only don´t know why this Neo CoolCam PIR device is offering temperature and battery level
(successfully installed as items) but no values displayed.
hr3
(Harry)
February 24, 2018, 5:56pm
4
Wich model du you use and has it a a temperature and a battery-sensor? Is your item-definition correct?
Josar
(Josar)
February 24, 2018, 5:56pm
5
Please post your items and your full setup.
Try to use code fences
```
Your code goes here
```
We all have to type this content over and over and over. Here is a posting we can all point to when the topic comes up.
Why use code fences?
Because rules, sitemap, logs, and configs are all but unreadable when code fences are not used.
When to use code fences?
Whenever one is posting any sort of code, config, log, and any text where line wrapping, indentation, and using an equal spaced font makes the text more legible.
How to use code fences?
If you are using a bit of code inline in a senten…
boris03
(Boris)
February 24, 2018, 6:04pm
6
This is no the sitemap file
sitemap G11 label=“ZUHAUSE”
{
Frame label=“Items”
{
Switch item=Schalter1 label=“Kandelaber”
Switch item=zwave_device_296beed3_node4_switch_binary label=“Cyrus 1”
Default item=Cyrus_1_Momentan_Verbrauch_Watt label=“Cyrus 1 WATT” icon=“energy”
Default item=NEO_PIR_1_Bewegung label=“NEO 1 Move”
Default item=NEO_PIR_1_LUX label=“NEO 1 LUX” icon=“light”
Default item=NEO_PIR_1_Batterie label=“NEO 1 BAT” icon=“batterylevel”
Text item=NEO_PIR_1_Temperatur label=“NEO 1 TEMP [%.1f °C]” icon=“temperature”
}
}
and here are the items out of paper ui
and this is the thing config all OK I would say
Josar
(Josar)
February 24, 2018, 8:37pm
7
@boris03
Josar:
Your code goes here
Please use VSCode as editor with the openhab extension .
And use the log when you save a file as this gives you feedback when something goes awry.
Also try to have a clsoer look to the posted links.
I just copy pasted your sitemap and got some errors shown.
Result: false quotes for labels, sitemap, Frame, Watt, Lux, Bat, Temp
sitemap G11 label="ZUHAUSE"
{
Frame label="Items"
{
Switch item=Schalter1 label="Kandelaber"
Switch item=zwave_device_296beed3_node4_switch_binary label="Cyrus 1"
Default item=Cyrus_1_Momentan_Verbrauch_Watt label="Cyrus 1 WATT " icon="energy"
Default item=NEO_PIR_1_Bewegung label="NEO 1 Move"
Default item=NEO_PIR_1_LUX label="NEO 1 LUX" icon="light"
Default item=NEO_PIR_1_Batterie label="NEO 1 BAT" icon="batterylevel"
Text item=NEO_PIR_1_Temperatur label="NEO 1 TEMP [%.1f °C]" icon="temperature"
}
}
Might be a copy paste error. On your first post its only the "NEO 1 TEMP"
which has wrong quotes.
boris03
(Boris)
February 25, 2018, 9:22am
8
But what should be wrong with the quotes?
In general the sitemap is working, I just checked openhab.log and it was stating that my filename has to be G11.sitemap and not ZUHAUSE.sitemap as I used before, but was working even with the wrong filename.
So I guess this is just some beautiful “chinese” PIR device what´s not working as it should.
Josar
(Josar)
February 25, 2018, 9:25am
9
“NEO 1 TEMP [%.1f °C]” icon=“temperature”
The quotes are “ ”
and not ""
that’s all I see.