Skip to content

Automation Rules ​

Automation assists Manual Roasting with event-driven rules: when your triggers and state conditions match, HiBean can fire voice alerts, mark roast events, log manual dial values, or adjust heat, airflow, PID, and cooling—while you stay in manual command of the batch.

Automation Rules vs Auto Replay ​

CapabilityHow It RunsBest Fit
AutomationFires targeted When → Condition → Action rules during Manual RoastingCharge presets, post-FCs heat/fan trims, DTR alerts, drop cooling sequences, over-temp cutoffs
Auto RoastingReplays an entire profile's control timeline or tracks a PID BT curve from Charge to DropReproducing a dialed-in Roast Profile end-to-end (see Auto Replay Roasting)

Four Places to Manage & Monitor Rules ​

  1. Device Settings → Automation: Configure Global Automation rules shared across every profile on the current roaster.
  2. Profile Detail → Profile-specific Automation: Build rules bound to a single Roast Profile.
  3. Prepare Roasting → Manual Roasting → Automation: Review, toggle, or edit both Global Automation and Profile-specific Automation rules right before charging. (Switching to Auto Roasting disables this card and displays Auto roast does not support automation so two control systems never collide.)
  4. Live Manual Roasting top-right Automation button: Inspect Pending rules—and toggle off any pending rule on the fly before it triggers—alongside Executed rules that have already fired during the current batch. Triggered rules lock into Executed for the rest of that roast.

Automation Entry on Prepare Roasting

Global Automation vs Profile-specific Automation & Roast Preview ​

ScopeStored OnTypical Rules
Global AutomationCurrent roasterSafety over-temperature cutoffs, standard Charge power/damper presets, Drop heater-off & cooling sequences
Profile-specific AutomationSpecific roast profileCoffee-specific Maillard airflow ramps, FCs + ΔBT heat reductions, target DTR exceeds alerts

During Manual Roasting, enabled rules from both scopes run together. Before roasting real coffee, tap Roast Preview on the automation page to dry-run your rules against a historical roast curve—verifying exact trigger timestamps and temperatures, or seeing which condition prevented a rule from firing.

Rule Editor Structure ​

Edit Automation Rule

Every rule reads from top to bottom across three blocks:

  1. When: Add one or more triggers connected by + Or. As soon as any trigger fires, HiBean evaluates the rule's conditions.
  2. And all conditions / And any condition (optional): Add state guards and switch the header dropdown between And all conditions (AND) and And any condition (OR).
  3. Execute action: Chain one or more actions in order using + Then.

All 6 Triggers (When) ​

  • Event marker: Fires when a milestone is marked (Preheat, Charge, TP, DE, FCs, FCe, SCs, SCe, Drop).
  • Temperature: Fires when live BT or ET meets >, <, or = a target temperature.
  • Roasting time: Fires when elapsed roast time meets >, <, or = a target duration.
  • RoR: Fires when live Rate of Rise meets >, <, or = a target slope.
  • Temperature rise after event: Waits until a reference event (Charge, TP, DE, FCs, or SCs) is marked, then fires once BT or ET rises by at least your target delta from that event's recorded temperature (for example, After FCs, BT rises by at least 6°C). Inactive after Drop.
  • DTR exceeds: Fires once live Development Time Ratio (0% up to < 100%, computed strictly from post-Charge elapsed time and FCs without counting preheat) exceeds your target percentage (for example, DTR exceeds 18%). Inactive after Drop.

All 4 Conditions (And all conditions / And any condition) ​

  • Event state: Checks whether the roast is currently Before, After, or During a chosen milestone (for example, After DE and Before FCs).
  • Temperature state: Checks whether live BT or ET satisfies >, <, or =.
  • Roasting time: Checks whether elapsed roast time satisfies >, <, or =.
  • RoR: Checks whether current RoR satisfies >, <, or =.

Available Actions (Execute action) ​

HiBean filters the action picker to match your roaster's capabilities:

  • Direct hardware controls: Set Heater power (or Turn Off Heater at 0%), set Fan speed (or Turn Off Fan), set Drum speed (or Turn Off Drum), and toggle Cooling fan on or off.
  • PID Control: Set PID target temperature, enable or disable PID auto-heating, or update Kp / Ki / Kd parameters on supported controllers.
  • Wind Pressure Balance: Set target air pressure (Pa), enable Wind Pressure Balance, or disable it on supported machines.
  • Record-only parameter logging: Record power, Record fan speed, and Record drum speed write parameter steps purely into the roast log without sending hardware commands—ideal when you turn physical gas or airflow dials by hand on a read-only roaster.
  • Milestones, audio & timing: Auto Event Tagging (automatically mark a roast event), Voice Announcement (speak custom TTS text) or Play beep (Info, Success, Warning), and Delay (wait N seconds before running the next action in the chain).

Post-Drop Safety Gate ​

Once Drop marks the roast complete, HiBean's runtime safety gate blocks any automation action that would apply heat—specifically Heater > 0%, enabling PID auto-heating, or setting a PID target temperature—so a delayed or late-firing rule can never re-ignite an empty drum.

Safe post-drop actions remain fully permitted: Heater = 0% (Turn Off Heater), Fan, Drum, Cooling fan, voice/beep notifications, and Delay all execute normally, ensuring your Drop shutdown and cooling rules work every batch.

Practical Rule Recipes ​

Post-FCs Temperature-Rise Trim ​

text
When:            After FCs, BT rises by at least 4.0°C
Execute action:  Set Heater to 45% → Then Set Fan Speed to 65%

Development Ratio Drop Alert ​

text
When:                DTR exceeds 19%
And all conditions:  BT > 206°C
Execute action:      Play Warning beep → Then Voice Announcement: "Target DTR reached, prepare to drop"

Safe Drop & Cooling Sequence (Global Automation) ​

text
When:            Trigger when Drop
Execute action:  Turn Off Heater → Then Set Fan Speed to 80% → Then Turn On Cooling Fan