homebridge-temperature-fileSimulate a temperature sensor from file

联合创作 · 2023-09-26 09:20

homebridge-temperature-file

This is a plugin for homebridge which makes it possible to create a temperature sensor in HomeKit via file.

Why via file?

When you have a DHT-sensor, you need sudo to read from it. I don't want to run homebridge as sudo, so I'm having a cronjob, which writes every n seconds to a file and read from it from homebridge.

Example config

{
  "accessory": "TemperatureFile",
  "name": "Temperature-sensor",
  "description": "The temperature sensor in the bedroom",
  "file_path": "/home/pi/dht/temp"
}
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报