I wrote a very simple rule but nothing happens.
I am sure I am doing some stupid error at some point, but I can't understand what I am missing.
My goal is to send a gpio pin status everytime I change it via a command.
Code: Select all
on System#Boot do
Monitor GPIO,13
endon
on MQTT#Connected do
GPIO,13,1
Publish %sysname%/output/gpio13,2
endon
on GPIO#13=0 do
Publish %sysname%/output/gpio13,0
endon
on GPIO#13=1 do
Publish %sysname%/output/gpio13,1
endon
Rule event name is: rule#1 (does it matter?)
In the console log I can't find any error or any trace that my rule is run.
The "on MQTT#Connected" has been added for debugging purpose but, again, nothing happens.
The command I try to send are:
- GPIO,13,1
- Pulse,13,1,500
through the proper MQTT topic. The pin change as intended (the controlled relay open/close).
Can you please help me?