Error Sending switch command
Im new to Domiticz.
I have a problem with sending commands to my sensors.
I have made 1 with one relay and 1 with 4 relay and a scenecontroller.
All of them is refreshing "last seen" when im turning the sensor on and off
Hi! Is it a standard MySensors relay you got?
When i reboot Domoticz for some reason i need to present the relays again or i get this message.
@sundberg84 Yes standard relay. Present=reset (turn on and off.)?
@sundberg84 No change. Still samme massage.
@NBM What Domoticz version do you run? The lastes beta feel more stable than the stable version... or atleast mysensors was pretty new in that version so it might be a good idea to upgrade.
@sundberg84 My version on domoticz and i have newst version on mysensor.
Ok sorry then im out of ideas - do you have any logs we can look at?
@sundberg84 Where du i find the logs on domoticz?
The log in Domoticz is by default quite little info, but Setup -> Log
But if you se anything in the gw when you trigger perhaps?
NBM last edited by NBM
It shows everytime when im reset the sensor.
And when you switch it looks like this:
But what about the gateway?
Only this is showing when i switch the sensor.
Where do i find the log on gateway? GW log?
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.
hugo_pn last edited by
Another thing that you can try is to remove the device completely from domoticz, reset the node and add it again in Domoticz.
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.
@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 last edited by
I am using the default relay sketch with button.
Ack back = acknowledge?
The message I receive from Domoticz is (Error sending switch command...)
when the message doesn't appear it switches.
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...
jlaraujo last edited by
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?
fets last edited by
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