rule “Test”
when
Item amx received update "testString"
then
amx.sendCommand(“String received!”)
end
Note that I have used the item method amx.sendCommand instead of the action sendCommand(String, String). It is recommended to use the method when you know what item to send a command to. Use the action only for some reserved cases like: