From 276c552672030fedc2a6773c3d4cd3248ef6ab06 Mon Sep 17 00:00:00 2001 From: Marco Gosselink Date: Sat, 11 Nov 2023 16:27:23 +0100 Subject: [PATCH] Updated readme and changed minimum interval to 30 seconds --- README.md | 148 +++++++++--------- .../davis_vantage/config_flow.py | 2 +- custom_components/davis_vantage/const.py | 2 +- 3 files changed, 76 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index 4f4f25d..6342e6b 100755 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is a custom integration for the Davis Vantage Pro2 and Vue. Either use a serial port or use an ip adress to connect to your device. Tested with the Vantage Pro 2 combined with a Davis WeatherLink 6510SER serial port data logger (connected via a ser2usb converter to the ha server) and with a Vantage Vue combined with a WeatherLink IP. Probably works with the WeatherLink 6510USB as well. Other models unsure. +Every readout takes up about 20-25 seconds. So intervals smaller than 30 seconds are not available. + ## Installation Via HACS: @@ -19,128 +21,126 @@ During the setup of the integration the serial port or the hostname of the weath Example network host: 192.168.0.18:1111 -## What to expect +## What to expect? The following entities will be created: - Barometric Pressure: - Current barometric pressure - Barometric Pressure High (Day): - - Today's highest barometric pressure + - Today's highest barometric pressure +- Barometric Pressure High Time: + - Time of today's highest barometric pressure - Barometric Pressure Low (Day): - - Today's lowest barometric pressure + - Today's lowest barometric pressure +- Barometric Pressure Low Time: + - Time of today's lowest barometric pressure - Barometric Trend: - - Current barometric trend, being Stable, Rising Slowly, Rising Rapidly, Falling Slowly, Falling Rapidly + - Current barometric trend, being Stable, Rising Slowly, Rising Rapidly, Falling Slowly, Falling Rapidly - Dew Point: - - Current dev point + - Current dev point +- Dew Point High (Day) + - Today's highest dew point +- Dew Point High Time + - Time of today's highest dew point +- Dew Point Low (Day) + - Today's lowest dew point +- Dew Point Low Time + - Time of today's lowest dew point - Feels Like: - - Current feels like temperature + - Current feels like temperature - Forecast Rule: - - Current forecast rule + - Current forecast rule - Heat Index: - - Current heat index + - Current heat index - Humidity: - - Current outside relative humidify + - Current outside relative humidify - Humidity High (Day): - - Today's highest outside relative humididy + - Today's highest outside relative humididy - Humidity Low (Day): - - Today's lowest outside relative humidity + - Today's lowest outside relative humidity - Is Raining: - - True if it's currently raining (based on rain rate) + - True if it's currently raining (based on rain rate) - Rain (Day): - - Today's total precipitation + - Today's total precipitation - Rain (Month): - - This months total precipitation + - This months total precipitation - Rain (Year): - - This year total precipitation + - This year total precipitation - Rain Rate: - - Current rain rate + - Current rain rate - Rain Rate (Day): - - Today's highest rain rate + - Today's highest rain rate +- Rain Rate Time: + - Time of today's highest rain rate (or Unknown if no rain) - Solar Radiation: - - Current solar radiation + - Current solar radiation - Solar Radiation (Day): - - Today's highest solar radiation + - Today's highest solar radiation +- Solar Radiation Time: + - Time of today's highest solar radiation (or Unknown if dark day) - Temperature: - - Current outside temperature + - Current outside temperature - Temperature High (Day): - - Today's highest outside temperature + - Today's highest outside temperature +- Temperature High Time: + - Time of today's highest outside temperature - Temperature Low (Day): - - Today's lowest outside temperature + - Today's lowest outside temperature +- Temperature Low Time: + - Time of today's lowest outside temperature - UV Level: - - Current UV level + - Current UV level - UV Level (Day): - - Today's highest UV level + - Today's highest UV level +- UV Level Time: + - Time of today's highest UV level - Wind Chill: - - Current wind chill + - Current wind chill - Wind Direction: - - Current wind direction in degrees + - Current wind direction in degrees - Wind Direction Rose: - - Current wind direction in cardinal directions (N, NE, E, etc.) + - Current wind direction in cardinal directions (N, NE, E, etc.) - Wind Gust: - - Current wind gust, based on the highest value within an Archive Interval + - Current wind gust, based on the highest value within an Archive Interval - Wind Gust (Day): - - Today's highest wind gust + - Today's highest wind gust +- Wind Gust Time: + - Time of today's highest wind gust - Wind Speed: - - Current wind speed + - Current wind speed - Wind Speed (Avarage): - - 10 minutes average wind speed + - 10 minutes average wind speed - Wind Speed (Bft): - - 10 minutes average wind speed in Beaufort -- Extra Humidity 1: - - Current humidity extra sensor 1 -- Extra Humidity 2: - - Current humidity extra sensor 2 -- Extra Humidity 3: - - Current humidity extra sensor 3 -- Extra Humidity 4: - - Current humidity extra sensor 4 -- Extra Humidity 5: - - Current humidity extra sensor 5 -- Extra Humidity 6: - - Current humidity extra sensor 6 -- Extra Humidity 7: - - Current humidity extra sensor 7 -- Extra Temperature 1: - - Current temperature extra sensor 1 -- Extra Temperature 2: - - Current temperature extra sensor 2 -- Extra Temperature 3: - - Current temperature extra sensor 3 -- Extra Temperature 4: - - Current temperature extra sensor 4 -- Extra Temperature 5: - - Current temperature extra sensor 5 -- Extra Temperature 6: - - Current temperature extra sensor 6 -- Extra Temperature 7: - - Current temperature extra sensor 7 + - 10 minutes average wind speed in Beaufort +- Extra Humidity 1-7: + - Current humidity extra sensor 1-7 +- Extra Temperature 1-7: + - Current temperature extra sensor 1-7 - Forecast Icon: - - Current forecast icon + - Current forecast icon number - Humidity (Inside): - - Current inside relative humidity + - Current inside relative humidity - Temperature (Inside): - - Current inside temperature + - Current inside temperature Diagnostic entities: - Archive Interval: - - Archive data interval (usual around 10 minutes) -- High/Low Values Up-to-Date: - - Boolean sensor indicating if the last fetch of the high/low values succeeded + - Archive data interval (usual around 10 minutes) - Last Error Message: - - Last error message, if no error then empty + - Last error message, if no error then empty - Last Fetch Time: - - Last fetch time + - Last fetch time - Battery Voltage: - - Current battery voltage + - Current battery voltage - Cardinal Directions: - - Number of cardinal direction 8 or 16 (set during setup) + - Number of cardinal direction 8 or 16 (set during setup) - Last Error Time: - - Last error time + - Last error time - Last Success Time: - - Last success time + - Last success time - Rain Collector: - - Current rain collector setup (0.01" or 0.2 mm) + - Current rain collector setup (0.01" or 0.2 mm) The entity information is updated every 30 seconds (default or other value is choosen otherwise during setup). @@ -148,4 +148,4 @@ The entity information is updated every 30 seconds (default or other value is ch During first setup the communication to the weather station can be a bit tricky, resulting in an error saying the device didn't communicate. Please try again to set it up (can take up to 5 times). -Determining Wind Gust and High/Low values are done by reading archive data of the weather station. Unfortunately this part of the library function is a bit unstable. If the integration was not able to read the archive data the sensor "High/Low Value Up-to-Date" becomes false. \ No newline at end of file +Determining Wind Gust value is done by reading archive data of the weather station. Unfortunately this part of the library function is a bit unstable. \ No newline at end of file diff --git a/custom_components/davis_vantage/config_flow.py b/custom_components/davis_vantage/config_flow.py index 7a5cb8f..8fe9bd5 100755 --- a/custom_components/davis_vantage/config_flow.py +++ b/custom_components/davis_vantage/config_flow.py @@ -158,7 +158,7 @@ async def async_step_setup_other_info( vol.Required(CONFIG_STATION_MODEL): vol.In(list_of_station_models), vol.Required( CONFIG_INTERVAL, - default=DEFAULT_SYNC_INTERVAL): vol.All(int, vol.Range(min=5) # type: ignore + default=DEFAULT_SYNC_INTERVAL): vol.All(int, vol.Range(min=30) # type: ignore ), vol.Required(CONFIG_RAIN_COLLECTOR): vol.In(list_of_rain_collector), vol.Required(CONFIG_WINDROSE8): bool, diff --git a/custom_components/davis_vantage/const.py b/custom_components/davis_vantage/const.py index 700aab6..a77bd02 100755 --- a/custom_components/davis_vantage/const.py +++ b/custom_components/davis_vantage/const.py @@ -4,7 +4,7 @@ DOMAIN = "davis_vantage" MANUFACTURER = "Davis" MODEL = "Vantage Pro2/Vue" -VERSION = "1.1.0" +VERSION = "1.1.1" DEFAULT_SYNC_INTERVAL = 30 # seconds DEFAULT_NAME = NAME