I started with OpenHAB a few days ago. I bought a few different z-wave things but to get started all i’m trying to do is control two dimmable light switches (Linear WD500Z-1). I’m using a Gen5 Z-Stick if that matters. I had some issues with downloading corrupt .jar files that took me a while to figure out but I finally got everything set up. I can see my zwave devices in HABmin and they show up in the log. I seem to be having problems with the website as well as sending commands and receiving updates.
Edit: I should add that OpenHAB correctly determines the state of my switches when it starts up. I just can’t control them and the status doesn’t change when I hit the switch on the wall.
the state placeholder should be written in in lower case, please try [%s] in all labels.
fyi: the labels can be set in .items file, you don’t need to define them in .sitemap, though you can, if you need the very same item with different labels, e.g. one frame per room -> label shows “Light Ceiling” and another frame for all lights -> label should show “Light Ceiling Kitchen” and so on…
I edited my items file to include the [%s] and took the labels out of the sitemap. It’s still broken though :(. Maybe it’s not the items or sitemap after all?
Haha, I’ve been doing a bit of both to be honest. It was HABmin that added the “switchSupport” bit and i’m not exactly sure what it does.
Anyway, I found something interesting in the log when I try to click the On/Off button:
It seems to be getting some kind of null reference exception?
Should I just delete my sitemap and start over? Maybe try the demo again (which was working at some point)?
the switchSupport is explaint in item switchSupport. may be you can leave it
Yes make a new sitemap with habmin and sometimes it dosn’t work to assign a item to a sitemap-group or -frame, try without them .
It works! Well, the UI anyway. It appears to be sending commands (according to the log), too. It’s hard to know if the lights are on or off in reality because i’m remoting into my home computer from work and SSH’ing into the PI lol. At least it updates the light status when I restart OpenHAB. I will try that after lunch.
Sometimes … wait a minute. OH updates the states after startup - normaly no polling is needed.
OR! you define a persistenze for the items (e.g. everyChange/everyUpdate AND restoreOnStartup) then OH will remember and reload the state.