Closed notstephen closed 5 years ago
Can you run homebridge in DEBUG mode and share the log showing what is returned from the sensor.
I’m guessing that the plugin is not recognizing the sensor data correctly.
On May 13, 2019, at 1:15 AM, Stephen notifications@github.com wrote:
Just deployed this both sensors in homekit show as 32F, which is the temperature of the refrigerator. The freezer sensor on the Acurite shows as being 1F while HomeKit reports 32F.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I'm seeing a lot of this, which has only begun to appear since adding the sensor:
ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024
Homekit now shows both sensors as attached:
The DEBUG mode will log the full message from the sensor. It is likely your sensor is sending a slightly different message than mine, hence the issue.
On May 13, 2019, at 2:46 PM, Stephen notifications@github.com wrote:
I'm seeing a lot of this, which has only begun to appear since adding the sensor:
ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024 ERROR: unknown unit - 5222 ERROR: unknown unit - 5222 ERROR: unknown unit - 10024 ERROR: unknown unit - 10024
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Ok, looks like you're expecting celcius?
acurite Message {"time" : "2019-05-13 12:28:55", "model" : "Acurite 986 Sensor", "id" : 10024, "channel" : "1R", "temperature_C" : 1.667, "battery" : "OK", "status" : 0} +0ms
ERROR: unknown unit - 10024
acurite Message {"time" : "2019-05-13 12:28:55", "model" : "Acurite 986 Sensor", "id" : 10024, "channel" : "1R", "temperature_C" : 1.667, "battery" : "OK", "status" : 0} +3ms
ERROR: unknown unit - 10024
acurite Message {"time" : "2019-05-13 12:28:59", "model" : "Acurite 986 Sensor", "id" : 5222, "channel" : "2F", "temperature_C" : -16.667, "battery" : "OK", "status" : 0} +4s
ERROR: unknown unit - 5222
acurite Message {"time" : "2019-05-13 12:28:59", "model" : "Acurite 986 Sensor", "id" : 5222, "channel" : "2F", "temperature_C" : -16.667, "battery" : "OK", "status" : 0} +2ms
ERROR: unknown unit - 5222
Looking back at the code from last year, I think I made a mistake in the instructions. Try this for a config.json entry
{
"platform": "Acurite",
"name": "Acurite",
"devices": {
"10024": "Fridge",
"5222": "Freezer"
}
I think at the last minute I changed it to use the ID field instead of CHANNEL, and never updated the instructions.
Also, homekit uses Celsius internally, and will display in the home app based on your iPhone settings.
Ok, yes that fixes it. Many thanks!
Now to try the fun bit, getting the data into Google.
Just deployed this both sensors in homekit show as 32F, which is the temperature of the refrigerator. The freezer sensor on the Acurite shows as being 1F while HomeKit reports 32F.