This is the data i get from the weatherlink.(below config file) I have found that anything above line Data_structure_type 4 works but an y data belowdata_structure_type 4 brings back 0. what does the data structure mean and how do i get the pressure to work
This is my config file
sensor:
- name: davis_vantage_vue_curr
platform: rest
resource: ‘http://192.168.1.72/v1/current_conditions’
json_attributes:- data
value_template: ‘Vantage vue’
- data
- platform: template
sensors:
temp:
friendly_name: ‘Temperature’
device_class: temperature
unit_of_measurement: “°F”
value_template: ‘{{ state_attr(“sensor.davis_vantage_vue_curr”, “data”)[“conditions”][0][“temp”] }}’
hum:
friendly_name: ‘Humidity’
device_class: humidity
unit_of_measurement: “%”
value_template: ‘{{ state_attr(“sensor.davis_vantage_vue_curr”, “data”)[“conditions”][0][“hum”] }}’
pressure:
friendly_name: ‘Pressure’
device_class: pressure
unit_of_measurement: “Hg”
value_template: ‘{{ state_attr(“sensor.davis_vantage_vue_curr”, “data”)[“conditions”][0][“bar_absolute”] }}’
did: 001D0A71173A
ts: 1612045164
conditions:
- lsid: 287734
data_structure_type: 1
txid: 1
temp: 37.9
hum: 88.3
dew_point: 34.7
wet_bulb: 36.4
heat_index: 37.9
wind_chill: 32.3
thw_index: 32.3
thsw_index: null
wind_speed_last: 5.37
wind_dir_last: 34
wind_speed_avg_last_1_min: 7.75
wind_dir_scalar_avg_last_1_min: 57
wind_speed_avg_last_2_min: 8.5
wind_dir_scalar_avg_last_2_min: 53
wind_speed_hi_last_2_min: 14.37
wind_dir_at_hi_speed_last_2_min: 71
wind_speed_avg_last_10_min: 7.43
wind_dir_scalar_avg_last_10_min: 52
wind_speed_hi_last_10_min: 15.31
wind_dir_at_hi_speed_last_10_min: 23
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: 101
rain_storm: 310
rain_storm_start_at: 1611682621
solar_rad: null
uv_index: null
rx_state: 0
trans_battery_flag: 0
rainfall_daily: 101
rainfall_monthly: 968
rainfall_year: 968
rain_storm_last: 10
rain_storm_last_start_at: 1611487081
rain_storm_last_end_at: 1611666061 - lsid: 287733
data_structure_type: 4
temp_in: 79.3
hum_in: 30.9
dew_point_in: 46
heat_index_in: 77.4 - lsid: 287732
data_structure_type: 3
bar_sea_level: 29.566
bar_trend: 0.067
bar_absolute: 29.258