Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Node-RED
  4. myscontroller with mqtt gateway

myscontroller with mqtt gateway

Scheduled Pinned Locked Moved Node-RED
1 Posts 1 Posters 23 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NickL
    wrote on last edited by NickL
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    19

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular