denysdovhan / ha-lun-misto-air

💨 An integration for air quality monitoring by LUN Misto.
https://misto.lun.ua/air
MIT License
19 stars 0 forks source link

[Feature request] Make the sensor data from the nearest station universal. #7

Open andrewjswan opened 1 month ago

andrewjswan commented 1 month ago

Make the sensor data from the nearest station universal. If we select the "nearest station" option during setup, a sensor named sensor.nearest_xxx is created, and data from the nearest station is placed into it with each update. What does this give us? For more than 4 years of using data from the Lun website, I have observed how stations disappear from time to time and return back, as a result, we will always have the most relevant indicators for the location of the house. For example: The house is located on Yuzhnaya Borshagovka, at the time of setup, the nearest stations are turned off and we receive a sensor from a station in the city center (the AQI data is, one might say, not very accurate). After an hour or two or 10, data from a station located on a neighboring street begins to be published again, and our sensor automatically (without our intervention) receives data from this station. As for manually selected (defined) stations, we leave everything as it was.

denysdovhan commented 1 week ago

This is a nice idea. I'll look into that. You are free to open a PR, if you feel comfortable implementing this kind of feature.