How to connect gateway sensor to Vera
-
Hi,
I'm just starting with MySensors. I've build a gateway based on:
Sensebender_GW
W5100
RFM69My plan was to start out with a simple "read analog pin" sensor located on the GW.
The GW is running, and I have the MySensors Plugin recognized by Vera and reporting connected.
I based my node addition to the gateway on this code from the Mihai post sensor on gateway reference
My issue is, I don't know how to create a MySensors sensor device on Vera. I can't use the normal include procedure as the sensor is on the gateway. But I tried anyway. by starting inclusion and resetting the gateway but to no avail.
Any input would be appreciated.
-
What I have done for Vera to discover "Sensors" defined in the GW is this:
Add this to your GW sketch just after the port definition.
// How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2
Then when you have everything back up and running with Vera again you can connect another controller simultaneously called MYSController from a Windows computer.
When you are also connected from MYSController start the inclusion mode from Vera and then press the "Discover" button in MYSController.
-
@Tomas,
Thank you
I took me awhile to comprehend what you were saying but I think I understand now.
-
Hello
Use the include procedure on the MYSensors Plugin Icon under settings you will see start and stop if all is working properly just press the start button you will see a dialog that tells you to activate the sensor you wish to add. If all goes correctly you will see a node added as well as the sensor. Now that is how it use to work with earlier Libraries if you are using 2.2 library I will presume it will work the same way.