-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no Temperature value #4
Comments
How does this work? I have the plugin installed on my Homebridge pi server, and I can get the Accessory to show up in Home/HomeKit on my iphone, but there is no temp reading. Am I missing some arduino code or pi code? where do I hook the sensor to? what is the other half of this piece? Also, how do I format the device ID address? ie "device": "28-0000063f4ead" does not equal " |
In regards to usage You need to find the sensor ID, you can run the following command after loading the kernel modules
If you don't have the modules loaded you'll have to run this before running this plugin
As far as the plugin reporting 0 degress... what does it say if you try to run cat on the file w1_slave located in /sys/bus/w1/devices/* |
duh, obviously i need to connect the sensor directly to my pi/homebridge server. I guess i was thinking it would magically report from my arduino running homebridge-http plugin. I will work on that and get back to you, thanks |
If you want something for handling remote temperature sensors you can use https://github.com/lucacri/homebridge-http-temperature-humidity That works very nicely... if you only have a DS18B20 just set humidity = false in the homebridge config If you want something super cheap for scattering temperature sensors around the house I would give the NodeMCU a try... it's a cheap Wi-Fi board that can be programmed with the Arduino IDE And another positive about that board is that there are internal pull-up resistors so you don't even need them for the DS18B20 sensor (well, I've tried it with a single one-wire device connected... more may not work...) |
wow, thanks man, I am now getting temp in F using a ds18b20 on an arduino, and it shows up in Home/Homekit over my homebridge pi server. I just cant get the Temp value to show correct, but i faked the Hudity value of the plugin and its working correctly under the other accessory, so I know it can work Thanks for your direction man #include <SPI.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address String readString; #include <OneWire.h> /-----( Declare Constants )-----/ /-----( Declare objects )-----/ /* Tell Dallas Temperature Library to use oneWire Library */ /-----( Declare Variables )-----/ ////////////////////// void setup(){ pinMode(5, OUTPUT); //pin selected to control sensors.begin(); } void loop(){ float temperatureIndoor;
*/
sensors.requestTemperatures(); // Send the command to get temperatures
} |
ah "if you only have a DS18B20 just set humidity = false", duh, thanks again |
thanks man, got the HomeKit Accessory Room Temp thing value to work correctly by changing the value to get celcius instead: temperatureIndoor = (sensors.getTempCByIndex(0)); using https://github.com/lucacri/homebridge-http-temperature-humidity and your suggestions |
@Pistooli how you setup your DS18B20 on your PI? and how config? |
how this homebridge know what pin I'm using for DS18B20? |
you connect it to a GPIO pin. I believe the homebridge plugin uses I2C and just scans the bus for devices https://www.modmypi.com/blog/ds18b20-one-wire-digital-temperature-sensor-and-the-raspberry-pi |
@lagunacomputer thanks! i will buy the sensor and give a try!!! |
Hello,
I have already installed the Plugin but i get 0 degrees. When i read manually the values of the Sensor i get 23 degrees. I use already the right Sensor id. Any ideas? I use i2c Bus for the Connection to the Sensor
The text was updated successfully, but these errors were encountered: