Hello everybody. new to openhab2 never used openhab1. installation went fine, I can bind and control devices from paper ui and habpanel. but, from basic ui I cannot get the state of devices. for example.
this is my .items file:
DateTime Date “Date [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]” { channel=“ntp:ntp:local:dateTime” }
Switch music “music” { channel=“squeezebox:squeezeboxplayer:2730DFB1-576D-4010-A5E1-41DF36C3C40E:b827ebcf1ae9:power” }
Dimmer dmusic “music volume [%.1f %%]” { channel=“squeezebox:squeezeboxplayer:2730DFB1-576D-4010-A5E1-41DF36C3C40E:b827ebcf1ae9:volume” }
…and this is my .sitemap
sitemap Home label=“Home” {
Frame label=“Date” {
Text item=Date
}
Frame label=“living” icon=“groundfloor” {
Default item=dmusic
Default item=music icon=“switch”
}
}
where is the mistake? thanks in advanced.
Also I want to ask if the item name in paper UI has to be the same with the name in .item
no, it is not… I use notepad++ and just the paste changed them. The strange thing is that in classic ui if I use the _default sitemap, it works. and sometimes it works also for a moment.