Error Sending switch command
-
And when you switch it looks like this:

But what about the gateway?
-
Yea, the serial log from your arduino - connect the gateway to your computer and open the serial monitor in the arduino IDE.
Another thing that you can try is to remove the device completley from domoticz, reset the node and add it again in Domoticz. -
Yea, the serial log from your arduino - connect the gateway to your computer and open the serial monitor in the arduino IDE.
Another thing that you can try is to remove the device completley from domoticz, reset the node and add it again in Domoticz.@sundberg84 said:
Another thing that you can try is to remove the device completely from domoticz, reset the node and add it again in Domoticz.
Hi,
I'm having exactly the same problems as NBM.
I've tried doing as suggested by soundberg84.
It worked for one Node(relay) but another one does not seam to get up and working. Using the serial gateway it's working.
I find odd that (Motion Sensor) Nodes are always good and working. It seems to be something concerning relays. Because when the problem occurs it affects all the relays simultaneously.
My setup is a Raspberry Pi with a serial Gateway. I've had the same problem with the stable version and the beta version.
Another thing that I've noticed, if there are two Raspberry Pi with the same setup, and with out having the " Accept new Hardware Devices Allow for 5 Minutes " turned on, without resetting the a (Motion Sensor), Domoticz recognizes them on the devices panel.
Cheers
Hugo -
@hugo_pn If you are using the default relay sketch you need ack back from the gw to switch it. Is the problem in Domoticz (Error sending switch command) or it doesnt get switched?
-
@hugo_pn If you are using the default relay sketch you need ack back from the gw to switch it. Is the problem in Domoticz (Error sending switch command) or it doesnt get switched?
-
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... -
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:1It seems that the problems is that the sensor does not reply correctly, how do i parse the message and reply?
Thanks
-
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:1It seems that the problems is that the sensor does not reply correctly, how do i parse the message and reply?
Thanks
-
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 -
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...@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.
-
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@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
-
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@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.
-
@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
-
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@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
-
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.

