With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
I updated the plugin to create a separate humidity sensor, so if you update the plugin you will now see a humidity as a separate sensor. With this change I added some additional options to the configuration file to allow naming of the each. Please see step 6.2.
Awesome, that is a very unique idea.
Reverse Engineer RF Remote Controller for IoT!
I sent an email, but did not hear back. Do you need help with the config or connecting the sensor?
Dom,Looking at the homebridge output it is complaining that the homebridge config.json file can not be found in the directory /root/.homebridge.Have you created the config file? And is it in that directory?
In the plugin itself, a second accessory would need to be created. If you give me a could of days, I can add it to the plugin.
Richard,In step 7.6 this creates the file dht22.sudo cp DHTXXD /usr/local/bin/dht22sudo chmod a+x /usr/local/bin/dht22With the CP command, I'm copying the file DHTXXD and renaming it to dht22.
Hummm, can you share the output from homebridge when starting? I suspect the plugin isn't starting correctly.
Hector,Multiple sensors are supported by the plugin, just not documented in the Instructable. In the readme.md file the config.json setting for multiple sensors is documented. If need more assistance, please let me know.
Dom,Looking at the screen shot, it appears that you are not the correct directory. When I wrote the steps I assumed they would all be executed sequentially, and Step 7.3 assumes that you are already in the DHTXXD directory. This is where you would have been at the end of Step 7.2. Try it again, but execute cd DHTXXDbefore executing the steps in 7.3 again.good luck ;-)
Connect your RaspberryPI to...View Instructable »
That is odd, have you rebooted since the install?
Try this, remove the double node_modules and add a .cp /usr/local/lib/node_modules/homebridge-dht/test_DHTXXD.patch .
Hector, at the end of the cp command in step 7.3 there is a period . that you are missing.
Perfect, nowgcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2cp DHTXXD /usr/local/bin/dht22chmod a+x /usr/local/bin/dht22
Just looking back at that section, and your correct their only should be one node_modules directory and not 2. Try it again, but remove the second node_modules directory.
Hector, looking at the output I see that the dht22 command didn't return anything. What happens when you run 'dht22' from the command line? Can you post that output.Also looking back at the instructions, I missed the step to create a cputemp command, so have added it as 8. If you don't want to see your raspberry pi cpu temperature, please use the shorter config.json in step 6. This will fix the cputemp error as well.
Homebridge MCU IOTView Instructable »
Aaron,I went back and changed the patch instructions, and hopefully made them easier to follow this time. And I have included the patch file as part of the homebridge plugin, so you will need to run sudo npm install -g homebridge-dht before following the instructions.
Dom,I took a quick look at the code, and realized all that was missing to support multiples was exposing the gpio pin as a config parameter, and passing it 'dht22'. I added the couple of lines, and it should now be supported.But if you are looking at doing multiple sensors, I have started using multiple ESP8266/Nodemcu modules, and deployed them where I wanted to collect a temperature. Take a look at this on Github https://github.com/NorthernMan54/homebridge-mcuiot
RPI/HomeBridge Temperature/...View Instructable »
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.