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 6.8k 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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              12

              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