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.3k 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.
  • sundberg84S Offline
    sundberg84S Offline
    sundberg84
    Hardware Contributor
    wrote on last edited by
    #18

    In new Domoticz beta there is so you can enable/disable ack. Havent tried that myself but maybe you can try to change that.
    Also what does your gw serial log say? Maybe we can find some clues 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

    H 1 Reply Last reply
    0
    • J Offline
      J Offline
      jlaraujo
      wrote on last edited by
      #19

      I'm having the same issue, running Version: 2.3530 Build Hash: 9eef872

      The sensor is number 1, and as soon as i try to change the state i get the "Error sending switch command, check device/hardware !"

      This is what the domoticz is sending:
      0;0;3;0;9;send: 0-0-1-1 s=35,c=1,t=2,pt=0,l=1,sg=0,st=fail:1

      It seems that the problems is that the sensor does not reply correctly, how do i parse the message and reply?

      Thanks

      Domoticz, mysensors 2.3.1, RFM69 and RF24 sensors

      fetsF 1 Reply Last reply
      0
      • J jlaraujo

        I'm having the same issue, running Version: 2.3530 Build Hash: 9eef872

        The sensor is number 1, and as soon as i try to change the state i get the "Error sending switch command, check device/hardware !"

        This is what the domoticz is sending:
        0;0;3;0;9;send: 0-0-1-1 s=35,c=1,t=2,pt=0,l=1,sg=0,st=fail:1

        It seems that the problems is that the sensor does not reply correctly, how do i parse the message and reply?

        Thanks

        fetsF Offline
        fetsF Offline
        fets
        wrote on last edited by
        #20

        @jlaraujo said:

        0;0;3;0;9;send: 0-0-1-1 s=35,c=1,t=2,pt=0,l=1,sg=0,st=fail:

        st=fail means that the message was not received. So this is a hardware issue

        1 Reply Last reply
        0
        • macieiksM Offline
          macieiksM Offline
          macieiks
          wrote on last edited by
          #21

          Hello guys,

          I had the same problem with st=fail, also with this output: "Error sending command, check your hardware/device (blablabla :D)". I can give you here my hints, maybe they will help you. First of all I am using the latest beta domoticz and beta mysensors library v1.6.

          I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage.

          I have Arduino Mega2560 installed 1 week ago with 16 channel 12v relay board together. I had the the same problem like you "Error sending command, check your hardware/device". Two days ago I realized that maybe there is a problem with my powering my gateway. I have RFXtrx433, APCups and Ethernet Arduino Uno gateway connected to Raspberry Pi USB. I connected my MySensors gateway separately via 5V charge to the wall socket and this error problem is gone. Conclusion was this that my Raspberry couldnt supply enough current for all attached devices. Now I am planning to install PiHut USB hub with external power supply and move all connected USB interfaces to it and then just with one connection cable to my raspberry (maybe RFX will work better :) we will see).

          Update us if these two hints helped you ;D.

          Cheers
          Maciek

          RPI2 + RFLink + PiFace D2 + Aeon Z-Wave Gen5 + Foscams FI9821P&R2 + MySensors + UPS APC Back-UPS 950VA
          RPI2 + RFXtrx433e + Foscams FI9821P + MySensors + UPS APC Back-UPS 950VA
          RPIB+ + TP-Link MR3420 + Huawei E173 GarageDomoticz :)

          H J 3 Replies Last reply
          1
          • sundberg84S sundberg84

            In new Domoticz beta there is so you can enable/disable ack. Havent tried that myself but maybe you can try to change that.
            Also what does your gw serial log say? Maybe we can find some clues there...

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

            @sundberg84 said:

            In new Domoticz beta there is so you can enable/disable ack. Havent tried that myself but maybe you can try to change that.
            Also what does your gw serial log say? Maybe we can find some clues there...

            Sorry for not replying but the error hasn't been appearing, só I cant show the log. From what I've read there is no log file in Domoticz.

            Haven't tried to enable/disable ack.

            1 Reply Last reply
            0
            • macieiksM macieiks

              Hello guys,

              I had the same problem with st=fail, also with this output: "Error sending command, check your hardware/device (blablabla :D)". I can give you here my hints, maybe they will help you. First of all I am using the latest beta domoticz and beta mysensors library v1.6.

              I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage.

              I have Arduino Mega2560 installed 1 week ago with 16 channel 12v relay board together. I had the the same problem like you "Error sending command, check your hardware/device". Two days ago I realized that maybe there is a problem with my powering my gateway. I have RFXtrx433, APCups and Ethernet Arduino Uno gateway connected to Raspberry Pi USB. I connected my MySensors gateway separately via 5V charge to the wall socket and this error problem is gone. Conclusion was this that my Raspberry couldnt supply enough current for all attached devices. Now I am planning to install PiHut USB hub with external power supply and move all connected USB interfaces to it and then just with one connection cable to my raspberry (maybe RFX will work better :) we will see).

              Update us if these two hints helped you ;D.

              Cheers
              Maciek

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

              @macieiks said:

              Hello guys,

              "
              I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage."

              This may come into a great help, I have two external antennas that I thought where damaged since arrival, maybe this is the problem. I'm going to try this next week.

              Although, this still makes me thinking of distance, the error appears with the hardware separated by +- 3m with no obstacles .

              Cheers

              N 1 Reply Last reply
              0
              • macieiksM macieiks

                Hello guys,

                I had the same problem with st=fail, also with this output: "Error sending command, check your hardware/device (blablabla :D)". I can give you here my hints, maybe they will help you. First of all I am using the latest beta domoticz and beta mysensors library v1.6.

                I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage.

                I have Arduino Mega2560 installed 1 week ago with 16 channel 12v relay board together. I had the the same problem like you "Error sending command, check your hardware/device". Two days ago I realized that maybe there is a problem with my powering my gateway. I have RFXtrx433, APCups and Ethernet Arduino Uno gateway connected to Raspberry Pi USB. I connected my MySensors gateway separately via 5V charge to the wall socket and this error problem is gone. Conclusion was this that my Raspberry couldnt supply enough current for all attached devices. Now I am planning to install PiHut USB hub with external power supply and move all connected USB interfaces to it and then just with one connection cable to my raspberry (maybe RFX will work better :) we will see).

                Update us if these two hints helped you ;D.

                Cheers
                Maciek

                J Offline
                J Offline
                jlaraujo
                wrote on last edited by
                #24

                @macieiks Could't find what my problem was. I've tried changing the gateway code to the sensor, same issue, change the radios, the same thing.

                I ended up downloading again the Mysensors library, the same issue, i then changed the baud rate for the debug and serial gateway to 19200 and that seemed to solve the issue, i can now issue commands to the nodes, thanks for the help.

                My sensor and gateway are all Pro mini, 8v 8Mhz, i remember now that i've read something in the forum, but can't find it now.

                Domoticz, mysensors 2.3.1, RFM69 and RF24 sensors

                1 Reply Last reply
                0
                • H hugo_pn

                  @macieiks said:

                  Hello guys,

                  "
                  I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage."

                  This may come into a great help, I have two external antennas that I thought where damaged since arrival, maybe this is the problem. I'm going to try this next week.

                  Although, this still makes me thinking of distance, the error appears with the hardware separated by +- 3m with no obstacles .

                  Cheers

                  N Offline
                  N Offline
                  NBM
                  wrote on last edited by
                  #25

                  @hugo_pn Is's possible to see the sketch? Im insecure where to alter the sketch.

                  H 1 Reply Last reply
                  0
                  • N NBM

                    @hugo_pn Is's possible to see the sketch? Im insecure where to alter the sketch.

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

                    @NBM

                    Hi,

                    I'm trying to find it. As soon as I do and if I do I'll tell.

                    Chears

                    1 Reply Last reply
                    0
                    • macieiksM macieiks

                      Hello guys,

                      I had the same problem with st=fail, also with this output: "Error sending command, check your hardware/device (blablabla :D)". I can give you here my hints, maybe they will help you. First of all I am using the latest beta domoticz and beta mysensors library v1.6.

                      I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage.

                      I have Arduino Mega2560 installed 1 week ago with 16 channel 12v relay board together. I had the the same problem like you "Error sending command, check your hardware/device". Two days ago I realized that maybe there is a problem with my powering my gateway. I have RFXtrx433, APCups and Ethernet Arduino Uno gateway connected to Raspberry Pi USB. I connected my MySensors gateway separately via 5V charge to the wall socket and this error problem is gone. Conclusion was this that my Raspberry couldnt supply enough current for all attached devices. Now I am planning to install PiHut USB hub with external power supply and move all connected USB interfaces to it and then just with one connection cable to my raspberry (maybe RFX will work better :) we will see).

                      Update us if these two hints helped you ;D.

                      Cheers
                      Maciek

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

                      @macieiks said:

                      Hello guys,

                      I had the same problem with st=fail, also with this output: "Error sending command, check your hardware/device (blablabla :D)". I can give you here my hints, maybe they will help you. First of all I am using the latest beta domoticz and beta mysensors library v1.6.

                      I am using two types of nrf24L01+ (with built-in antenna and external). For built-in antenna I am using #define RF24_PA_LEVEL_GW RF24_PA_HIGH in my sketches, BUT for external I need to lower the power because Arduino cannot provide enought current for it (even with attached capacitor): define RF24_PA_LEVEL_GW RF24_PA_LOW. I had this st=fail when I was using HIGH settings for nrf with external antenna, but now it is fixed. Also make sure that you have enough coverage.

                      Hi,

                      Can't find the specific line. The most similar one is in the MyConfig.h line 115

                      #define RF24_PA_LEVEL_GW RF24_PA_LOW

                      Going with the GitHub file I don't even find it...

                      Where exactly did you change the mentioned above?

                      Thanks

                      Hugo

                      P.S. I can't find the V 1.6 library for my sensors. That's why I mentioned github

                      1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #28

                        1.6 is the default branch when you go to the github project.

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          NBM
                          wrote on last edited by
                          #29

                          This is what im getting when im trying to turn on the light.

                          0;0;3;0;9;send: 0-0-1-1 s=1,c=1,t=2,pt=0,l=1,sg=0,st=fail:1

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

                            st=fail means the gw radio doesnt reach the node.
                            It can be a power issue (search the forum) which can be fixed with caps and/or other power.
                            It can be a range issue and then you need a repeater.

                            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

                            N 1 Reply Last reply
                            0
                            • sundberg84S sundberg84

                              st=fail means the gw radio doesnt reach the node.
                              It can be a power issue (search the forum) which can be fixed with caps and/or other power.
                              It can be a range issue and then you need a repeater.

                              N Offline
                              N Offline
                              NBM
                              wrote on last edited by
                              #31

                              @sundberg84 The node is 2 meters from the gateway.
                              It most be an power problem. Is it with the gateway or node?

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

                                Hi!
                                Can be both (or even worse, faulty hardware/bad fake nrf radios).

                                I power my gateway through USBCharger and have a 4.7 + 47 uF cap paralell on VCC/Gnd.
                                On my nodes i use a single 4.7uF cap VCC/GND

                                In best case its just one of your radios thats bad or misswired... check wiring and/or change the radios if you have another one.

                                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

                                N 1 Reply Last reply
                                0
                                • sundberg84S sundberg84

                                  Hi!
                                  Can be both (or even worse, faulty hardware/bad fake nrf radios).

                                  I power my gateway through USBCharger and have a 4.7 + 47 uF cap paralell on VCC/Gnd.
                                  On my nodes i use a single 4.7uF cap VCC/GND

                                  In best case its just one of your radios thats bad or misswired... check wiring and/or change the radios if you have another one.

                                  N Offline
                                  N Offline
                                  NBM
                                  wrote on last edited by NBM
                                  #33

                                  @sundberg84 On my gateway (nano) is an 4.7 uF og it is connected with USB to the domoticz. How can I do it different?

                                  Im getting this from the node. It reads okay.

                                  1;255;3;0;11;RELAY_BUTTON_JUL
                                  0;0;3;0;9;read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
                                  1;255;3;0;12;1.0
                                  0;0;3;0;9;read: 1-1-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
                                  1;1;0;0;3;

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    NBM
                                    wrote on last edited by
                                    #34

                                    I have made an temp node and it communicating okay.

                                    0;0;3;0;9;read: 4-4-0 s=1,c=1,t=0,pt=7,l=5,sg=0:17.8
                                    4;1;1;0;0;17.8
                                    0;0;3;0;9;read: 4-4-0 s=0,c=1,t=1,pt=7,l=5,sg=0:45.2
                                    4;0;1;0;1;45.2
                                    0;0;3;0;9;read: 4-4-0 s=0,c=1,t=1,pt=7,l=5,sg=0:45.0
                                    4;0;1;0;1;45.0
                                    0;0;3;0;9;read: 4-4-0 s=0,c=1,t=1,pt=7,l=5,sg=0:45.3
                                    4;0;1;0;1;45.3
                                    0;0;3;0;9;read: 4-4-0 s=0,c=1,t=1,pt=7,l=5,sg=0:45.0
                                    4;0;1;0;1;45.0

                                    Read is not the problem. it is send comands

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

                                      I had this problem due to range but 2m shouldnt be any problem... so strange you can recieve but not send.

                                      Some things to consider if someone else doesnt know better than me:

                                      • Change radios if possible
                                      • Send commands without relays attached (to see if there is some spokes or disturabnce from relay)
                                      • Connect MYSController to debug if possible

                                      Whats your node ID on that node?
                                      Im not good reading those serial lines but if they are beginning with 0 its like its sending to the gateway!?
                                      In my case when i send: 103;1;1;1;2;1 where 103 is node ID, Child(Relay) 1, MsgType = 1 (Set), Ack = 1 (yes), 2 = V_LIGHT, 1 = On

                                      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
                                      • N Offline
                                        N Offline
                                        NBM
                                        wrote on last edited by NBM
                                        #36

                                        My relay sensor
                                        Skærmbillede 2016-01-10 kl. 11.40.23.png
                                        How can i Send commands without relays attached? Where i see log from the gatway?
                                        I also tryed change radios. No change.

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

                                          Sorry, Domoticz logs and hardware doesnt provide any info about the radio traffic. MySensors NodeID and Domoticz ID is not the same either.

                                          If you disconnect the relay from your Arduino you should still be able to send the switch command and with this the relay disconnected it doesnt make any power spikes that could interfere with the radio.

                                          Could you please post your sketch and logs from the gateway again... I cant seem to figure this out.

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


                                          10

                                          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