michaelahern / homebridge-airthings

A Homebridge plugin for Airthings air quality monitors via the Airthings Consumer API.
ISC License
38 stars 6 forks source link

400 Bad Request #22

Closed davidjbradshaw closed 1 year ago

davidjbradshaw commented 1 year ago

Just trying to set this up and I'm getting 400 bad request. All the config fields where cut and pasted from the dashboard and I've checked them three times now. So I'm at a bit of a loss as to what to do next to get this to work.

[23/12/2022, 13:36:04] [Airthings Device] Launched child bridge with PID 806974
[23/12/2022, 13:36:05] Registering accessory 'homebridge-airthings.Airthings'
[23/12/2022, 13:36:05] [Airthings Device] Loaded homebridge-airthings v0.8.0 child bridge successfully
[23/12/2022, 13:36:05] Loaded 0 cached accessories from cachedAccessories.0EA3EB7E922D.
[23/12/2022, 13:36:05] [Airthings View Plus] Device Model: View Plus
[23/12/2022, 13:36:05] [Airthings View Plus] Serial Number: 2960034246
[23/12/2022, 13:36:05] [Airthings View Plus] Radon Leak Sensor: Enabled
[23/12/2022, 13:36:05] [Airthings View Plus] Radon Leak Threshold: 150 Bq/m³
[23/12/2022, 13:36:05] [Airthings View Plus] Refresh Interval: 150s
[23/12/2022, 13:36:05] [Airthings View Plus] Token Scope: read:device:current_values 
[23/12/2022, 13:36:05] Homebridge v1.6.0 (HAP v0.11.0) (Airthings Device) is running on port 50459.
[23/12/2022, 13:36:05] [Airthings View Plus] Response Error: 400 Bad Request
[23/12/2022, 13:36:05] [homebridge-airthings] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://homebridge.io/w/JtMGR for more info.
davidjbradshaw commented 1 year ago

I just deleted the bridge and recreated it and it sprang into life.

Strange, but it is working now.