DMBlakeley/homebridge-awair2

Awair Temp displayed in Celsius in Home (other accessories display in Fahrenheit as expected)

Closed this issue · 6 comments

jm3 commented

Describe Your Problem:

I am in the US where Fahrenheit is the expected default.

The Awair Sensor, via the Homebridge plugin, is reporting a temp in (what looks like) Celsius — 32º. There's no setting in the plugin to change this. My other Homebridge accessories display their temp using Fahrenheit, either via an explicit setting, or automatically, so this appears to be something specific to this plugin — my other accessories display an expected temp in Fº, and the physical Awair displays an expected temp in Fº, but the display in the Home apps and in Homebridge web UI are this weird, out of range 32º value.

Plugin Config:

{
  "token": "DEADBEEF.CAFEBABE.DECAFBAD",
  "userType": "users/self",
  "airQualityMethod": "awair-aqi",
  "endpoint": "15-min-avg",
  "limit": 1,
  "carbonDioxideThreshold": 1000,
  "carbonDioxideThresholdOff": 800,
  "occupancyDetection": false,
  "occupancyRestart": false,
  "logging": false,
  "verbose": false,
  "development": false,
  "platform": "Awair2"
},

Screenshots:

Environment:

  • Plugin Version: homebridge-awair2 v5.10.4
  • Homebridge Version: v1.6.0
  • Node.js Version: v18.13.0
  • NPM Version: 8.19.3
  • Operating System: hb-service / Synology NAS
  • Homebridge UI Settings are set to Fahrenheit
  • iPhone and Mac are set to US region settings (i.e. everything else displays in Fahrenheit)
  • Latest plugin version
  • Latest Homebridge version

My other Homebridge accessories —e.g. smart thermostat, car — display their temp using Fahrenheit, either via an explicit setting, or automatically.

Home summary showing 30º

Hi @jm3,

Thanks for reaching out. I am also in the U.S. and temperatures are displayed in F according to Homebridge and HomeKit settings. The Awair plugin does not have a setting to override.

What I find unusual is the temperature of 32 degrees and 0% humidity. 32 degrees is possible but 0% humidity is highly unlikely. Seems to indicate that your data is not being read from the Awair servers. Would you first check that the Awair device is being read correctly by the Awair app on your iPhone. If yes, could you please turn on "logging" and "verbose" and share the initial boot logs with me? There may be some information which you will want to redact before sharing.

Thanks,
Doug

jm3 commented

Good point, you're right — the zero 0% humidity is a good indicator that things aren't what they seem from the Homebridge plugin's POV. Will take me a minute to grab the requested verbose logs, but, in the meantime / fwiw, the actual Awair hardware device reports measurements within expected tolerance both on display and in the iOS app.

jm3 commented

Wow — I changed nothing, opened Homebridge web UI to look for the requested logs, and now the Awair temps and humidity display within expected Fahrenheit (and humidity) ranges.

I changed exactly nothing(!) 🙃

Home app showing summary of Awair metrics

Homebridge web app showing summary of Awair metrics

If you just registered your device with Awair it can take several hours before the data starts to populate. I did not receive a notice from Awair that they were doing any maintenance this past weekend but that could also explain the issue.

Don't hesitate to reach out if you have other issues.

jm3 commented

For anyone who comes after and just scrolls to the bottom to find the fix — my Awair Homebridge setup was not reporting in Celsius, but was instead returning no result. The 32º was a "zero" value (in Celsius!) correctly converted to Fahrenheit, because the device or Awair's cloud service was (unexpectedly) returning zero / no data. :)

@jm3, thanks for the additional clarification to watch out for "zero" values as an indication that data for your device is offline with the Awair cloud. This usually corrects after a few hours.