You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding the temperature sensor to my devices like follows:
thermometer_info := model.Info{
Name: "Netatmo",
SerialNumber: "001",
Manufacturer: "Netatmo",
Model: "Thermostaty",
}
model_thermometer := accessory.NewTemperatureSensor(thermometer_info, 10, 0, 100, 1)
But this will obviously give me 10°C as the temperature. Is there a func called when I access the sensor device via homekit? I would put the http call there. Thanks!
The text was updated successfully, but these errors were encountered:
I'm the guy on twitter who asked for the netamo integration :)
I'm trying to integrate a temperature sensor. I can access the temperature via simple http requests. Can I adapt the thermometer class for this?
https://github.com/brutella/hc/blob/master/model/accessory/thermometer.go
But this will obviously give me 10°C as the temperature. Is there a func called when I access the sensor device via homekit? I would put the http call there. Thanks!
The text was updated successfully, but these errors were encountered: