myscontroller with mqtt gateway



  • I have a flow like this:

    [{"id":"16a94524.a7f49b","type":"tab","label":"MySensors","disabled":false,"info":""},{"id":"5ee1d371.4bf144","type":"myscontroller","z":"16a94524.a7f49b","database":"bea8f6d2.2a1b38","name":"","handleid":true,"timeresponse":true,"timezone":"US/Eastern","measurementsystem":"M","mqttroot":"mysensors-out","x":310,"y":120,"wires":[["8fd52d51.33df68","dfec2cf6.42e45"]]},{"id":"dc2b7145.4ea57","type":"mysdecode","z":"16a94524.a7f49b","database":"bea8f6d2.2a1b38","name":"decode","mqtt":true,"enrich":false,"x":140,"y":120,"wires":[["5ee1d371.4bf144","d63bd8aa.d34ef8"]]},{"id":"8fd52d51.33df68","type":"mysencode","z":"16a94524.a7f49b","name":"encode","mqtt":true,"mqtttopic":"","x":500,"y":120,"wires":[["781b37ca.286d28"]]},{"id":"d63bd8aa.d34ef8","type":"mysdebug","z":"16a94524.a7f49b","name":"","x":310,"y":180,"wires":[["4170e76.d577f98"]]},{"id":"4170e76.d577f98","type":"debug","z":"16a94524.a7f49b","name":"request","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":300,"y":240,"wires":[]},{"id":"dfec2cf6.42e45","type":"mysdebug","z":"16a94524.a7f49b","name":"","x":510,"y":180,"wires":[["5653b23b.03664c"]]},{"id":"5653b23b.03664c","type":"debug","z":"16a94524.a7f49b","name":"response","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":180,"wires":[]},{"id":"ccc86104.d7832","type":"mqtt in","z":"16a94524.a7f49b","name":"Listen on MyS out","topic":"mysensors-out/#","qos":"2","datatype":"auto","broker":"a4c6ef71.21994","nl":false,"rap":true,"rh":0,"x":170,"y":60,"wires":[["dc2b7145.4ea57"]]},{"id":"781b37ca.286d28","type":"mqtt out","z":"16a94524.a7f49b","d":true,"name":"Send to MyS out","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"a4c6ef71.21994","x":690,"y":120,"wires":[]},{"id":"bea8f6d2.2a1b38","type":"mysensorsdb","name":"","file":"/home/pi/MySensors/aut-main.db"},{"id":"a4c6ef71.21994","type":"mqtt-broker","name":"aut-main","broker":"aut-main","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}]
    

    Sensor nodes have statically assigned node ids. Gateway is on Raspberry Pi, loaded with MySensors 2.4.0 Alpha. Nodes are on MySensors 2.3.2.
    If I'm enabling 'Send to MyS out' node, during the presentation phase I'm getting a flood of messages trough 'response' node, all containing the same

    "INTERNAL;nodeId:11;childId:255;SubType:I_CONFIG;ACK:0;Payload:M"
    

    When monitoring MQTT, it is:

    mysensors-out/11/255/3/0/6 M
    

    I understand that with static node ids I don't need myscontroller output, but thought I'll ask anyway, because at some point I may decide to allow dynamic node ids.


Log in to reply
 

Suggested Topics

  • 9
  • 3
  • 6
  • 36
  • 2
  • 5

9
Online

11.4k
Users

11.1k
Topics

112.7k
Posts