My garage door sensor
-
@Lemme You say that ACK is enabled by default on all child nodes. If that is the case and Domoticz is expecting it, shouldn't it work? On the flip side, if it is not expecting it and it is sent, wouldn't it just ignore it? I will look into how to disable it and test that, but it would be nice to know for sure that that is the way Domoticz is set up to work.
-
I cannot see that your code are handling ACK's. So if Domoticz are expecting ACK, and your code do not respond, it could cause the problem.
I have had an issu myself with the error "Error sending switch command, check device/hardware !". I first disabled the ACK - update, and then enabled ACK - update, and then it worked correctely.
You find it at the buttom of the screen.

-
I did some searching and did find this post regarding my first question.
https://forum.mysensors.org/topic/2553/error-sending-switch-command-check-device-hardware/8
One response was this:@hek said:
The gateway code running on RPI doesn't remember routing information when restated (the EEPROM emulation is just in-memory).
This means you have to restart the actuator nodes after RPI was restarted to fill the routing information again.
It's on the grand TODO list. Anyone: Feel free to fix.But I am not sure if that is only for the Raspberry Pi or not. I am running an Orange Pi which may run the same gateway code, but I am not sure. I am going to try resetting my node later today to see if that works.
-
So I restarted my garage door node and I am no longer getting the error message. I am still wondering though how I can display the responses sent from the node. The node responds with Open, Closed, Opening, Closing and Obstruction. I would like to display that for the node instead of the state of the relay. The relay is just a momentary toggle to open and close the door, so that information I don't need, but the state of the door is crucial.
Thanks for all the help
-
So I restarted my garage door node and I am no longer getting the error message. I am still wondering though how I can display the responses sent from the node. The node responds with Open, Closed, Opening, Closing and Obstruction. I would like to display that for the node instead of the state of the relay. The relay is just a momentary toggle to open and close the door, so that information I don't need, but the state of the door is crucial.
Thanks for all the help
-
@dbemowsk you would need a V_TEXT type to send text information to domoticz. V_VAR types in Domoticz are not available in the Web and other interfaces.
-
@AWI Looking at the API documentation for 1.5 and I don't see a V_TEXT type. Is there a way to do this with MySensors?
-
@dbemowsk This is added in 2.0 but you can patch it in v1.5 by defining it yourself.
// new V_TEXT variable type (development 20150905) const int V_TEXT = 47 ; // new S_INFO sensor type (development 20150905) const int S_INFO = 36 ; -
Hello guys,
I am very interested in this project. Did you simply change V_VAR1 to V_Text to make it work?
Would you mind posting your fully working code?
Thanks
@Dringie As @AWI pointed out, the V_TEXT variable and S_INFO sensor type have not been implemented until version 2.0. He mentions that you can add them by putting these lines in your sketch:
// new V_TEXT variable type (development 20150905) const int V_TEXT = 47 ; // new S_INFO sensor type (development 20150905) const int S_INFO = 36 ;I did that and it worked like a charm. I now havemy "Garage door position object that shows me the current state of the door as one of {Open, Closed, Opening, Closing, Obstruction}. As for posting the code, I will do that in another thread. I have a thread started under the Hardware section of the forum called "Automate garage door". Here is the link.
https://forum.mysensors.org/topic/4059/automated-garage-door
I will be posting the new code later tonight. I just want to tidy it up a bit before posting.