Skip to content

Commit

Permalink
Merge pull request #2 from MarcoGos/beta
Browse files Browse the repository at this point in the history
Added high/low values and wind gust
  • Loading branch information
MarcoGos authored Nov 10, 2023
2 parents 5adc02f + 1a66907 commit b80a741
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 81 deletions.
127 changes: 122 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,133 @@ During the setup of the integration the serial port or the hostname of the weath

Example network host: 192.168.0.18:1111

![Setup](/assets/setup.png)

## What to expect

The following sensors will be registered:
The following entities will be created:

- Barometric Pressure:
- Current barometric pressure
- Barometric Pressure High (Day):
- Today's highest barometric pressure
- Barometric Pressure Low (Day):
- Today's lowest barometric pressure
- Barometric Trend:
- Current barometric trend, being Stable, Rising Slowly, Rising Rapidly, Falling Slowly, Falling Rapidly
- Dew Point:
- Current dev point
- Feels Like:
- Current feels like temperature
- Forecast Rule:
- Current forecast rule
- Heat Index:
- Current heat index
- Humidity:
- Current outside relative humidify
- Humidity High (Day):
- Today's highest outside relative humididy
- Humidity Low (Day):
- Today's lowest outside relative humidity
- Is Raining:
- True if it's currently raining (based on rain rate)
- Rain (Day):
- Today's total precipitation
- Rain (Month):
- This months total precipitation
- Rain (Year):
- This year total precipitation
- Rain Rate:
- Current rain rate
- Rain Rate (Day):
- Today's highest rain rate
- Solar Radiation:
- Current solar radiation
- Solar Radiation (Day):
- Today's highest solar radiation
- Temperature:
- Current outside temperature
- Temperature High (Day):
- Today's highest outside temperature
- Temperature Low (Day):
- Today's lowest outside temperature
- UV Level:
- Current UV level
- UV Level (Day):
- Today's highest UV level
- Wind Chill:
- Current wind chill
- Wind Direction:
- Current wind direction in degrees
- Wind Direction Rose:
- Current wind direction in cardinal directions (N, NE, E, etc.)
- Wind Gust:
- Current wind gust, based on the highest value within an Archive Interval
- Wind Gust (Day):
- Today's highest wind gust
- Wind Speed:
- Current wind speed
- Wind Speed (Avarage):
- 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
- Forecast Icon:
- Current forecast icon
- Humidity (Inside):
- Current inside relative humidity
- Temperature (Inside):
- Current inside temperature

![Sensors](/assets/sensors.png)
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
- Last Error Message:
- Last error message, if no error then empty
- Last Fetch Time:
- Last fetch time
- Battery Voltage:
- Current battery voltage
- Cardinal Directions:
- Number of cardinal direction 8 or 16 (set during setup)
- Last Error Time:
- Last error time
- Last Success Time:
- Last success time
- Rain Collector:
- Current rain collector setup (0.01" or 0.2 mm)

The sensor information is updated every 30 seconds.
The entity information is updated every 30 seconds (default or other value is choosen otherwise during setup).

## Known problems

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.
6 changes: 5 additions & 1 deletion custom_components/davis_vantage/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.helpers.entity import EntityCategory

from .const import DEFAULT_NAME, DOMAIN
from .coordinator import DavisVantageDataUpdateCoordinator

DESCRIPTIONS: list[BinarySensorEntityDescription] = [
BinarySensorEntityDescription(key="IsRaining", name="Is Raining")
BinarySensorEntityDescription(
key="IsRaining",
name="Is Raining"
)
]


Expand Down
Loading

0 comments on commit b80a741

Please sign in to comment.