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. Troubleshooting
  3. Gateway message confusion

Gateway message confusion

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 598 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.
  • S Offline
    S Offline
    Samuel235
    Hardware Contributor
    wrote on last edited by
    #1

    I have a node with the "relay with button actuator" sketch running, however its behaving very weird. It will work fine with the button at all times but if i used the button to turn it on or off, any other command coming from the gateway to the relay node will not work until i press the command twice.

    I got the gateway hooked up to troubleshoot this, and it turns out that this is the log:

    0;0;3;0;9;Attempting MQTT connection...
    0;0;3;0;9;MQTT connected
    0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
    0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
    0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
    0;0;3;0;9;Sending message on topic: Gateway1-out/4/1/1/0/2
    0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
    0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    

    The line "0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1" is where i have pressed the button the relay node itself. I think i may have found of the problem; the gateway has not published the node state to the topic. Am i thinking correctly when i say that i would expect to see "0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2" after it receives the state of the node?

    MySensors 2.1.1
    Controller - OpenHAB (Virtual Machine)
    Gateway - Arduino Mega MQTT Gateway W5100

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #2

      Here is the comparison of switching the light through my light switch node, through the on board button and then through the openhab interface:

      Light Switch Node:

      0;0;3;0;9;read: 3-3-0 s=3,c=1,t=2,pt=2,l=2,sg=0:1
      0;0;3;0;9;Sending message on topic: Gateway1-out/3/3/1/0/2
      0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
      0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      

      On Board Button:

      0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
      0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
      0;0;3;0;9;Sending message on topic: Gateway1-out/4/1/1/0/2
      

      OpenHab Interface:

      0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2
      0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

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


      28

      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