chasenicholl / homebridge-weatherflow-tempest

WeatherFlow Tempest Homebridge Plugin
Apache License 2.0
15 stars 2 forks source link

OBS data missing #3

Closed npeach closed 1 year ago

npeach commented 1 year ago

Describe Your Problem: There are two issues that I am working through. The first is that when I create a new sensor, the humidity sensor is no longer an option. I only see Temp, Fan, and Light. If it try to manually update the json under advanced to create the humidity sensor, that doesnt work either.

The second issue is that when the API tries to connect for the first time, it returns a message that OBS data is missing.

Logs:

12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformFinished initializing platform: WeatherFlow Tempest Platform
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformTempestApi initialized.
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformLoading accessory from cache: Outside Temperature
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformLoading accessory from cache: Outside Relative Humidity
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformLoading accessory from cache: Outside Light Level
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformLoading accessory from cache: Outside Wind Speed
12/7/2022, 1:26:47 PMLaxton-HoobsWeatherFlow Tempest PlatformExecuted didFinishLaunching callback
12/7/2022, 1:26:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:26:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 1 of 30. No cached "obs" data.
12/7/2022, 1:26:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:26:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 2 of 30. No cached "obs" data.
12/7/2022, 1:26:51 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:26:51 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 3 of 30. No cached "obs" data.
12/7/2022, 1:26:55 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:26:55 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 4 of 30. No cached "obs" data.
12/7/2022, 1:26:58 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:26:58 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 5 of 30. No cached "obs" data.
12/7/2022, 1:27:02 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:02 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 6 of 30. No cached "obs" data.
12/7/2022, 1:27:07 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:07 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 7 of 30. No cached "obs" data.
12/7/2022, 1:27:14 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:14 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 8 of 30. No cached "obs" data.
12/7/2022, 1:27:21 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:21 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 9 of 30. No cached "obs" data.
12/7/2022, 1:27:29 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:29 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 10 of 30. No cached "obs" data.
12/7/2022, 1:27:38 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:38 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 11 of 30. No cached "obs" data.
12/7/2022, 1:27:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:48 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 12 of 30. No cached "obs" data.
12/7/2022, 1:27:59 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:27:59 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 13 of 30. No cached "obs" data.
12/7/2022, 1:28:11 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:28:11 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 14 of 30. No cached "obs" data.
12/7/2022, 1:28:24 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:28:24 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 15 of 30. No cached "obs" data.
12/7/2022, 1:28:39 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:28:39 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 16 of 30. No cached "obs" data.
12/7/2022, 1:28:54 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:28:54 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 17 of 30. No cached "obs" data.
12/7/2022, 1:29:10 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:29:10 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 18 of 30. No cached "obs" data.
12/7/2022, 1:29:27 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:29:27 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 19 of 30. No cached "obs" data.
12/7/2022, 1:29:45 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:29:45 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 20 of 30. No cached "obs" data.
12/7/2022, 1:30:04 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:30:04 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 21 of 30. No cached "obs" data.
12/7/2022, 1:30:24 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:30:24 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 22 of 30. No cached "obs" data.
12/7/2022, 1:30:45 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:30:45 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 23 of 30. No cached "obs" data.
12/7/2022, 1:31:08 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:31:08 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 24 of 30. No cached "obs" data.
12/7/2022, 1:31:31 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:31:31 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 25 of 30. No cached "obs" data.
12/7/2022, 1:31:55 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:31:55 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 26 of 30. No cached "obs" data.
12/7/2022, 1:32:20 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:32:20 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 27 of 30. No cached "obs" data.
12/7/2022, 1:32:46 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:32:46 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 28 of 30. No cached "obs" data.
12/7/2022, 1:33:13 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:33:13 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 29 of 30. No cached "obs" data.
12/7/2022, 1:33:41 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGResponse missing "obs" data.
12/7/2022, 1:33:41 PMLaxton-HoobsWeatherFlow Tempest PlatformWARNINGRetrying 30 of 30. No cached "obs" data.
12/7/2022, 1:34:10 PMLaxton-HoobsWeatherFlow Tempest PlatformERRORReached max API retries: 30. Stopping.
12/7/2022, 1:34:10 PMLaxton-HoobsWeatherFlow Tempest PlatformFailed to fetch initial Station Current Observations after retrying. Refusing to continue.

Plugin Config:

{ "platform": "WeatherFlowTempest", "name": "WeatherFlow Tempest Platform", "interval": 10, "token": "72685be3-d674-4023-b475-e49160a8d324", "station_id": "ST-00018457", "sensors": [ { "name": "Outside Temperature", "sensor_type": "Temperature Sensor", "value_key": "air_temperature" }, { "name": "Outside Relative Humidity", "sensor_type": "", "value_key": "relative_humidity" }, { "name": "Outside Light Level", "sensor_type": "Light Sensor", "value_key": "brightness" }, { "name": "Outside Wind Speed", "sensor_type": "Fan", "value_key": "wind_avg" } ] }

