Distance+Humidity, Vera Registration Issue
-
I have mashed code together to run a temp/humidity sensor as well as distance sensor off of the same Arduino. I have the unit functioning properly, where I am getting temp, distance and humidity readings off of the serial monitor.
I have included the device in my vera, and 3 devices are recognized.
- Temp
- Humidity
- "Arduino Node 1"
The first 2 are correct, and are reporting correctly. The last one should be distance, but it is not, and is not reporting correctly. Below is the code, as well as a snap of the vera interface. Any assistance would be appreciated!
I think the issue is in how I modified the void setup, adding two gw.sendSketchInfo? If I just add the native distance sensor code, vera reports the correct distance device. However, it still reports that "Arduino Node 1" device.
-
I have mashed code together to run a temp/humidity sensor as well as distance sensor off of the same Arduino. I have the unit functioning properly, where I am getting temp, distance and humidity readings off of the serial monitor.
I have included the device in my vera, and 3 devices are recognized.
- Temp
- Humidity
- "Arduino Node 1"
The first 2 are correct, and are reporting correctly. The last one should be distance, but it is not, and is not reporting correctly. Below is the code, as well as a snap of the vera interface. Any assistance would be appreciated!
I think the issue is in how I modified the void setup, adding two gw.sendSketchInfo? If I just add the native distance sensor code, vera reports the correct distance device. However, it still reports that "Arduino Node 1" device.
You are presenting two sensors as child number 0
gw.sendSensorPresentation(CHILD_ID_HUM, S_HUM);
-
You are presenting two sensors as child number 0
gw.sendSensorPresentation(CHILD_ID_HUM, S_HUM);
Quick fix. Thanks so much for the quick response! Stupid mistake.
-
Quick fix. Thanks so much for the quick response! Stupid mistake.
I've been doing the same stuff, creating multi-sensors, making mistakes like that are part of it.
I'll post some when I'm back.
Fun stuff.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login