feat: add BatteryMonitor implementation with discovery, notification, and scheduling services

This commit is contained in:
Marius
2026-04-01 10:55:33 +03:00
parent 11c2574235
commit 6e4d684359
114 changed files with 22820 additions and 527 deletions
+31 -1
View File
@@ -6,7 +6,10 @@
"System.Net.Http.HttpClient": "Warning",
"NordPoolManager": "Information",
"PowerMonitorManager": "Information",
"BoilerMonitorManager": "Information"
"BoilerMonitorManager": "Information",
"ShowerMonitorManager": "Information",
"LightMonitorManager": "Information",
"BatteryMonitorManager": "Information"
}
},
"WriteTo": [
@@ -34,6 +37,33 @@
"Enabled": true,
"CleanupEntitiesOnStartup": false
},
"ShowerMonitor": {
"Enabled": true,
"CleanupEntitiesOnStartup": false,
"BathroomHumidityEntityId": "sensor.bathroom_humidity",
"MainHomeHumidityEntityId": "sensor.main_home_humidity",
"BathroomTemperatureEntityId": "sensor.bathroom_temperature",
"ExhaustFanEntityId": "switch.exhaust_fan",
"PollIntervalSeconds": 30,
"SpikeRateThreshold": 4.0,
"MinDifferentialHumidity": 8.0,
"PeakHumidityThreshold": 58.0,
"ConfirmationWindowMinutes": 2,
"RecoveryDifferentialThreshold": 5.0,
"MaxShowerDurationMinutes": 60,
"FanRunAfterShowerMinutes": 10,
"RateWindowSize": 5
},
"LightMonitor": {
"Enabled": true,
"LightEntityId": "light.sonoff_1002214d40",
"SunEntityId": "sun.sun",
"PersonEntityIds": ["person.marius", "person.erika", "person.home_phone"]
},
"BatteryMonitor": {
"Enabled": true,
"BatteryThresholdPercent": 5
},
"PowerMonitor": {
"Enabled": false,
"MainMeterEntityId": "sensor.sonoff_100267d63f_power",