I have a Raspberry PI 3 with OH 2.3 full running.
My .rules file has a dozen of rules, all runnig w/out problems.
I bought and configured an Amazon Dash Button. I can see the button thing “Online” and when is pressed I can see in the log this entry:
2018-10-26 21:31:36.912 [vent.ChannelTriggeredEvent] - amazondashbutton:dashbutton:38-f7-3d-xx-yy-zz:press triggered
I added this simple rule:
Channel “amazondashbutton:dashbutton:38-f7-3d-xx-yy-zz:press” triggered
but when the dash button is triggered the switch_item_01 doesn’t change his state to ON.
I tried to change the command with:
logInfo(“amazondashbutton”, “Dash Button has been pressed”)
but nothing change, I can’t see the log entry
What I’m wrong, why my rule doesn’t work?
If the button is a thing try using that in your rule e.g.
Which editor do you use?
Your " " look incorrect?!?
What does the log say if you save your rule?
Channel "amazondashbutton:dashbutton:38-f7-3d-xx-yy-zz:press" triggered
Should be correct now
@Boogieman good catch, I just copied the rule over to VSCode and the " " were indeed wrong.
founded the solution here:
Often when one encounters a problem with OH, particularly after an update, OH will refuse to run or certain parts of OH stop working. Some reported errors include:
500 or 404 errors when accessing the UIs
lots of exceptions from Jetty or other core components in openhab.log
OH refuses to start at all
The first step in debugging the problem is to clear the tmp and cache.
If you are running an installed OH (openHABian, installed using apt or yum):
After update seems something goes not ok.
clear chache solved