On my RPi I have openhab 2.2.0
item-file:
DateTime GoogleLastseen "Google Last seen" {channel="network:pingdevice:2629568c:lastseen"}
In my sitemap I have:
Text item=GoogleLastseen label="Google Last seen"
The label is shown, but I see no content.
When I show the same item in HABPanelI do get the content.
Any tips?
hr_2
(hr2)
2
Text item=GoogleLastseen label=“Google Last seen[%1$td.%1$tm.%1$tY %1$tH:%1$tM]”
or
DateTime GoogleLastseen "Google Last seen[%1$td.%1$tm.%1$tY %1$tH:%1$tM]" channel="network:pingdevice:2629568c:lastseen"}
Text item=GoogleLastseen
1 Like
Thx! First solution didn’t work (VSC gives back: no viable alternative at input…)
Second line dit work, one small type for other people who read this.
hr_2
(hr2)
4
It’s because the quotations marks
Text item=GoogleLastseen label="Google Last seen[%1$td.%1$tm.%1$tY %1$tH:%1$tM]"