siku2 / hass-weatherlink

Home Assistant integration for Davis Instruments' WeatherLink and AirLink
MIT License
27 stars 7 forks source link

Leaf temperatures are recorded as soil temperatures #61

Open WernerKr opened 7 months ago

WernerKr commented 7 months ago

I have a Leaf station (txid:7) with 2 temperature sensors and a Soil station (txid:8) with 4 temperature sensors. The Leaf Station's two temperature sensors are displayed as Soil Station's Temp1 and Temp2 and the Soil Station's Temp1 and Temp2 values are not displayed. Temp3 and Temp4 are correctly displayed as soil temperature values. Is it possible to differentiate between leaf and soil stations so that the temperature sensors are assigned correctly?

{"data":{"did":"001D0A71011A","ts":1710957455,"conditions":[{"lsid":227805, ... "data_structure_type":2,"txid":7,"temp_1": 43.6,"temp_2": 144.1,"temp_3":null,"temp_4":null,"moist_soil_1":null,"moist_soil_2":null,"moist_soil_3":null,"moist_soil_4":null,"wet_leaf_1":0.1,"wet_leaf_2":0.1,"rx_state":0,"trans_battery_flag":0},{"lsid":227809, "data_structure_type":2,"txid":8,"temp_1": 47.5,"temp_2": 43.3,"temp_3": 42.7,"temp_4": 43.7,"moist_soil_1":200.0,"moist_soil_2":200.0,"moist_soil_3":18.0,"moist_soil_4":200.0,"wet_leaf_1":null,"wet_leaf_2":null,"rx_state":0,"trans_battery_flag":0},{"lsid":227798, "data_structure_type":4,"temp_in": 74.2,"hum_in":37.5,"dew_point_in": 46.6,"heat_index_in": 73.0},{"lsid":227797, "data_structure_type":3,"bar_sea_level":30.171,"bar_trend": 0.004,"bar_absolute":27.328}]},"error":null}