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. N00b + MQTT gw + openHAB2

N00b + MQTT gw + openHAB2

Scheduled Pinned Locked Moved Troubleshooting
26 Posts 5 Posters 8.2k Views 5 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #21

    Just do everything in code so you present relay status not pin status

    MasMatM 1 Reply Last reply
    0
    • gohanG gohan

      Just do everything in code so you present relay status not pin status

      MasMatM Offline
      MasMatM Offline
      MasMat
      wrote on last edited by
      #22

      @gohan How do I do that? I tried reversing the:
      #define RELAY_ON 0 // GPIO value to write to turn on attached relay
      #define RELAY_OFF 1 // GPIO value to write to turn off attached relay

      I switched around the 0 and 1 but no real change...

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #23

        Did you get a debug log where you actually see the node receiving the message to change the relay status? Because setting the defines as you said should be correct

        1 Reply Last reply
        0
        • MasMatM Offline
          MasMatM Offline
          MasMat
          wrote on last edited by
          #24

          I see the mqtt message going out. I have to double check the 0 vs 1 in the messages.

          I'm about to build another sensor that has only relays. So I will troubleshoot this code & mqtt to make it match.

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #25

            Actually I mean the serial debug of the node, not the mqtt log

            MasMatM 1 Reply Last reply
            1
            • gohanG gohan

              Actually I mean the serial debug of the node, not the mqtt log

              MasMatM Offline
              MasMatM Offline
              MasMat
              wrote on last edited by
              #26

              @gohan gonna examine that too before actually hooking it up. Thanks

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              36

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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