BEHAVIOR-001: learn and predict actuator actions
This commit is contained in:
@@ -15,6 +15,12 @@ def test_load_settings_reads_documented_environment(monkeypatch: MonkeyPatch) ->
|
||||
monkeypatch.setenv("SILLYHOME_MIN_TRAINING_POINTS", "12")
|
||||
monkeypatch.setenv("SILLYHOME_RETRAIN_STALE_HOURS", "48")
|
||||
monkeypatch.setenv("SILLYHOME_RECONCILE_INTERVAL_SECONDS", "600")
|
||||
monkeypatch.setenv("SILLYHOME_MIN_BEHAVIOR_ACTIONS", "4")
|
||||
monkeypatch.setenv("SILLYHOME_PREDICTION_CONFIDENCE", "0.9")
|
||||
monkeypatch.setenv("SILLYHOME_PREDICTION_WINDOW_MINUTES", "20")
|
||||
monkeypatch.setenv("SILLYHOME_PREDICTION_INTERVAL_SECONDS", "45")
|
||||
monkeypatch.setenv("SILLYHOME_EXECUTION_COOLDOWN_SECONDS", "1200")
|
||||
monkeypatch.setenv("SILLYHOME_TIMEZONE", "Europe/Berlin")
|
||||
|
||||
settings = load_settings()
|
||||
|
||||
@@ -27,4 +33,10 @@ def test_load_settings_reads_documented_environment(monkeypatch: MonkeyPatch) ->
|
||||
assert settings.min_training_points == 12
|
||||
assert settings.retrain_stale_hours == 48
|
||||
assert settings.reconcile_interval_seconds == 600
|
||||
assert settings.min_behavior_actions == 4
|
||||
assert settings.prediction_confidence == 0.9
|
||||
assert settings.prediction_window_minutes == 20
|
||||
assert settings.prediction_interval_seconds == 45
|
||||
assert settings.execution_cooldown_seconds == 1200
|
||||
assert settings.timezone == "Europe/Berlin"
|
||||
assert settings.ha_configured
|
||||
|
||||
Reference in New Issue
Block a user