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. Development
  3. PiGatewayMQTT v2.0 switching relay.

PiGatewayMQTT v2.0 switching relay.

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 1.6k Views 2 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.
  • Artur MajA Offline
    Artur MajA Offline
    Artur Maj
    wrote on last edited by
    #1

    I have the PiGatwayMQTT and mosquitto running on my raspberry.
    My double relay controler is connecting to it.
    As it can be seen on my EventGhost MQTT client below:
    MQTT./mySensors/1/255/I_REQUEST_SIGNING u""
    MQTT./mySensors/1/255/S_ARDUINO_REPEATER_NODE u"2.0.0-beta"
    MQTT./mySensors/1/255/I_CONFIG u"0"
    MQTT./mySensors/1/255/I_SKETCH_NAME u"Relay"
    MQTT./mySensors/1/255/I_SKETCH_VERSION u"1.0"
    MQTT./mySensors/1/1/S_LIGHT u""
    MQTT./mySensors/1/2/S_LIGHT u""
    The question is what should I send to MQTT broker in order to switch the relay.
    I tried a lot of possible combinations with no success.

    martinhjelmareM 1 Reply Last reply
    0
    • Artur MajA Artur Maj

      I have the PiGatwayMQTT and mosquitto running on my raspberry.
      My double relay controler is connecting to it.
      As it can be seen on my EventGhost MQTT client below:
      MQTT./mySensors/1/255/I_REQUEST_SIGNING u""
      MQTT./mySensors/1/255/S_ARDUINO_REPEATER_NODE u"2.0.0-beta"
      MQTT./mySensors/1/255/I_CONFIG u"0"
      MQTT./mySensors/1/255/I_SKETCH_NAME u"Relay"
      MQTT./mySensors/1/255/I_SKETCH_VERSION u"1.0"
      MQTT./mySensors/1/1/S_LIGHT u""
      MQTT./mySensors/1/2/S_LIGHT u""
      The question is what should I send to MQTT broker in order to switch the relay.
      I tried a lot of possible combinations with no success.

      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by
      #2

      @Artur-Maj

      Hi!

      I think something along the lines of:

      MQTT./mySensors/1/1/V_LIGHT u"1"
      

      to switch on child 1.

      MQTT./mySensors/1/1/V_LIGHT u"0"
      

      to switch off child 1.

      MQTT./mySensors/1/2/V_LIGHT u"1"
      

      to switch on child 2.

      1 Reply Last reply
      0
      • Artur MajA Offline
        Artur MajA Offline
        Artur Maj
        wrote on last edited by
        #3

        That what I tested first. I getting no response from PiGatewayMQTT. It seems that it is not subscribing to this subject.
        My broker sends the message. I can see it on my other eventghost as:

        12:51:10 MQTT./mySensors/1/1/V_LIGHT u"1"

        1 Reply Last reply
        0
        • Artur MajA Offline
          Artur MajA Offline
          Artur Maj
          wrote on last edited by
          #4

          I did some debugging of my mqtt broker. It seems that PiGatewayMQTT is not subscribing to receive notifications from broker.
          Is the PiGatewayMQTT able to receive messages from broker and sending them back to nodes?

          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.0k

          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