[SOLVED] Dimmer Item causes error in sitemap definition

  • Platform information:
    • Hardware: _RPI 3B+
    • OS: _Rasbian / Buster
    • Java Runtime Environment: _which is installed with buster
    • openHAB version: 2.5.0-1
  • Issue of the topic:
    When I enter the following item expression in to the sitemap file:

Dimmer item=LB1_Brightness label=“Lamp bed rechts” {channel=hue:0220:00212E04F655:1:brightness}

The following error occures when processing the sitemap:
2020-01-05 13:59:08.317 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘default.sitemap’ has errors, therefore ignoring it: [25,13]: required (…)+ loop did not match anything at input ‘Dimmer’
[27,3]: missing EOF at ‘Group’

When i leave this out there no problems with the sitemap file and it works all fine.
I got LB1_Brightness from the item bame in the paper-UI , i got hue:0220:00212E04F655:1:brightness from the channel definition in the paper-ui

I am a beginner and possibly I do something wrong , could naybody give me advice ?

Many thanks,
Frank

Welcome to openHAB.

This code goes into an items file, not a sitemap file:

For sitemap syntax take a look here:

https://www.openhab.org/docs/configuration/sitemaps.html

That did the job , thank you very much …
Best regards,
Frank