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. Openhab2 + mqtt: PIR working, switch does not

Openhab2 + mqtt: PIR working, switch does not

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 1.3k 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.
  • AstrofotografA Offline
    AstrofotografA Offline
    Astrofotograf
    wrote on last edited by
    #1

    I have just installed openhab2 with mosquitto and the mqtt gateway on my raspi. I made a motion sensor with an arduino nano, which totally works in openhab.The item entry is:
    Number PIR "Bewegungsmelder" {mqtt=">[broker:mysensors-out/10/1/1/0/16:state:default]"}

    Now I wanted to create a switch, which is basically a 433MHz module sending a 24 bit string to control a 433MHz wall plug.
    Item entry:
    Switch SW2 "Lampe" {mqtt=">[broker:mysensors-in/11/1/1/0/16:command:on:000000000000000000000111],[broker:mysensors-in/11/1/1/0/16:command:off:000000000000000000000110]"}

    Now when I add the switch to my basic ui and I toggle it, nothing happens. When I send the 24 bit via mqtt.fx to the topic mysensors-in/11/1/1/0/16 it works. But when I toggle the switch in openhab, I don't see an entry in mqtt.fx

    What did I do wrong?

    1 Reply Last reply
    0
    • AstrofotografA Offline
      AstrofotografA Offline
      Astrofotograf
      wrote on last edited by
      #2

      Omg.. Topic can be closed. After hours and hours of search, try and error, I noticed I called the switch SW2 in the items file and SW1 in the sitemap..

      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


      16

      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