Rule to send message to Node



  • Hi,

    I have this simple rule to test data tx to a node:

    rule "Test"
    when
            Item Test_Btn changed
    then
            sendCommand(Test_Btn, "30;200;1;0;3;ON")
    end
    

    and Test_Btn is defined as the following item:

    Switch 		Test_Btn  "Test Btn"
    

    When I press the button, I get the following error:

    18:18:34.161 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'Test_Btn' received command OFF
    18:18:34.182 [INFO ] [marthome.event.ItemStateChangedEvent] - Test_Btn changed from ON to OFF
    18:18:34.199 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Test': The argument 'command' must not be null or empty.
    

    What does "The argument 'command' must not be null or empty" mean?


Log in to reply
 

Suggested Topics

257
Online

9.2k
Users

9.9k
Topics

103.2k
Posts