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?


 

363
Online

7.9k
Users

8.8k
Topics

94.2k
Posts