support sensor name mapping
All checks were successful
Build and Publish / release (push) Successful in 4m6s

This commit is contained in:
2025-03-05 12:53:57 -05:00
parent f98a4cf348
commit 29433cddd7
8 changed files with 231 additions and 60 deletions

View File

@ -33,4 +33,14 @@ type WeatherStation struct {
// Check weather.WeatherUpdateField for options
KeepMetrics []string `yaml:"keepMetrics"`
DropMetrics []string `yaml:"dropMetrics"`
// Relabels battery and sensor names
// Temp+Humidity Sensors:
// - TempHumiditySensor[1-8]
// Batteries:
// - IndoorSensor
// - OutdoorSensor
// - RainSensor
// - CO2Sensor
SensorMappings map[string]string `yaml:"sensorMappings"`
}