I configured my Amazon Dash Button and it seems to be working. In Log Viewer I get this message:
Blockquote:
2019-02-05 12:01:22.518 [vent.ChannelTriggeredEvent] - amazondashbutton:dashbutton:XX-XX-XX-XX-XX-XX:press triggered
But the rule doesn´t work:
Blockquote:
rule “My Dash Button pressed”
when
Channel “amazondashbutton:dashbutton:XX-XX-XX-XX-XX-XX:press” triggered
then
sendTelegram(“bot1”, “Es hat an der Haustüre geläutet”)
end
On other Rules Telegram does work.
sihui
(SiHui)
February 5, 2019, 4:30pm
2
Try using the correct quotation marks:
"
instead of “
I don´t know why, but in Visual Studio the quotation marks are correct. I have double checked and my other rules work.
sihui
(SiHui)
February 5, 2019, 5:50pm
4
Put a logInfo line instead of the sendTelegram to see it the problem is coming from there.
I inserted:
Blockquote:logInfo(“amazondashbutton”, “My Dash Button has been pressed”)
instead of sendTelegram but no change.
The log shows only
Blockquote:2019-02-05 19:18:39.672 [vent.ChannelTriggeredEvent] - amazondashbutton:dashbutton:88-71-e5-2b-b2-11:press triggered
sihui
(SiHui)
February 5, 2019, 6:31pm
6
Last idea: MAC address needs to be all small letters.
sihui
(SiHui)
February 5, 2019, 6:33pm
7
Johannes_Bauerstatte:
“My Dash Button pressed”
… and make sure you don’t have more than one rule with that name.
sihui
(SiHui)
February 5, 2019, 6:38pm
8
BTW, using “Preformatted Text” instead of “Blockquote” should solve that problem.
on my side works:
Channel "amazondashbutton:dashbutton:fc-a6-67-7e-ca-xx:press" triggered
–> small letters in the MAC Adress
Does the rule file has the right extension? --> .rules
If the rule file is updated there is a info at the log if everything is ok??
I configured it in Paper UI and Status is Online.
I have only installed the binding and libcap as described here: https://www.openhab.org/addons/bindings/amazondashbutton/
Edit: I do not know. But I have restarted OH 3 times and now it works. Thanx for the help!