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. RelayWithButtonActuator Example(solved)

RelayWithButtonActuator Example(solved)

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

    Hi,

    I'm trying to do the simple RelayWithbuttonActuator from this homepage that Works with an MQTT gateway, I've got it working 1/10 times, by using the default code from here(the RelayWithButtonActuator Example): http://www.mysensors.org/build/relay

    When i push the button, i see the TX light on the arduino light up for a split second, and then nothing happens, the relay does not switch, then i fiddle with the button 5-10 times, then it finaly switches.

    So i checked the log from the com port, and this is what the Arduino outputs:

    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
    This is an ack from gateway
    Incoming change for sensor:1, New status: 0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
    This is an ack from gateway
    Incoming change for sensor:1, New status: 0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1

    So now my questions:
    Am i doing something wrong to get this result?
    What does the error mean when it fails?
    Why does the OK status not do anything?
    Why is it not the primary funktion to turn on or off the relay insted of sending and reciving the info from the MQTT?

    Gutz2001G 1 Reply Last reply
    0
    • Gutz2001G Gutz2001

      Hi,

      I'm trying to do the simple RelayWithbuttonActuator from this homepage that Works with an MQTT gateway, I've got it working 1/10 times, by using the default code from here(the RelayWithButtonActuator Example): http://www.mysensors.org/build/relay

      When i push the button, i see the TX light on the arduino light up for a split second, and then nothing happens, the relay does not switch, then i fiddle with the button 5-10 times, then it finaly switches.

      So i checked the log from the com port, and this is what the Arduino outputs:

      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
      This is an ack from gateway
      Incoming change for sensor:1, New status: 1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
      read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
      This is an ack from gateway
      Incoming change for sensor:1, New status: 0
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
      This is an ack from gateway
      Incoming change for sensor:1, New status: 1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
      read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
      This is an ack from gateway
      Incoming change for sensor:1, New status: 0
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
      read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
      This is an ack from gateway
      Incoming change for sensor:1, New status: 1

      So now my questions:
      Am i doing something wrong to get this result?
      What does the error mean when it fails?
      Why does the OK status not do anything?
      Why is it not the primary funktion to turn on or off the relay insted of sending and reciving the info from the MQTT?

      Gutz2001G Offline
      Gutz2001G Offline
      Gutz2001
      wrote on last edited by Gutz2001
      #2

      Update:
      I've made another board with new components, and now it Works every time, i took the old board and added a Decoupling-Capacitor, now it Works about 6/10 times.

      Edit:
      I've resawdered the Wireless chip (FK 16.ONU) and now i got it to 8/10 times.

      Edit2:
      I added a Decoupling-Capacitor of 47UF insted of the 4,7 10/10 times.

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


      13

      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