Hello. Help set the device found by the controller.I do not quite understand how I make one device control another. help steps to configure the device with each other.
I had some trouble trying to add my new temp sensors using UI7 on my Vera Plus. I tracked the problem down to the J_OWServer.js file. The original was trying to use a Hash object which gave me errors in my Firefox browser. I made changes to use a plain javascript Object, and I can now add the sensors. I have made changes to that file and have a copy of it in my github repo.
I figured it out: there is a bug in UI7 where when I press the start button for inclusion mode it never stops and the manual stop button doesn't do anything. It took a lot of luup restarts at the right moment to get it to work. I don't know if this is a bug but I tried this on 2 Veras and it did the same so it's not just for me I think....
@Pseudomizer I think you might have a hardware problem, most likely a wiring or powering issue.
To clarify terms, a 'node' represents your Arduino. The 'devices' include each sensor (or child devices) attached to the node as well as the node (the parent device) itself. If you have one temp sensor attached to your arduino, you should have two devices show up when you include them. However, the Dallas Temperature sketch works a little differently from most of the other device sketches in that it polls the number of DS18b20 attached before presenting them to the gateway/controller.
First it presents the node to the controller:
// Send the sketch version information to the gateway and Controller
gw.sendSketchInfo("Temperature Sensor", "1.1");
...and then it counts the dallas sensors and presents each one to the GW/controller:
// Fetch the number of attached temperature sensors
numSensors = sensors.getDeviceCount();
// Present all sensors to controller
for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) {
gw.present(i, S_TEMP);
As you only have the node (parent) being created when you include the node, the sketch apparently could not find any dallas sensors (child devices) when it looks for them or it was unsuccessful when trying to gw.present them.
First thing to check is the serial log, what does it say when the node starts up? Does it attempt to gw.present the temp sensor? If not, check your wiring or try a different DS18b20.
If it does attempt to present the sensor but fails, you should look at power as a potential problem. Do you have a capacitor on your radio? You could also try adding a short gw.delay in your setup between the device count and gw.present to allow the radio time to recover from presenting the sketch..
@gcorneau i think you posted this question on my website too. I think the step you missed was setting the GPIO port. It defaults to 1, you need to set that to 12.