Hi,
I try to replace switch on by the usual French word “allumé”. I went to Pages Sitemaps and I add two lines on mappings menu. I set ON=Allumé and OFF=Eteint.
I got a cursor with the word I wanted to see, but right on the left side of the cursor, I still have On and Off depending of the status of the switch. Can I have some help to cancel On and Off.
Would it be possible that it changes color when it is on.
InOH2 I used the following line in x.sitemap file
mappings=[ON=“allumé”, OFF=“éteint”] labelcolor=[ON=“yellow”, OFF=""] visibility=[Chambre==OFF]
What replace Labelcolor and Visibility.
I tried them but I got an error.
Thanks a lot in advance for your help.
Claude
PS I have installed Openhabian on a rasp 3 B+
rlkoshak
(Rich Koshak)
March 10, 2022, 6:23pm
2
Remove the Add a [ ]
to the label which will suppress showing the state of the Item.
rossko57
(Rossko57)
March 10, 2022, 10:14pm
3
If you edit your sitemap in the old-fashioned way, these functions work.
It is the GUI sitemap editor that currently has the limitation.
opened 07:41PM - 05 Nov 20 UTC
closed 08:04PM - 05 Nov 20 UTC
I love the new UI. Therefore, as a first step, I'd like to migrate my sitemap fi… le into the UI for better remote maintenance. It seems the sitemap editor does not recognize the visibility attribute.
I'm using OH 3 Build 2005.
Code to reproduce
```
sitemap Home label="Home" {
Chart item=GaragensteckdosePower_Power service="influxdb" period=D refresh=300 visibility=[Chart_Intervall==0, Chart_Intervall=="Uninitialized"]
}
```
error:
```
Error: Syntax error at line 2 col 84:
Chart item=GaragensteckdosePower_Power service="influxdb" period=D refresh=300 visibility
^
Unexpected identifier token: "visibility". Instead, I was expecting to see one of the following:
A rbrace token based on:
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ Widgets _ ● %rbrace
Main → _ ● Sitemap _
A NL token based on:
_ → _ ● %NL
WidgetAttrs → WidgetAttrs ● _ WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A WS token based on:
_ → _ ● %WS
WidgetAttrs → WidgetAttrs ● _ WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A nlwidget token based on:
Widget → ● %nlwidget _ Widget$ebnf$1
Widgets → Widgets _ ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A lwidget token based on:
Widget → ● %lwidget _ Widget$ebnf$2
Widgets → Widgets _ ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A lwidget token based on:
Widget → ● %lwidget _ Widget$ebnf$3 __ %lbrace __ Widgets __ %rbrace
Widgets → Widgets _ ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A item token based on:
WidgetAttrName → ● %item
WidgetAttr → ● WidgetAttrName WidgetAttrValue
WidgetAttrs → WidgetAttrs _ ● WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A label token based on:
WidgetAttrName → ● %label
WidgetAttr → ● WidgetAttrName WidgetAttrValue
WidgetAttrs → WidgetAttrs _ ● WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A icon token based on:
WidgetAttrName → ● %icon
WidgetAttr → ● WidgetAttrName WidgetAttrValue
WidgetAttrs → WidgetAttrs _ ● WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
A widgetattr token based on:
WidgetAttrName → ● %widgetattr
WidgetAttr → ● WidgetAttrName WidgetAttrValue
WidgetAttrs → WidgetAttrs _ ● WidgetAttr
Widget$ebnf$1 → Widget$ebnf$1 ● WidgetAttrs
Widget → %nlwidget _ ● Widget$ebnf$1
Widgets → ● Widget
Sitemap → %sitemap _ SitemapName __ SitemapLabel __ %lbrace _ ● Widgets _ %rbrace
Main → _ ● Sitemap _
```
system
(system)
Closed
April 21, 2022, 2:15pm
4
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.