Hello,
I use OH 3.4.0 and try to graph the sum-value of a itemgroup in a chart. In the documentation there is the option “forceAsItem” availible:
Element Type ‘Chart’
Chart [item=] [icon=“”] [label=“”] [refresh=xxxx]
[period=xxxx] [service=“”] [begin=yyyyMMddHHmm] [end=yyyyMMddHHmm] [legend=true/false]
[forceAsItem=true/false]
forceAsItem is used to show the value of a Group instead of showing a graph for each member (which is the default).
My configuration:
Items:
Group:Number:SUM PwrA
Number S01_power1 “Shelly01 power1 [%.0f W]” (PwrA) { channel=“… }
…
Number S11_power1 “Shelly11 power1 [%.0f W]” (PwrA) { channel=”… }
Number S12_power1 “Shelly12 power1 [%.0f W]” (PwrA) { channel="… }
rrd4j.persist:
PwrA* : strategy = restoreOnStartup, every2Minute
Sitemap:
Chart item=PwrA period=D refresh=30000 forceAsItem=true
The error in the log:
==> /var/log/openhab/openhab.log <==
2023-01-05 11:31:07.734 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘mhf.sitemap’
2023-01-05 11:31:07.889 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘mhf.sitemap’ has errors, therefore ignoring it: [109,62]: no viable alternative at input ‘forceAsItem’
What have I done wrong?