version: 1

roaster:
  id: tea-roaster-01
  model: artisan-drum-5kg
  batch_capacity_kg: 5
  control_interval_ms: 1000

sensors:
  bean_temperature:
    source: modbus
    address: 1
    unit: celsius
  exhaust_temperature:
    source: modbus
    address: 2
    unit: celsius
  drum_speed:
    source: encoder
    unit: rpm

safety:
  emergency_shutdown_temperature_c: 245
  maximum_exhaust_temperature_c: 260
  minimum_airflow_percent: 20
  sensor_timeout_seconds: 5
  require_operator_acknowledgement: true

profiles:
  green_tea:
    batch_size_kg: 3
    drum_speed_rpm: 42
    stages:
      - name: warmup
        target_temperature_c: 95
        duration_seconds: 180
        airflow_percent: 35
      - name: roast
        target_temperature_c: 125
        duration_seconds: 420
        airflow_percent: 50
      - name: finish
        target_temperature_c: 105
        duration_seconds: 120
        airflow_percent: 70

  oolong:
    batch_size_kg: 4
    drum_speed_rpm: 38
    stages:
      - name: warmup
        target_temperature_c: 110
        duration_seconds: 240
        airflow_percent: 30
      - name: roast
        target_temperature_c: 145
        duration_seconds: 600
        airflow_percent: 45
      - name: finish
        target_temperature_c: 120
        duration_seconds: 180
        airflow_percent: 75

cooling:
  target_temperature_c: 35
  maximum_duration_seconds: 480
  fan_speed_percent: 100
  agitation_enabled: true

logging:
  level: info
  format: json
  batch_directory: /var/lib/tea-roaster/batches
  retention_days: 180

notifications:
  batch_complete:
    enabled: true
    channel: operator-console
  safety_alarm:
    enabled: true
    channel: facility-alerts
    repeat_interval_seconds: 30