Hi, new to openhab and have set up a few things using Sonos and Harmony bindings. These work fine through PaperUI. I have progressed through the tutorials and set up a sitemap. Here is where I’ve got stuck. Things that can be controlled fine on PaperUI are not working on basicUI / sitemap.
I cannot run openhab using start.bat even as administrator. I have to use start_debug.bat Is this normal?
Even though I am using mapping to represent one of my items the sitemap displays a toggle switch.
Thanks in advance for your help. As I said I’m assuming this is not related to the config files creation as I have tinkered with the variables and would have expected to have got at least one thing responding to control by now. That said I’m sure there are errors in them, just think there may be something generic at play to deal with first.
Any suggestions welcome, again thanks for your support. I’ve come to openhab after getting quotes from Control4 dealers which are the same as my first house. Really hopeful I can get this working.
On launching OH2 I do see errors in the command window:
Launching the openHAB runtime…
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
On interrogating the logs there were quite a few interesting entries during startup which I’ve resolved and it now seems to start up cleanly so far as the logs go but I still see ERROR: The system was unable to find the specified registry key or value. ERROR: The system was unable to find the specified registry key or value.
When running the startup.bat
2018-01-29 20:21:05.559 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-01-29 20:21:05.961 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.0.18
2018-01-29 20:21:06.188 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.0.18
2018-01-29 20:21:06.245 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.207.1:8080
2018-01-29 20:21:06.245 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.207.1:8443
2018-01-29 20:21:08.166 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items’
2018-01-29 20:21:08.969 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-01-29 20:21:09.199 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap’
2018-01-29 20:21:09.350 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘harmonyhub:hub:HarmonyHub’ to inbox.
2018-01-29 20:21:09.923 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-01-29 20:21:09.999 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-01-29 20:21:10.034 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
I’m running Zulu:
openjdk version "1.8.0_152"
OpenJDK Runtime Environment (Zulu 8.25.0.1-win64) (build 1.8.0_152-b16)
OpenJDK 64-Bit Server VM (Zulu 8.25.0.1-win64) (build 25.152-b16, mixed mode)
The environment variable wasn’t created, I have done that now and I can use startup.bat, the only error being that mentioned above.
When I go to the sitemap and try control the harmony I see a boat load of logs. These look interesting:
2018-01-29 20:22:08.021 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of ‘HarmonyActivity’
Cannot retrieve item ‘HarmonyActivity’ for widget org.eclipse.smarthome.model.sitemap.Switch
2018-01-29 20:22:08.028 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2018-01-29 20:22:08.028 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘HarmonyActivity’ for widget org.eclipse.smarthome.model.sitemap.Switch
2018-01-29 20:22:08.029 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘HarmonyActivity’ for widget org.eclipse.smarthome.model.sitemap.Switch
2018-01-29 20:22:08.030 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘HarmonyActivity’ for widget org.eclipse.smarthome.model.sitemap.Switch
2018-01-29 20:22:39.354 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/HarmonyActivity’ for the unknown item ‘HarmonyActivity’.
2018-01-29 20:23:03.810 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/HarmonyActivity’ for the unknown item ‘HarmonyActivity’.
I’m guessing I haven’t created the HarmonyActivity correctly in the items file?
HAHA, excellent thank you! I now correctly see the mappings instead of the on/off switch. Unfortunately it still doesn’t actually control anything. I think I have a Java issue, will reboot/reinstall/reset environment variables and report back.
OK thank you for all your help, both. A combination of reinstalling Java (and resetting env.variables), using the logs to debug issues and your advice seems to have got me up and running. Things still aren’t working perfectly but I’ve controlled some Harmony activities and I’m on my way now! Take care.