I’ve been running OpenHAB 1 for about 2 years now and i decided to upgrade to OH2 last night. Despite spending nearly 12 hours on 2 installs of OH2, it just still isn’t working.
I’m running on Ubuntu 16, installed through the apt-get repo method using your install guide, once it was installed, i headed over the :8080 and selected Expert Method (due to me knowing the text based method from OH1), once that had setup and given me a choice of UI, i used the paperUI to install the mqtt binding and then closed the browser and continued with command line installation/config. So I headed into the /etc/openhab2/services and editted the mqtt.cfg file for my broker config (same machine) so i put my broker link in, checked the logs and that was fine. All connected up to my MQTT server. I then decided to add an item to test, so i navigated to /etc/openhab2/items. I did a ‘show all contents’ with “ls” and there was nothing apart from a readme.txt file and therefor i created my own demo.items and added:
Group All
Group gSwitch (All) // Contains all switches
Group gSF (All) // Second Floor
Group SF_CinemaRoom "Cinema Room" <video> (gSF)
Switch CinemaRoom_Light01 "Ceiling Lights" <light> (SF_CinemaRoom) {mqtt=">[mymosquitto:Gateway1-in/4/1/1/0/2:command:ON:1], >[mymosquitto:Gateway1-in/4/1/1/0/2:command:OFF:0]"}
I then went to /etc/openhab2/sitemaps and sure enough, the same situation, no demo files other than a readme.txt. So again, i added my own ‘demo.sitemap’ and then added:
sitemap default label="Main Menu"
{
Frame label="Cinema Room" {
Switch item=CinemaRoom_Light01
}
}
I then went and restarted openhab with systemctl command, while monitoring the openhab.log and events.log i watched the server restart and went to check out my results on the classic UI. Nothing.
Do i have no demo files because i chose to go the expert install route? or is it something to do with me choosing to use the BETA release install?
Would you recommend i do a manual install rather than a apt-get repo style one?
I must say, first impressions of OpenHAB2 is not great for me. I loved using OH1!
If you think this post would be more suited in another location, please specify where, and i will move it