ThisisapluginforhomebridgewhichmakesitpossibletocreateatemperaturesensorinHomeKitviafile.
Whyviafile?WhenyouhaveaDHT-sensor,youneedsudotoreadfromit.Idon'twanttorunhomebridgeassudo,soI'mhavingacronjob,whichwriteseverynsecondstoafileandreadfromitfromhomebridge.
Exampleconfig{"accessory":"TemperatureFile","name":"Temperature-sensor","description":"Thetemperaturesensorinthebedroom","file_path":"/home/pi/dht/temp"}
评论