Hello,
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:
rule “dash_button_1_rule”
when
Channel “amazondashbutton:dashbutton:38-f7-3d-xx-yy-zz:press” triggered
then
switch_item_01.sendCommand(ON)
end
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?
Thank you
H102
(CM6.5 H102)
October 27, 2018, 1:24pm
2
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?
rule "dash_button_1_rule"
when
Channel "amazondashbutton:dashbutton:38-f7-3d-xx-yy-zz:press" triggered
then
switch_item_01.sendCommand(ON)
end
Should be correct now
1 Like
H102
(CM6.5 H102)
October 27, 2018, 3:17pm
5
@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.
Installed OH
If you are running an installed OH (openHABian, installed using apt or yum):
openhab-cli stop
openhab-cl…
After update seems something goes not ok.
clear chache solved
Thank you