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. Controllers
  3. Domoticz
  4. Error Sending switch command

Error Sending switch command

Scheduled Pinned Locked Moved Domoticz
57 Posts 11 Posters 26.4k 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.
  • N Offline
    N Offline
    NBM
    wrote on last edited by
    #47

    I have solved the problem. I changes power supply and now it works.

    Can someone recommend some power supply?

    H 1 Reply Last reply
    0
    • N NBM

      I have solved the problem. I changes power supply and now it works.

      Can someone recommend some power supply?

      H Offline
      H Offline
      hugo_pn
      wrote on last edited by
      #48

      @sundberg84 Thanks for the reply.

      @NBM

      That's great news for all of US with this issue. With how many Amp's are you feeding the Arduino now?

      Regarding the power supply, as @sundberg84 has said " Here is a great discussion: http://forum.mysensors.org/topic/1607/safe-in-wall-ac-to-dc-transformers"

      Chears

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PostaanErik
        wrote on last edited by
        #49

        I have similar issues with the Relay Actuator and Domoticz

        I’m using MySensors 1.5, Serial gateway and domoticz on a windows machine.
        Currently latest version: domoticz-win32-2_4078
        Working with the standard provided arduino examples.

        I cannot get Domoticz controlling the relay. The status is presented in domoticz when I use the RelayWithButtonActuator and press the button

        Hardware is detected in Domoticz, devices are showing up (other devices like pressure/humidity are working fine).

        I used multiple Arduino pro’s with different NRF’s + capacitator.
        Disable Ack results in an error when trying to Switch via Domoticz

        The serial output of the RelayWithButtonActuator looks like this:

        send: 0-0-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1
        send: 0-0-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
        repeater started, id=0, parent=0, distance=0
        send: 0-0-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
        send: 0-0-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
        send: 0-0-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:

        When I press the button attached to the arduino:

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

        Any help or a working arduino Sketch would be appreciated.

        Thanks

        Erik

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #50

          The logs look ok, doesnt the relay switch when you get this?

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

          If not My guess its a power problem with the relay.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PostaanErik
            wrote on last edited by
            #51

            Yes it is switching, but initiated from the attached button

            1 Reply Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by sundberg84
              #52

              But not working from Domoticz and you get "Error sending command to switch" ?
              Then nothing in the logs i guess when you try to initiate the command from Domoticz?

              Its a trend here.. dont know if that is domoticz or MySensors but if you dont see anything in GW log trying to initiate the command from Domoticz I would ask this question in the Domoticz forum because then its a issue there.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              1 Reply Last reply
              0
              • Cliff KarlssonC Offline
                Cliff KarlssonC Offline
                Cliff Karlsson
                wrote on last edited by
                #53

                I am not very skilled at these things but I had the same problem for a long time and the only solution I found was to disable ack in domoticz.

                select hardware in the hardware/devices tab find the mysensors gateway and click setup.

                Try to find your node and deselect the ack box.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  PostaanErik
                  wrote on last edited by
                  #54

                  Thanks for the input, but this is not working for me :(

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    PostaanErik
                    wrote on last edited by
                    #55

                    Small Update: seems that everything "sending" from domoticz is not received at the nodes.
                    When monitoring the serial from relay, dimmer, rgb....

                    when i tick devices in domoticz, a sensor is just not receiving:

                    send: 31-31-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,st=ok:1.5.1
                    send: 31-31-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                    sensor started, id=31, parent=0, distance=1
                    send: 31-31-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
                    send: 31-31-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
                    send: 31-31-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hugo_pn
                      wrote on last edited by hugo_pn
                      #56

                      Hi all,

                      After trying several things, I decided to try a downgrade on Domoticz going back to Domoticz V2.2563.

                      Seems to be flawless, Suddenly everything is working fine for the past 6 days.

                      What do you make of this?

                      Thanks

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        flopp
                        wrote on last edited by
                        #57

                        I read this post yesterday and today I solved it.
                        My GW was restarting as soon as I was sending a command to a MYS node with dimmer child.
                        I am using nRF PA-LNA, with extra power supply, PA_HIGH. Domoticz 3.8795, MYS 2.1.1. Nano as serial GW.
                        Tried PA_LOW, new nRF but that didn't help.
                        Today I found the solution, I disabled DEBUG in GW and now I can't reproduce any restarts.

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


                        23

                        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