NorthernMan54 / homebridge-acurite-temperature

Fridge and Freezer temperature sensor using a RTL-SDR and the Acurite 986 Fridge/Freezer temperature sensor
MIT License
5 stars 0 forks source link

Both sensors return the temperature of the refrigerator sensor #5

Closed notstephen closed 5 years ago

notstephen commented 5 years ago

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.

NorthernMan54 commented 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.

notstephen commented 5 years ago

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: IMG_5695

NorthernMan54 commented 5 years ago

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.

notstephen commented 5 years ago

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
NorthernMan54 commented 5 years ago

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.

NorthernMan54 commented 5 years ago

Also, homekit uses Celsius internally, and will display in the home app based on your iPhone settings.

notstephen commented 5 years ago

Ok, yes that fixes it. Many thanks!

Now to try the fun bit, getting the data into Google.