legotheboss / YouTube-files

Files for QuickPi tutorials
https://www.youtube.com/QuickPie
109 stars 40 forks source link

18b20 sensor in homekit? #34

Closed lisergio closed 6 years ago

lisergio commented 6 years ago

Is it possible to send by mqtt only the value of the temperature read by the tasmota and the sensor 18b20 to the homekit server? I have tried to read the value sent by tasmota, but send: {"Time":"2018-04-02T17:09:50","DS18B20":{"Temperature":21.9},"TempUnit":"C"} and it is not possible to read only the temperature. thanks

legotheboss commented 6 years ago

Yes, it is completely possible. In SonoffTemperature_accessory.js, replace line 4 to say:

Original var sensorType = 'DHT22';

New var sensorType = 'DS18B20';

lisergio commented 6 years ago

Thanks!