homebridge-raspberrypi-temperature
homebridge-raspberrypi-temperature copied to clipboard
Pull Pi SN and model as real data
An update to pull the serial number of the pi instead of just calling it “undefined”. Also pull pi model information with the second command instead of just saying it’s a 3B.
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59864
CLI to pull model: cat /proc/device-tree/model
Looks like author has dropped this plugin’s development and support. I am totally agree that having model and SN right from the Pi is absolute “must”, very convenient, and brings clarity to the temperature sensor of RPi. Unfortunately, I am not a Java programmer, and have no idea how to expand the current script to read directly from /proc files and apply some filtering, but I just tried to replace the data (model/serial) in the file manually and it works for me, showing corrected data. So, if we can somehow adjust existing script it would be a great way to have actual information about Pi in Home bridge.