OK, I’ll try to help, but I am also a beginner with all of this. This is based on a Vantage Vue with a “base station” but it is 100% local and doesn’t involve any subscriptions.
First off, do you know what the local IP address of your Davis base station is? Mine is 192.168.2.101 (yours will be different), but if I type http://192.168.2.101/v1/current_conditions
into a browser it returns the following text:
{"data":{"did":"001D0A7xxxx","ts":1623772738,"conditions":[{"lsid":352807,"data_structure_type":1,"txid":1,"temp": 75.9,"hum":59.3,"dew_point": 60.7,"wet_bulb": 64.6,"heat_index": 76.8,"wind_chill": 75.9,"thw_index": 76.8,"thsw_index":null,"wind_speed_last":2.43,"wind_dir_last":86,"wind_speed_avg_last_1_min":1.31,"wind_dir_scalar_avg_last_1_min":69,"wind_speed_avg_last_2_min":1.12,"wind_dir_scalar_avg_last_2_min":72,"wind_speed_hi_last_2_min":2.62,"wind_dir_at_hi_speed_last_2_min":80,"wind_speed_avg_last_10_min":1.37,"wind_dir_scalar_avg_last_10_min":66,"wind_speed_hi_last_10_min":3.43,"wind_dir_at_hi_speed_last_10_min":57,"rain_size":2,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":0,"rain_storm":0,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":7,"rainfall_year":1520,"rain_storm_last":6,"rain_storm_last_start_at":1622789581,"rain_storm_last_end_at":1622934061},{"lsid":352806,"data_structure_type":4,"temp_in": 80.9,"hum_in":49.7,"dew_point_in": 60.4,"heat_index_in": 81.3},{"lsid":352805,"data_structure_type":3,"bar_sea_level":30.124,"bar_trend":-0.040,"bar_absolute":29.834}]},"error":null}
I think the “data_structure_type”:1 stuff is from the remote sensor, and the “data_structure_type”:4 stuff is from the base station.
Knowing that this data is available on my LAN, I then added the following to my config.yaml
file; it’s not pretty or neat, and some of it is tailored to my preferences, but it might get you started?
- name: Weather Station
platform: rest
resource: 'http://192.168.2.101/v1/current_conditions'
json_attributes:
- data
value_template: 'Vantage Pro'
- platform: template
sensors:
temp:
friendly_name: 'Temperature'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["temp"] | round|int }}'
hum:
friendly_name: 'Humidity'
device_class: humidity
unit_of_measurement: "%"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["hum"] | round|int }}'
dew_point:
friendly_name: 'Dew Point'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["dew_point"] }}'
wet_bulb:
friendly_name: 'Wet Bulb'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["wet_bulb"] }}'
heat_index:
friendly_name: 'Heat Index'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["heat_index"] }}'
wind_chill:
friendly_name: 'Wind Chill'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["wind_chill"] | round|int }}'
thw_index:
friendly_name: 'THW Index'
device_class: temperature
unit_of_measurement: "°F"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["thw_index"] }}'
wind_speed_last:
friendly_name: 'Wind Speed Last'
device_class: temperature
unit_of_measurement: "mph"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["wind_speed_last"] | round|int }}'
wind_direction_last:
friendly_name: 'Wind Direction Last'
# device_class: temperature
unit_of_measurement: "º"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["wind_dir_last"] }}'
wind_direction_last_compass:
friendly_name: 'Wind Direction Last Compass'
# device_class: temperature
# unit_of_measurement: "º"
value_template: >
{% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %}
{% set degree = state_attr("sensor.weather_station", "data")["conditions"][0]["wind_dir_last"]|float %}
{{ direction[((degree+11.25)/22.5)|int] }}
rainfall_last_15_min:
friendly_name: 'Rainfall Last 15 mins'
# device_class: temperature
unit_of_measurement: "mm"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["rainfall_last_15_min"] }}'
rainfall_last_60_min:
friendly_name: 'Rainfall Last 60 mins'
# device_class: temperature
unit_of_measurement: "mm"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["rainfall_last_60_min"] }}'
rainfall_last_24_hr:
friendly_name: 'Rainfall Last 24 hours'
# device_class: temperature
unit_of_measurement: "mm"
value_template: '{{ state_attr("sensor.weather_station", "data")["conditions"][0]["rainfall_last_24_hr"] }}'
Having written all of the above, I see that all of my Dashboard inputs are showing as Unavailable - but they have been working 24/7 for several weeks. So I need to try to dig up why. Oh The Joys of HA!
Good Luck!