Screenshots:

image

Environment:

chasenicholl commented 1 year ago

@npeach Hi thanks for submitting this. I believe the issue is with your Station ID. ST-00018457 does not look like a valid station ID. It should be an integer.

Please go to https://tempestwx.com/settings/stations/ and click on your station. The URL should update to something like https://tempestwx.com/settings/station/<number>. That <number> is your Station ID.

Also I’ll look into the options, it should support multiple of the same type.

npeach commented 1 year ago

Facepalm! ok that worked - thank you! the only other issue I am still experiencing is that I can't set the sensor type for humidity, and so when the api pulls the data into homebridge, homekit sees it as a temp.

Is there a way to use the motion sensor for windspeed vs. the fan sensor?

thank you !!

[image: Screenshot 2022-12-08 at 2.16.13 AM.png]

On Wed, Dec 7, 2022 at 5:14 PM Chase Nicholl @.***> wrote:

@npeach https://github.com/npeach Hi thanks for submitting this. I believe the issue is with your Station ID. ST-00018457 does not look like a valid station ID. It should be an integer.

Please go to ( https://tempestwx.com/settings/stations/)[https://tempestwx.com/settings/stations/] and click on your station. The URL should update to something like https://tempestwx.com/settings/station/. That is your Station ID.

— Reply to this email directly, view it on GitHub https://github.com/chasenicholl/homebridge-weatherflow-tempest/issues/3#issuecomment-1341662954, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHLEEYV4JIV2RWNT5APKBTWMED5ZANCNFSM6AAAAAASXFPBH4 . You are receiving this because you were mentioned.Message ID: @.*** com>

chasenicholl commented 1 year ago

@npeach Great glad that worked!

I'll continue to look into the GUI issue with the sensor types but in the meantime, for sensor_type I'm noticing in your manual configuration file the humidity sensor_type is an empty string. Can you try adding the value of Humidity Sensor and restart?

I could expose a Motion Sensor Accessory. I'm thinking if I did that I could add an additional attribute trigger_point which would let you configure a wind speed you would want it to go on/off at? 🤔 The fan was simply so you could see the wind speed 0-100.

npeach commented 1 year ago

Really appreciate it! This is a great plugin :)

I can add the sensor type manually and restart. What that does is create the correct sensor, but as soon as I restart for any reason, it reverts back to a temp sensor.

on the fan - my thought was that the current sensor type showing up as a controllable fan is a bit weird and because I have real fans in my home on homekit, the display is a little awkward. Too bad homekit doesn't have a true wind speed or rain accumulation sensor type yet.

When I wrote my last note, I was considering that if wind_avg was reported as a motion event, then every time it would poll, the trigger could be 'motion' and an alert with the speed. If you have ever seen a co2 alert within homekit - something like that. But I'm not sure that is right either.

Thanks for taking the time to respond!

On Thu, Dec 8, 2022 at 8:08 AM Chase Nicholl @.***> wrote:

@npeach https://github.com/npeach Great glad that worked!

I'll continue to look into the GUI issue with the sensor types but in the meantime, for sensor_type I'm noticing in your manual configuration file the humidity sensor_type is an empty string. Can you try adding the value of Humidity Sensor and restart?

I could expose a Motion Sensor Accessory. I'm thinking if I did that I could add an additional attribute trigger_point which would let you configure a wind speed you would want it to go on/off at? 🤔

— Reply to this email directly, view it on GitHub https://github.com/chasenicholl/homebridge-weatherflow-tempest/issues/3#issuecomment-1342711093, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHLEE7WRBIWXTZATMZGFH3WMHMTBANCNFSM6AAAAAASXFPBH4 . You are receiving this because you were mentioned.Message ID: @.*** com>

chasenicholl commented 1 year ago

Thanks!

I can add the sensor type manually and restart. What that does is create the correct sensor, but as soon as I restart for any reason, it reverts back to a temp sensor.

Very odd I can't reproduce this, at least not yet. What browser are you using and also what version of homebridge-config-ui-x are you running? Would you mind trying it in a different browser / make sure you are using the latest version etc?

Yes indeed its a shame Homekit doesn't support any Accessories that could be in your yard/outside, the options are very inside your Home orientated.

My little work around is I have an "Outside" room that a throw everything outside in and remove the info from my Home summary so it doesn't effect the averages etc.

🤔 I'd agree having an alert for every wind speed change would become too repetitive, so maybe not the right fit.

However, I felt inspired by your idea and I do plan to expose a Motion Sensor that lets you configure at which wind speed to trigger it. I could see this being useful for warning you of a storm, especially at night for say a Tornado/Huricane warning. e.g. You get a 80mph gust of wind, then you could trigger a home alarm.

I'll keep having a think about what accessories could be better used to display windspeed. 🤔

chasenicholl commented 1 year ago

Closing please respond if https://github.com/chasenicholl/homebridge-weatherflow-tempest/releases/tag/v2.0.0 addresses drop down menu issue. Thank you!