-
Platform information: Docker
- Hardware: Synology NAS
- OS: DSM 6.2.3
- Java Runtime Environment: 11
- openHAB version: 3.0.0 Milestone Build
-
Issue of the topic: Inside the GUI in Settings -> Pages -> Sitemap I want to add a Chart with visibility depending on the selected period. Since visibility is not added in Design mode I am trying to add it in Code mode and I immediately get the following error:
Error: Syntax error at line 6 col 53:
Chart item=EMeter_Power period="3h" visibility
^
Unexpected identifier token: "visibility". Instead, I was expecting to see one of the following:
Text icon="line" label="Power [%s W]" item=EMeter_Power {
Selection item=EMeter_Power_Graph mappings=[0="3 hours",1="6 hours",2="12 hours",3="Day",4="3 days",5="Week",6="Month"]
Chart item=EMeter_Power period="3h" visibility=[EMeter_Power_Graph==0, EMeter_Power_Graph=="NULL"]
}
And when I switch to Design mode and then back to Code mode the visibility attribute is gone. Probably because it is not recognizing it.
So is visibility attribute not yet implemented? Or is there something wrong with my declaration in the sitemap?