Send a message to MySensors on event


  • Hero Member

    Hi,

    I've been using MySensors with VERA for some time now and no complaints so far.
    I recently wanted to explore Domoticz, so I built a network gateway for Domoticz to test with some new nodes.

    On VERA I used to send messages to my nodes using Lua like this:

    luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", 
       {radioId="6;100", variableId="DIMMER", value="0,300"}, 130)
    

    But I don't know how to make the same with Domoticz.
    I made some non standard nodes and I need to send messages to them when an event happens for example.

    Any help or pointers would be much appreciated.


  • Hardware Contributor

    Hi @ferpando!
    There is a great LUA wiki for Domoticz.

    You use it like this:

    commandArray = {}
    commandArray['NodeName']='On'
    return commandArray
    

  • Hero Member

    @sundberg84 said:

    wiki

    Thank you.
    I still have much to learn about how to get things done in Domoticz.
    I'll take a look at the wiki.


  • Hardware Contributor

    You can also use json to control your nodes... have a look the wiki there as well.


Log in to reply
 

462
Online

7.3k
Users

8.1k
Topics

87.6k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.