Vera Plus plugin issues (and choosing the right controller in general)



  • I'm trying to make Vera plug-in work with my serail gateway. I've discovered that the github version of the plug-in doesn't work with my Vera Plus (UI7) because of at least one reason.

    It turns out that the "InclusionMode" luup variable is not populated, so that "presentation" function wasn't able to see if the plug-in in inclusion mode. I've added luup.variable_set clauses to "startInclusion" / "stopInclusion" functions.

    Now the Vera log displays the following:

    50      06/06/21 12:43:40.607   luup_log:261: Arduino plugin: loading library L_Arduino ... <0x76d44520>
    50      06/06/21 12:43:40.624   luup_log:261: Arduino plugin: library L_Arduino loaded <0x76d44520>
    50      06/06/21 12:43:40.626   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,PluginVersion, 1.5, 261 <0x76d44520>
    50      06/06/21 12:43:40.626   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,GWAddress, -, 261 <0x76d44520>
    50      06/06/21 12:43:40.626   luup_log:261: Arduino: Trying for a serial connection <0x76d44520>
    50      06/06/21 12:43:40.627   luup_log:261: Arduino: Serial port is connected <0x76d44520>
    50      06/06/21 12:43:40.627   luup_log:261: Arduino: Baud is 115200 <0x76d44520>
    50      06/06/21 12:43:40.627   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,GWAddress, 260(115200), 261 <0x76d44520>
    50      06/06/21 12:43:40.629   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,Unit, M, 261 <0x76d44520>
    50      06/06/21 12:43:40.629   luup_log:261: Arduino: Sending: 0;0;3;0;2;Get Version <0x76d44520>
    50      06/06/21 12:43:40.638   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,ArduinoLibVersion, 2.3.2, 261 <0x73428520>
    50      06/06/21 12:44:24.016   luup_log:261: Arduino: Staring inclusion ... <0x777f7320>
    50      06/06/21 12:44:24.018   luup_log:261: Arduino: Sending: 0;0;3;0;5;1 <0x777f7320>
    50      06/06/21 12:44:35.433   luup_log:261: Arduino: Presentation: 2;255;0;0;17;2.3.2 <0x73428520>
    50      06/06/21 12:44:35.434   luup_log:261: Arduino: Processing presentation. Mode is 1 <0x73428520>
    50      06/06/21 12:44:35.434   luup_log:261: Arduino: Entering into adding a new device branch... <0x73428520>
    50      06/06/21 12:44:35.434   luup_log:261: Arduino: Found new device 2;255 <0x73428520>
    50      06/06/21 12:44:35.434   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 1 devices found, 261 <0x73428520>
    02      06/06/21 12:44:35.445   luup_log:261: Arduino: Incoming internal command '2;255;3;0;6;0' discarded for child: nil <0x73428520>
    02      06/06/21 12:44:37.464   luup_log:261: Arduino: Incoming internal command '2;255;3;0;11;Neptune Relay' discarded for child: nil <0x73428520>
    02      06/06/21 12:44:37.474   luup_log:261: Arduino: Incoming internal command '2;255;3;0;12;1.0.1' discarded for child: nil <0x73428520>
    50      06/06/21 12:44:37.483   luup_log:261: Arduino: Presentation: 2;1;0;0;3; <0x73428520>
    50      06/06/21 12:44:37.483   luup_log:261: Arduino: Processing presentation. Mode is 1 <0x73428520>
    50      06/06/21 12:44:37.484   luup_log:261: Arduino: Entering into adding a new device branch... <0x73428520>
    50      06/06/21 12:44:37.484   luup_log:261: Arduino: Found new device 2;1 <0x73428520>
    50      06/06/21 12:44:37.484   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 2 devices found, 261 <0x73428520>
    50      06/06/21 12:44:37.492   luup_log:261: Arduino: Presentation: 2;2;0;0;3; <0x73428520>
    50      06/06/21 12:44:37.492   luup_log:261: Arduino: Processing presentation. Mode is 1 <0x73428520>
    50      06/06/21 12:44:37.492   luup_log:261: Arduino: Entering into adding a new device branch... <0x73428520>
    50      06/06/21 12:44:37.493   luup_log:261: Arduino: Found new device 2;2 <0x73428520>
    50      06/06/21 12:44:37.493   luup_log:261: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 3 devices found, 261 <0x73428520>
    

    So that the plug-in now started to process new devices but there are more issues to resolve because it doesn't finish the inclusion process yet.

    Considering the fact that github for the plugin is not updated for 5 years I wonder is there a chance someone already did the fixes I do. Or, if not, what controllers you guys are using with MySensor gateways? I'd rather switch to another controller instead of trying to fix issues for the controller that nobody uses.



  • @Max-Kurilov
    Hi Max. I can't help with the Vera, but there is a log parser here: https://www.mysensors.org/build/parser
    that might make debugging the MySensors messages a little easier.

    What the "right" controller is depends a lot on what you are looking for. When I first found MySensors, Vera was pretty much the standard. The controller world has evolved a lot since then. Probably looking at recent posts in the controller forum will give you a sense of what people are using now. I would be interesting to do a true survey.



  • @nagelc thank you for directing me to the log parser. It helped me to understand that my issue caused by lack of INCLUSION_MODE messages that is easily solved by uncommenting MY_INCLUSION_MODE_FEATURE in my gateway sketch.

    The second part of the question stays valid. I realize that choosing the "right" controller is much more than choosing the controller that works good with MySensors. Anyway, I appreciate any personal experience on that.


Log in to reply
 

Suggested Topics

  • 10
  • 1
  • 2
  • 1
  • 1

48
Online

11.4k
Users

11.1k
Topics

112.6k
Posts