My first attempt at OpenHab2 and I want something which should be simple, I think. But I can’t get it to work.
I have a bluetooth switch that I want to turn on/off. I have it setup in my sitemap. Two items in my items file and two Things. When I execute the Things, the light turns on/off, but when I click the on/off buttons in the sitemap, nothing happens. What am I doing wrong?
Here is the sitemap:
sitemap Thurmans label=“The Thurmans” {
Frame label=“Date” {
Text item=Date
}
Frame label=“Patio” {
Switch item=Patio_Light icon=“dimmablelight” mappings=[TurnOffPatioLight=“Off”, TurnOnPatioLight=“On”]
}
}
Here is my items file:
Switch TurnOnPatioLight {channel=“exec:command:582ae769:run”}
Switch TurnOffPatioLight {channel=“exec:command:d8df8398:run”}
No, that wouldn’t work from the commandline, but it does work in PaperUI and on iOS. Doesn’t the command ‘exec:command:582ae769:run’ just map to the corresponding binding? I have a binding (two actually, on and off), which actually execute either the on or off script. If it makes more sense to just put the scripts in the Things, I’m fine with that. I’ll try it this evening, but I’d still like to figure out why I can’t have the buttons in the sitemap work. Might this be the issue?
Thanks
Ok, I made the change and now my Things use the paths to the scripts. It guess it was actually the items that were actually calling the scripts. But my original question remains: How do I get the buttons in my sitemap to work?