PaperUI controls things fine, sitemap doesn't

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.

Switch Presence_Mobile_Simon “Simons Samsung S8” { channel=“network:pingdevice:40862d60:online” }
Switch Power_TV_Snug “Snug TV UE48JU6400” { channel=“samsungtv:tv:5b4dea23_3500_4214_a616_2e477f0f5174:power” }
string HarmonyActivity “Current Activity [%s]” (gMain) { channel=“harmonyhub:hub:HarmonyHub:currentActivity” }
Switch Sonos “Power Sonos” { sonos="[ON:RINCON_5CAAFD7D26A801400_MR:play], [OFF:RINCON_5CAAFD7D26A801400_MR:stop]" }
Dimmer VolumeSonos “Sonos Volume” { sonos="[RINCON_5CAAFD7D26A801400_MR:volume]" }


sitemap default label=“My first sitemap”
{
Switch item=Presence_Mobile_Simon label="Simons Samsung S8"
Switch item=Power_TV_Snug label="Snug TV"
Switch item=HarmonyActivity mappings=[PowerOff=“PowerOff”, SnugShield=“Snug Shield TV”, SnugTV=“Snug Watch TV”]
Switch item=Sonos
Slider item=VolumeSonos
}

Given that I cannot get anything to work at all though sitemap I think I may have more of a basic config issue than in the variables.

Sorry, hit send before I had finished.

I have noticed a few interesting things:

  1. I cannot run openhab using start.bat even as administrator. I have to use start_debug.bat Is this normal?
  2. 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.

Try: changing character with " in your items file

Your log file should have some errors/warnings. did you check that?

no errors being logged?
OH2.2 on Win10 x64 running which Java? Did you set the JAVA_HOME environment variable?

Hi,

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?

Thanks again

Yup, string/String

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.

Ta

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.