config: wire TempSensor section from config.json to TempSensorSim

PlantFactory.create() now accepts sensor_config dict; extracts type and
kwargs, falls back to sigma=0.05/temp_offset=-0.15 defaults. brewpi.py
passes config.get('TempSensor', {}). Templates updated with full
TempSensor sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 19:27:04 +02:00
co-authored by Claude Sonnet 4.6
parent ca1953c9ee
commit 0156e689ca
4 changed files with 24 additions and 6 deletions
+7 -1
View File
@@ -1,7 +1,6 @@
{
"ambient_temperature": 20,
"Controller" : {
"stirrer_name": "sim",
"plant_name": "sim",
"pid_type": "Smith"
},
@@ -41,5 +40,12 @@
"Stirrer": {
"port": "/dev/ttyACM0",
"speed": "115200"
},
"TempSensor": {
"type": "sim",
"temp_offset": 0.0,
"sigma": 0.05,
"stirrer_sigma": 0.0,
"stirrer_tau": 20.0
}
}