在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ankurp/homebridge-pi-thermostat开源软件地址:https://github.com/ankurp/homebridge-pi-thermostat开源编程语言:JavaScript 100.0%开源软件介绍:Homebridge Pi Thermostat PluginThis is a homebridge plugin to make a Raspberry Pi connected with a Relay Board and DHT22 Temperature and Humidity Sensor into a smart thermostat that can be controlled via the Home app on iOS using Homekit. GuideFor those who want to create their own thermostat using Raspberry Pi, here is a blog post that goes through the details of where to buy the parts, how to assemble it and what software to install to get this to work. Installation
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs libavahi-compat-libdnssd-dev
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.52.tar.gz
tar zxvf bcm2835-1.52.tar.gz
cd bcm2835-1.52
./configure && make && sudo make check && sudo make install
sudo npm install -g --unsafe-perm homebridge homebridge-pi-thermostat
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "",
"accessories": [
{
"accessory": "Thermostat",
"name": "Pi Thermostat",
"fanRelayPin": 26,
"heatRelayPin": 21,
"coolRelayPin": 20,
"temperatureSensorPin": 4,
"minimumOnOffTime": 120000,
"blowerTurnOffTime": 80000,
"startDelay": 10000,
"temperatureCheckInterval": 10000
}
],
"platforms": []
}
ConfigurationRelay PinsYou can change the pin to turn on and off the relay switch for the Fan, Heat and Cool setting. "fanRelayPin": 26,
"heatRelayPin": 21,
"coolRelayPin": 20, Temperature Sensor PinYou also can change the pin for the DHT22 temperature sensor. "temperatureSensorPin": 4, TimingThe system has a minimum on off time which is in miliseconds and is the minimum time it keeps the Heat or Cool turned on and off so that it does not damage the heating or cooling system by turning on and off very quickly. "minimumOnOffTime": 120000, The system also has a blowerTurnOffTime which is the time it takes to turn off the blower after Heat or Cool is turned off. "blowerTurnOffTime": 80000, The interval for checking the temperature of the room can also be set and defaults to 10 seconds. "temperatureCheckInterval": 10000 Screenshots |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论