naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
311 stars 61 forks source link

[Weatherflow Tempest] Report additional failed sensors #279

Closed jmissig closed 3 months ago

jmissig commented 5 months ago

This bug is to track the detection and reporting of failure of additional Tempest sensors. Opening per request from @dacarson

homebridge-weather-plus v3.3.2 Node.js v20.9.0 Homebridge v1.7.0

Output from a Tempest with a failed air pressure sensor.

[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Updating weather from Weatherflow Tempest
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Current Conditions for station 'Weather': {
  AirPressure: null,
  Condition: 'Unknown',
  ConditionCategory: 0,
  Humidity: 78.17,
  ObservationStation: 'ST-000XXXXX',
  ObservationTime: '16:31:14',
  Rain1h: 0,
  RainBool: false,
  RainDay: 0,
  SolarRadiation: 40,
  Temperature: 10.56,
  TemperatureApparent: 9.32000000000005,
  TemperatureMin: 5.46,
  DewPoint: 6.920000000000016,
  UVIndex: 0.1,
  WindDirection: 'WSW',
  WindSpeed: 0.01,
  WindSpeedMax: 1.55,
  BatteryLevel: 85.79710144927535,
  BatteryIsCharging: false,
  WindSpeedLull: 0,
  LightningStrikes: 0,
  LightningAvgDistance: 0,
  LightLevel: 4793,
  TemperatureWetBulb: 8.285863945455644,
  SkySensorBatteryLevel: 100,
  SkySerialNumber: 'ST-000XXXXX',
  SkyFirmware: 165,
  AirSensorBatteryLevel: 100,
  AirSerialNumber: 'AR-',
  AirFirmware: '1.0',
  LightLevelSensorFail: 0,
  HumiditySensorFail: 0,
  TemperatureSensorFail: 0
}
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting AirPressure to null
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting ConditionCategory to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting Humidity to 78.17
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting ObservationStation to ST-000XXXXX
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting ObservationTime to 16:31:14
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting Rain1h to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting RainBool to false
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting RainDay to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting SolarRadiation to 40
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting Temperature to 10.56
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting TemperatureMin to 5.46
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting UVIndex to 0.1
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting WindDirection to WSW
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting WindSpeed to 0.01
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting WindSpeedMax to 1.55
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting WindSpeedLull to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting LightningStrikes to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting LightningAvgDistance to 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting LightLevel to 4793
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting BatteryLevel to 85.79710144927535
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting BatteryIsCharging to false
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting DewPoint to 6.920000000000016
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting TemperatureApparent to 9.32000000000005
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Setting TemperatureWetBulb to 8.285863945455644
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Saving history entry
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] **Fakegato-timer: addData  Weather {
  time: 1705105877.401,
  temp: 10.600000000000001,
  pressure: null,
  humidity: 78
}  immediate:  false
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting AirPressure: null
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting ConditionCategory: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting Humidity: 78.17
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting ObservationStation: ST-000XXXXX
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting ObservationTime: 16:31:14
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting Rain1h: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting RainBool: false
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting RainDay: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting SolarRadiation: 40
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting Temperature: 10.56
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting TemperatureMin: 5.46
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting UVIndex: 0.1
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting WindDirection: WSW
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting WindSpeed: 0.01
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting WindSpeedMax: 1.55
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting WindSpeedLull: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting LightningStrikes: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting LightningAvgDistance: 0
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting LightLevel: 4793
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting BatteryLevel: 85.79710144927535
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting BatteryIsCharging: false
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting DewPoint: 6.920000000000016
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting TemperatureApparent: 9.32000000000005
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Persisting TemperatureWetBulb: 8.285863945455644
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Server got: hub_status
[1/12/2024, 4:31:17 PM] [homebridge-weather-plus] Server got: hub_status
[1/12/2024, 4:31:18 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:18 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:21 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:21 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:24 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:24 PM] [homebridge-weather-plus] Server got: rapid_wind
[1/12/2024, 4:31:25 PM] [homebridge-weather-plus] Server got: device_status
[1/12/2024, 4:31:25 PM] [homebridge-weather-plus] Temperature Sensor Fail: 0, Humidity Sensor Fail: 0, Light Level Sensor Fail: 0
[1/12/2024, 4:31:25 PM] [homebridge-weather-plus] Server got: obs_st
[1/12/2024, 4:31:25 PM] [homebridge-weather-plus] JSON Parse Exception: {"serial_number":"ST-000XXXXX","type":"obs_st","hub_sn":"HB-000XXXXX","obs":[[1705105884,0.00,0.18,1.00,236,3,null,10.55,78.20,4841,0.11,40,0.000000,0,0,0,2.703,1]],"firmware_revision":165} ReferenceError: accumulation is not defined
[1/12/2024, 4:31:25 PM] [homebridge-weather-plus] Server got: device_status
dacarson commented 5 months ago

Tempest reports the state of all sensors. If there is an issue, it should be reported through to the user.

dacarson commented 5 months ago

Should report a general failures through HomeKit: https://developer.apple.com/documentation/homekit/hmcharacteristictypestatusfault