Inkbird Thermometer

# Inkbird Thermometer for Home Assistant A Home Assistant custom integration for the **Inkbird INT-11I-B** Bluetooth meat thermometer (and, untested, the INT-11I-B-P and ISVT-11-B, see [Supported devices](#supported-devices)). It connects through Home Assistant's Bluetooth stack, so it works with a local adapter or an ESPHome Bluetooth proxy. What it does: - **Device functions of the Inkbird app:** live probe temperature and batteries, target / range / lower-limit alarms with pre-alarm, food and doneness presets, the timer, acknowledging alarms, the device settings (unit, sound, display-off time, calibration, name) and the alarm status bits, plus an event entity for notifications. - **Cooking session:** what is cooked since when, start temperature, progress, and a per-minute temperature curve; survives disconnects and restarts. - **Estimated finish (ETA):** states `estimating` / `estimate` / `stall` / `done` / `unreachable`; no estimate before the probe has risen 6 °C and settled (a short `estimating` phase after the rise: about 1 minute for a steady rise, several minutes after a jump such as a probe put into hot food); then a straight-line estimate from the last 5 minutes of readings after that, and the last estimate is held for up to 30 minutes whenever no new one can be made (so from the first estimate on the card shows a time, the stall or done). - **Oven temperature and Newton model:** with an optional oven (chamber) temperature the estimate follows Newton's law of heating once the rise slows down. - **Curve model without oven temperature:** without an oven temperature the curve's levelling-off is fitted from the readings, so the finish is no longer too early when the rise slows; when the curve levels off at or below the goal, or the time is too uncertain, the state is `unreachable` with the reason instead of a wrong time. - **Stall detection** for large cuts (brisket, pork shoulder, …), confirmed after 20 minutes of plateau, with a `stall` event once per cook. - **Cook history:** finished cooks with their curves are stored as the basis for learning cook times later. - **Forecast curve:** while there is an estimate, `sensor.…_cook_eta` carries the predicted curve to the finish (straight line, Newton's approach to the oven temperature or the fitted curve, the same model as the finish time); the card draws it dashed after the measured curve. - **Services** `start_cook` / `update_cook` / `finish_cook` to start a cook with food, doneness, target, range or lower limit, pre-alarm and oven temperature from automations, and to change a running cook's alarm without starting a new one. - **Lovelace card** `custom:inkbird-cook-card` with the app's food presets, the running cook, its estimate, curve, forecast and pre-alarm line, the settings of a running custom cook, the last custom settings remembered per thermometer, smooth in-place updates, the device timer and a visual editor; English or German, °C or °F; registered automatically (storage-mode dashboards). - **Diagnostics** with the decoded state, the session and the last raw frames. Simulated: cook card during a cook: Roasts, medium rare, target 54 °C, 41 °C core, ready at 6:49 PM, 29 min remaining (oven-based), temperature curve with dashed forecast to the finish, target line and pre-alarm line at 49 °C Simulated: cook card start form: food tiles, Roasts selected, doneness medium rare 54 °C, probe at 5 °C, optional oven temperature, Start *Simulated cook (not measured): Roasts, medium rare (54 °C), oven 160 °C, probe started at 5 °C. Rendered from the card in this repository with Home Assistant's default theme.* ## Installation Before you start: - Home Assistant **2026.5.0** or newer. - [HACS](https://hacs.xyz) installed (for the HACS way). - A working [Bluetooth](https://www.home-assistant.io/integrations/bluetooth/) setup: a local adapter or an ESPHome Bluetooth proxy that supports **active connections**. - **Close the Inkbird phone app** (or turn off Bluetooth on the phone): the thermometer accepts only one Bluetooth connection at a time. ### HACS (recommended) 1. In HACS, search for **Inkbird Thermometer**. 2. Download it and restart Home Assistant. ### HACS custom repository (fallback) If the integration does not show up in the search yet: 1. In HACS, open the menu → **Custom repositories**. 2. Add `https://github.com/radecke/ha-inkbird-thermometer` with type **Integration**. 3. Download **Inkbird Thermometer** and restart Home Assistant. ### Manual Copy `custom_components/inkbird_thermometer` into your `config/custom_components/` folder and restart Home Assistant. ### Uninstalling 1. **Settings → Devices & services → Inkbird Thermometer → ⋮ → Delete** (for each thermometer). This also deletes the stored session and cook history; with the last thermometer the card's Lovelace resource is removed automatically (remove cards using it from your dashboards). 2. In **HACS**, open *Inkbird Thermometer* → **⋮ → Remove** (manual install: delete `config/custom_components/inkbird_thermometer`). 3. Restart Home Assistant. ## Test status | Status | What | |---|---| | **Verified on the device** (one INT-11I-B, station/probe firmware V1.1.4 / v1.1.4, Home Assistant 2026.11.2; card on an iPad) | With pre-releases 0.1.1–0.3.0: probe temperature; setting and clearing a target with the alarm; pre-alarm; calibration; display unit; sound; countdown timer; the alarm event; display-off time (takes effect after about 30 s); the alarm status bits. With 0.4.0 (pre-release): connection after power-on in about 7 s (one measurement); card: start with a preset, start with an oven temperature, changing the oven temperature, *Estimating* before the rise, the finish time after the rise, *done · time*, muting the alarm from the card, finishing a cook; the cook history record; automatic registration of the card resource | | **Unit-tested only** | Stall detection and confirmation; the Newton (oven-based) estimate; the held estimate; probe pull handling; restoring the session after a restart; cooks of 10 minutes or longer (`complete`); the card in English and in °F; the card editor; the timer in the card; lower-limit-only start; remembered doneness; chart marks; press-and-hold steppers; *Custom* (own target) mode; 0.5.0: the forecast curve, the pre-alarm line, `update_cook` and the card's *Settings* of a running cook; the curve model without oven temperature (one real water test, simulations) | | **Untested** | INT-11I-B-P and ISVT-11-B; several thermometers in one installation; dashboards in YAML mode | Anything not listed as verified has not been checked on a real device. On Home Assistant 2026.5 (minimum) only the automated tests were run. See [Known issues](#known-issues). > Not affiliated with or endorsed by INKBIRD. ## Features Entity IDs below assume the device name `INT-11I-B`. ### Cooking | Entity | Description | |---|---| | `sensor.…_temperature` | Probe temperature in °C, pushed by the device every few seconds | | `number.…_target_temperature` | Target (upper) temperature, °C, step 1. Keeps a running range and the pre-alarm/food/doneness of the running cook | | `number.…_lower_limit` | Lower limit, °C. With a running target it becomes a range, without one a lower-limit-only alarm | | `select.…_alarm_mode` | `off` / `target` / `range` / `low` (mode byte 00 / 10 / 11 / 01). Switching back on reuses the last temperatures | | `select.…_pre_alarm` | `off`, 5, 10, 20, 30 °C before the target (sent as 0/9/18/36/54 °F). Target mode only: with a running range or lower limit only anything but `off` is refused (as in the Inkbird app) | | `button.…_clear_target` | Removes the target (same as `finish_cook`) | | `binary_sensor.…_target_reached`, `…_too_cold`, `…_over_temperature`, `…_pre_alarm_active` | Alarm status bits of the device (`ff03`) | | `event.…_alarm` | Fires `target_reached`, `too_cold`, `pre_alarm`, `over_temperature`, `timer_done`, `probe_battery_low` when the matching status bit turns on. Bits already set when the connection starts do not fire. Also fires `stall` (from the integration, not the device) at most once per cook, when it first enters the stall, see [Stall](#stall) | | `button.…_mute_alarm` | Acknowledges the active alarms on the device (temperature, pre-alarm, probe battery, timer); with no known alarm it sends the temperature acknowledge | ### Cooking session | Entity | Description | |---|---| | `sensor.…_cook_progress` | Percent from the start temperature to the target, 0–100 (see below). Unknown without a session | | `sensor.…_estimated_finish` | Timestamp when the target will be reached (see below). Only has a value while `…_cook_eta` is `estimate` | | `sensor.…_cook_eta` | ETA state (enum): `estimating`, `estimate`, `stall`, `done`, `unreachable` (no time: the curve levels off at or below the goal, or the goal comes so late the time is too uncertain — see the curve model; attributes `method` `curve`, `asymptote`, `reason` `level` / `late`); attribute `risen` (the probe has risen 6 °C; changes once per cook) whenever there is a state; attributes `method` (`line` / `newton` / `curve`, with `asymptote` for `curve`) and `forecast` in state `estimate` (see below); attribute `reached_at` (ISO time the goal was first reached) once it was reached. Unknown without a session or in lower-limit-only mode | | `number.…_oven_temperature` | Oven (chamber) temperature of the running cook. Range 0–300 °C (32–572 °F): **set the minimum value (0 °C / 32 °F) to clear it**; values between the minimum and 30 °C (86 °F) are refused with an error (no oven); 30–300 °C sets it. Kept in the session, never sent to the thermometer. Available only while a session runs | | `sensor.…_cook_start` | Timestamp the session started | | `sensor.…_food` | Food of the session (enum: `veal_steak` … `venison`, `custom`; shown with the app's names) | | `sensor.…_doneness` | Doneness (enum: `blue_rare`, `rare`, `medium_rare`, `medium`, `medium_well`, `well_done`); unknown for foods without a doneness choice and for custom targets | Separate enum sensors instead of attributes on the progress sensor: each value gets its own history, translated states and can be used in automations and conditions directly. *Cook start*, *Food*, *Doneness*, *Oven temperature* and *Cook ETA* stay available while the thermometer is off (the ETA comes from the session: `done` stays `done`, a `stall` stays; without fresh readings the last estimate is held for up to 30 minutes, then it shows `estimating`); *Cook progress* and *Estimated finish* need the connection (they need the temperature). **Forecast (`forecast` attribute of `…_cook_eta`):** 13 points `[unix seconds, °C]`, evenly spaced from the newest per-minute curve point to the estimated finish, where the last point is the goal. The shape is the model of the estimate: `line` a straight line, `newton` the exponential approach to the oven temperature, `T(t) = T_oven − (T_oven − T₀)·e^(−t/τ)`, with τ such that the curve meets the goal at the finish. Present only in state `estimate` (a held estimate included). The values are **always °C**, also with Home Assistant set to °F (attributes are not converted; the card converts them). It changes at most once a minute (with a new curve point or a new finish), and it is **excluded from the recorder** (`_unrecorded_attributes`): a predicted curve has no value in the history, and recorded, every new curve would be stored as a new attributes row. Each change is still a state write, so during an estimate `…_cook_eta` writes about **one state row per minute** to the recorder (sharing one small attributes row). **Pre-alarm:** `select.…_pre_alarm` shows what the device reports (`0x24`), not what was sent. The session stores it too (`pre_alarm` in °C, websocket `inkbird_thermometer/session`), so it is known again after a restart before the device has answered. **Units:** temperature entities are shown in Home Assistant's unit system — with °F you see °F, and the number entities take °F. The services (`start_cook`) always take °C. ### Timer | Entity | Description | |---|---| | `number.…_timer_duration` | Minutes (1–1439) for the start buttons; kept in Home Assistant, always available | | `button.…_start_countdown`, `button.…_start_count_up` | Start a timer on the device with that duration | | `button.…_reset_timer` | Stops/resets the timer | | `sensor.…_timer_end` | Timestamp when a running countdown ends | | `binary_sensor.…_timer_running`, `…_timer_alarm` | Timer status bits | ### Device | Entity | Description | |---|---| | `sensor.…_probe_battery`, `sensor.…_station_battery` | Percent (diagnostic) | | `binary_sensor.…_probe_connected`, `…_probe_charging`, `…_station_charging`, `…_probe_battery_alarm` | Status bits | | `select.…_display_unit` | °C / °F on the station's display (config) | | `switch.…_sound` | Buzzer on/off (config) | | `select.…_display_off_after` | 5, 10, 30, 60, 90 or 120 s (config; the list of the Android app) | | `number.…_calibration` | Probe offset −7…+7 °C, step 1 (config) | | `text.…_device_name` | Name stored on the device, max. 28 bytes UTF-8 (config) | | `sensor.…_probe_signal` | RSSI of the probe in dBm, read once per connection (diagnostic, disabled by default) | | `binary_sensor.…_connected` | On while connected **and** authenticated; always available | The station firmware is shown as the device's software version; the probe firmware is in the diagnostics. All entities except *Connected* and *Timer duration* are unavailable while the thermometer is not connected; after a reconnect they show fresh values only. ## Services ### `inkbird_thermometer.start_cook` Target: the thermometer (device or one of its entities). | Field | Description | |---|---| | `target` | Target (upper) temperature, °C. Required for `target` and `range` | | `low` | Lower limit, °C. Required for `range` and `low` | | `mode` | `target`, `range` or `low`. Default: `range` with `target` and `low`, `low` with only `low`, otherwise `target` | | `pre_alarm` | `off` (default), `5`, `10`, `20`, `30` (°C before the target). Target mode only: with a range (`mode: range`, or `target` and `low` without a mode) or a lower limit only (`mode: low`, or `low` alone) anything but `off` is refused, as in the Inkbird app | | `food_index` | Food of the Inkbird app, 0–30 (0 veal steaks, 1 beef, 2 chicken, … 25 venison chops, 26 custom, … 30 beef ribs). Default 26 | | `doneness` | Doneness of the Inkbird app, 0–5 (blue rare, rare, medium rare, medium, medium well, well done → bytes 00/01/03/05/07/0a). Default: the food's default (5, well done); 0 for custom | | `oven_temperature` | Optional oven (chamber) temperature, °C, 30–300. Stored in the new session (not sent to the device); enables the Newton estimate. Can be changed later with `number.…_oven_temperature` | **Presets (foods 0–25):** without `target` the app's temperature for the food and doneness is used. A `target` equal to the preset's °C value (as the card sends it) is replaced by the preset's exact °F value, so the device gets what the app sends (195 °F shows as 91 °C, and 91 °C would go back as 196 °F). A doneness the food does not have is an error when no `target` is given. Other targets are sent as given. ```yaml action: inkbird_thermometer.start_cook target: device_id: data: target: 57 low: 50 pre_alarm: "5" ``` ```yaml # Steak, medium rare: 130 °F / 54 °C from the app's table action: inkbird_thermometer.start_cook target: device_id: data: food_index: 8 doneness: 2 ``` ### `inkbird_thermometer.update_cook` Changes the alarm of the **running** cook — target, lower limit, mode, pre-alarm — with the same frames as `start_cook`, but without a new cook: start time, start temperature, curve, stall state and history stay; the estimated finish and the progress follow the new goal. Food, doneness and oven temperature stay. Every field is optional; a missing one keeps the running value — the device's, or after a restart before the device has answered, the session's (switching to `range` without `low` uses the last known lower limit). Without `mode`, a `low` in target mode or a `target` in lower-limit-only mode makes a range (as with `start_cook`); with a `mode` that does not use a given value the call is refused, never silently dropped. `mode: low` turns the pre-alarm off (it warns before a target), as at the start. The values are resolved when the command is sent: an `update_cook` queued behind a `finish_cook` or `start_cook` is refused (*no cooking session*) instead of re-arming the device or changing the new cook. A raised goal above the current temperature makes a `done` cook running again. Error without a running cook. | Field | Description | |---|---| | `target` | Target (upper) temperature, °C | | `low` | Lower limit, °C | | `mode` | `target`, `range` or `low` | | `pre_alarm` | `off`, `5`, `10`, `20`, `30` (°C before the target). Target mode only: with a range or a lower limit only anything but `off` is refused; a cook turned into a range (or lower limit only) without naming `pre_alarm` gets it turned off | ```yaml action: inkbird_thermometer.update_cook target: device_id: data: target: 62 pre_alarm: "5" ``` ### `inkbird_thermometer.finish_cook` Removes the target and alarm (same as the *Clear target* button) and ends the session. ## Cooking sessions - **Start:** when the device acknowledges a target while no session runs (service `start_cook`, the target/lower-limit numbers, the alarm-mode select, or a target found on the device after connecting). `start_cook` always starts a new session, even while one runs — started by the device's answer to that command only (not by the target read while connecting); if `start_cook` fails, no new session starts; if the device's answer arrives late, the running session only takes its values (target, food, doneness). Changing the target with the number entity keeps the running session and its start. - **Re-started in the Inkbird app:** if a cook is `done` and the goal changes to at least 10 °C above the current temperature, the old session ends (history) and a new one starts. A food change alone, or the same goal again, only updates the session. Changes made from Home Assistant (target, lower limit, alarm mode, pre-alarm, `start_cook`, clear) are never taken for an app restart: raising the goal of a done cook from Home Assistant keeps the cook (it is just no longer `done`). - **Stored:** start time, start temperature, mode, target, lower limit, food, doneness, pre-alarm, oven temperature, the time the goal was first reached (`reached_at`), plus the per-minute curve, the stall state (and how many minutes a stall is being confirmed), whether the Newton model was chosen, the last valid estimate (held ETA) and the last reading. Kept in `.storage/inkbird_thermometer.session.`, so it survives disconnects and restarts. Session start, end, target and oven changes and reaching the goal are written at once; new curve points, start-temperature changes and the held estimate at most once a minute, and everything (including the minute in progress) at once when the integration is unloaded (so a reload or removal never brings back an old state). - **Start temperature:** the probe reading when the session starts (the first reading if none was known yet). As long as the probe has not risen 6 °C, any lower reading lowers it to the lowest reading seen — for a cook started before the probe was in the cold food. "Risen" means a **per-minute curve point** (minute mean, see Curve) 6 °C above the start temperature or above the lowest curve point so far, whichever is higher — the same rule live and after a restart (both use the curve); so the rise is seen at the latest when the minute it happens in is complete. Once risen it stays risen for the cook. These changes are written with the curve (at most once a minute). - **Probe in the station:** readings are ignored for the session, the ETA and the curve while the probe sits in the station (charging status bit) or the device sends no value. - **End:** when the device acknowledges *no* target: `finish_cook`, *Clear target*, alarm mode `off`, or no target reported after a reconnect (e.g. cleared on the station). **Progress:** `(T − T_start) / (T_goal − T_start)`, clamped to 0–100 %. In target mode `T_goal` is the target. In range mode it is the **lower bound**: the food is ready once it is inside the range, so 100 % means "in range" (the card shows that explicitly). Lower-limit-only mode has no progress. A session that started at or above its goal shows 0 % until the goal is reached, then 100 %. **Curve:** the readings of each minute of the session are averaged into one point (offset of the minute's beginning from the session start in seconds, mean °C rounded to 0.1); a minute becomes a point with the first reading of a later minute, and the minute in progress is added when the session ends. Minutes without readings (thermometer off, probe in the station) have no point. At most 1440 points (24 h); beyond that the oldest are dropped. Cleared when a new session starts, together with the in-memory readings of the ETA (the last 30 minutes; kept over a disconnect, lost on a restart). **ETA state** (`sensor.…_cook_eta`), checked in this order: | State | When | |---|---| | `done` | the goal was reached: set by the first reading at or above it and **kept** even if the temperature falls again (resting). Raising the goal above the current temperature clears it | | `stall` | the cook is in a confirmed stall (no time is shown), also right after a restart | | `estimate` | a new finish time could be computed (`…_estimated_finish`, attribute `method` = `line`, `newton` or `curve`) — or, after the rise, the **last valid estimate is held** (same finish time and method) because no new one can be computed right now; held for at most **30 minutes** after the reading it was computed from | | `estimating` | before the probe has risen **6 °C**; after the rise until the probe has settled and the rate has its first minute of readings (see the 6 °C rule below; attribute `risen` tells the two apart); the probe sits in the station; or no new estimate for more than 30 minutes | | `unreachable` | no time, from the curve model (only without an oven temperature): `reason` `level` — the curve levels off at or below the goal (*Levelling off at ≈ 69.6 °C – target likely out of reach*), or `late` — the asymptote is above the goal but so near that the time is too uncertain (*Target very late – time can't be estimated*); attribute `asymptote` (°C) | No new estimate (so the held one shows, if any) when: there are no or too few readings (less than 1 minute or fewer than 3 readings in the 5-minute window, e.g. after a restart), the newest reading is older than **5 minutes** (thermometer off or out of range), the readings are disturbed by a drop (probe pulled or re-seated, see below), a stall is being confirmed, the rate is 0 or negative, or the result is not finite or more than **24 hours** away. The held estimate is stored with the session, so after a restart it shows at once (if it is younger than 30 minutes). It is dropped when the goal or the oven temperature changes. The 6 °C rule: in the first minutes the probe settles into the food and the rate says little about the rest of the cook. The rise counts on the readings: **two readings in a row** at or above **max(start temperature, lowest minute mean so far) + 6 °C** (two, so one noisy reading does not count). The lowest minute mean counts the completed minutes, so a jump inside the first minute (probe put into hot food: 22 → 35 °C) raises the base to that minute's mean, and the rise then needs 6 °C more than that. After a restart the rise point is stored with the session (or found again on the curve). **Steady rise (fast path):** when the rise shows no step, the probe counts as settled at the rise reading itself, and the rate starts there. "No step": take the increases per minute since the start (the current partial minute included from 20 s of readings, but not for the largest); the first one at 90 % of the largest is the top; at least two increases follow it, and neither the top nor any after it is below **75 % of the largest** — measured against the largest, not against the neighbour, so a step's tail (which shrinks steadily, faster or slower depending on the probe) cannot pass minute by minute; the newest two also lie between 60 % and 2.5 times the one before. Before the top anything goes (a lag in cold food). The first estimate then comes 1 minute after the rise (`ETA_MIN_SPAN`) or as soon as the steadiness is visible. In a live cook (start 22.12 °C, +3.1 / +2.8 / +2.5 °C a minute) that is about 3½ minutes after the start instead of 5 before; a steak-like curve (5 °C, a minute of lag, then 5 °C/min) gets it within the first half of the cook. A fast rise of 2–4 °C/min can miss the fast path when its minutes scatter and settles 40–60 s later. Otherwise the settling rule below applies. In a simulation grid (steps of 8–20 °C at 0–290 s with time constants of 40–80 s, then 0.2–1 °C/min) no first estimate had a rate above 1.5 times the true one; with a time constant of 100 s, or reading noise of 0.1 °C on a 0.2 °C/min rise (the first rate rests on 1 minute of readings), it can. **Settling (after a step):** after a jump — at the start or after flat minutes, whenever the probe is put into hot food — the reading approaches its level exponentially (time constant about 40–60 s), and that tail would read as a rise. The rate therefore starts at the end of the first minute, at or after the rise minute, where the per-minute increase (per minute of time between the curve points) has **stopped shrinking and is no jump**: in two minutes in a row each increase lies between **60 %** and **2.5 times** the one before, and the smallest of those three increases is at least 60 % of the largest (a slow tail, time constant 70–100 s, passes the neighbour check but not this level). A flat or falling minute before the rise never counts as "stopped" (the jump after it is a step); a falling probe after the rise does (harmless: a falling rate gives no estimate). At the latest 10 minutes after the rise (by time, also across a reconnect gap). A jump's tail shrinks to 22–37 % a minute and stays out; a steady rise keeps its increase even when the minutes scatter (a live water test: 2.32 / 1.86 / 2.28 / 1.59 / 2.0 °C per minute, settled in the rise minute, first estimate 1 minute after it). Simulated i.i.d. scatter of ±30 % settles within 2 minutes of the rise in 98 % of the cases, ±40 % in about 89 % (the live data scattered about ±20 %). The check needs three minutes of curve before it, so a rise in minute 2 counts from minute 3. After a jump it waits until the tail has died away (simulations: a jump at the start or after 2–4 flat minutes followed by a 0.2–1 °C/min rise settles 5½–7½ minutes after the jump, the first rate within 2 % of the true one; a probe that stays flat after the jump only reaches the 10-minute backstop, and then there is no rate anyway). The rate only counts readings from that point on, the peak rate (stall, Newton) only curve points from there. The first estimate comes 1 minute later (`estimating` until then, without the *(after +6 °C rise)* note in the card); the first estimates rest on 1–5 minutes of readings and can move more than later ones, especially on slow cooks. The point is stored with the session; while it is still pending, the unrounded minute means are stored too, so a restart during the settling decides as it would have live (an older store falls back to the curve, rounded to 0.1 °C, with a matching tolerance). **Straight line (`line`):** an ordinary least-squares line through all temperature readings of the **last 5 minutes** after the rise (the device pushes a reading every few seconds) gives the rise rate `r` (Newton uses the same rate). The estimate is `t_last + (T_goal − T_last) / r`, counted from the newest reading (not from the fitted line, which would lag by half the window), rounded to the full minute. There is no minimum rate: a slow rise gives a late finish time; beyond 24 hours there is no new estimate. No smoothing beyond the regression itself: a change of the heat shows up fully after 5 minutes and half-way after about 2.5 minutes. Readings are kept in memory only; a disconnect keeps them, after a restart the estimate needs 1 minute of new data (meanwhile the held estimate shows). **Probe pulled or re-seated:** a reading more than **2.5 °C** below the highest reading before it starts a drop; it counts as a **pull** when it goes deeper than **5 °C**, rebounds (half of it back within 60 s of its lowest reading: a re-seated probe), or stays below the earlier level for more than 2 minutes (out of the food, moved); while it is below, it is treated as one. A shallow dip that comes back slowly is no pull (0.5.0b5: a live water test with the stove turned down dipped 3.3 °C in 35 s and was back near its level in 47 s — taken for a pull, the rate was ignored for 12 minutes) — it simply enters the rate, and the time moves later within one 5-minute window. After a pull the rate ignores all readings up to **7 minutes** after its lowest reading (rebound settling) and then needs a **full 5-minute window** of readings; until then (about 12–13 minutes after a short pull) the last estimate from before is held. An estimate made from the very first falling reading, before it was recognised as a drop, is discarded the same way (it can show for a reading or two). The curve model leaves the pull out as well (the minutes from its start up to its return near the earlier level, plus 5 minutes of rebound — found on the raw readings, since a 20-second dip vanishes in the minute means) and keeps its asymptote while one is open; in simulations of a 4 °C re-seat dip and of 10 minutes out of the food (37 °C and 20 °C air) the estimate stayed within 2 minutes (but for the first 2 minutes of the pull, before it is 2.5 °C deep). **Oven temperature, Newton (`newton`):** a piece of meat in an oven heats along Newton's law, `dT/dt = (T_oven − T) / τ`: fast at first, slower and slower towards the oven temperature — a straight line through the current rate is then too optimistic. When an oven temperature is set (service field or number), it is **above the goal**, and the cook is **past the inflection point**, the estimate uses `τ = (T_oven − T) / r` and `remaining = τ · ln((T_oven − T) / (T_oven − T_goal))` (`r` as for the straight line). Past the inflection point means: the 5-minute rate of the per-minute curve is below 0.9 × the peak rate (see [Stall](#stall)) on **3 consecutive curve minutes**, counting only windows after the 6 °C rise and not touching a pulled and re-seated probe (drop of more than 2.5 °C between curve points and the 10 minutes after it). Before that, or without an oven temperature above the goal, the straight line is used. Once Newton has been chosen it stays for the rest of the session as long as the oven temperature stays set and above the goal (a short faster rise does not flip it back); clearing the oven temperature goes back to the straight line. A result more than 24 hours away, or non-finite or non-positive intermediate values, give no new estimate. **Without an oven temperature, curve (`curve`):** the same law with the oven temperature unknown: the per-minute curve since the settling is fitted with `T = A − (A − T₀)·e^(−t/τ)`, the asymptote `A` free (least squares; for each `A` a straight line through `ln(A − T)`, `A` searched up to 300 °C, at most once a minute, about 8 ms for a full day of curve). It is used only when **all** guards hold: - three fits — on the curve up to now, and leaving out the newest 3 and 6 minutes — each on at least **6** curve minutes since the settling (so the newest on at least 12; with fewer points the water test's `A` jumped 270 → 135 → 108 → 79 °C); - those three fits agree on the time to the goal within **20 %** (`A` and `τ` trade off, so the time is what has to be stable); - the fitted span covers at least **0.15 τ** (otherwise `A` is still a guess); - every fitted `A` at most **300 °C** (a straight rise has no curvature: no fit) and above the goal to switch to a time (see below for an `A` near the goal); - no stall: during one the stall shows; **after one, only the curve after its end** is fitted (the plateau is not Newton's law), with the same guards; no oven temperature given (then Newton with the given value takes precedence); - a pulled probe: the drop up to the curve's return to its earlier level (plus a minute) is left out. With a small hysteresis: `curve` from the second passing minute in a row, kept until the guards fail three minutes in a row. The time shown is **never shorter than the straight line's**: where the line's time is later, that time is shown (still as `curve`; near the end the two meet). Attribute `method` is then `curve` (recorded; it changes about once per cook), with `asymptote` (the fitted `A`, °C; not recorded), and the card shows *(curve)* below the time; the forecast curve follows the fitted `A`. Nothing new is stored for it: after a restart the model is refitted from the stored curve (only the end of a stall is stored). **Switching, and the goal near the asymptote (0.5.0b5):** the agreeing fits are needed to switch **to** the model, not to stay on it — near the goal the time is so sensitive to `A` that the fits never agree on it (a live test, water on a low stove, goal 70 °C, `A` sinking from 79 to 71 °C, flickered line → curve → line → curve → line). Once on the model, it follows the newest fit — except a fit whose `A` jumps by more than 3 °C against the model (taken only from the third such minute in a row: heat turned up), or while a drop of the readings is open. **`unreachable`**: when `A` is at or below the goal (*levelling off*); or when the time is too uncertain: the relative change of the time to the goal if `A` were lower by its uncertainty — the median of how far the three fits disagreed over the last 10 minutes, at least 0.1 °C (not counted while `A` rises: then the goal comes sooner) — is a third or more; back to a time below 15 %. Never before the fit covers one time constant (before that, `A` is uncertain for every cook). In the low-stove replay: one method change (line → curve at 20:41), then *very late* from 20:51, when the fits were 1.4–4.5 °C apart, to the end (`A` ≈ 70.9 °C). Sous-vide baths 0.5–2 °C above the goal (simulated) get a time and are never `unreachable`; **for sous-vide, still enter the bath temperature as the oven temperature** — Newton with a known oven temperature takes precedence and is exact. The model's state (on the curve, `unreachable`, the recent disagreement, the pulls) is stored with the session: a restart does not flip it. The finish shown changes at most once a minute (the rate moves with every reading; before, the time wobbled by a minute or two every few seconds); the line's later time is the floor of the curve's only up to 1.5 times the curve's time (a collapsing rate, e.g. a pulled probe in its first seconds, is no slower cook). **Validated only on one real water test and on simulations, not on meat.** Water test (55 °C goal, reached 18:38:18): `curve` from 17 minutes after the start (4 before the goal), every estimate from then on within 1 minute (the straight line said 18:40). Simulated Newton cooks (pork shoulder 120 °C, τ 3 h; sous-vide 56 °C, τ 25 min): within a few minutes at half the cook where the line was 20–45 minutes early; on the shoulder `curve` takes over after about 40–50 minutes and does not switch back. A simulated brisket with a 3 h stall: after the stall within about 10 minutes most of the time (the line up to 36 minutes early), single estimates later where the noisy line's time is later (it is the floor). Those simulations are exactly Newton's law, which favours the model; before a stall the model cannot know that one comes and is too early, like the line. Real meat heats S-shaped (lag, then approach), and the oven temperature is only reliably known from the curve after several time constants; in an S-curve simulation the model never took over (the line stays). ### Stall Large cuts cooked low and slow (brisket, pork shoulder) plateau for hours between about 60 and 80 °C while moisture evaporates from the surface. During that plateau a rate-based ETA is meaningless, so the integration detects it and shows `stall` instead of a time. Rates come from the per-minute curve: the least-squares slope over the last **10 minutes** (at least 9 minutes covered). The **peak rate** is the highest such 10-minute slope of the cook, counting only windows that start at or after the first curve point 6 °C above the start temperature (so probe settling and insertion do not count), and skipping windows with a drop of more than 2.5 °C plus the 10 minutes after it (probe pulled and re-seated, rebound); the mean temperature of that window is kept with it (`T_peak`). - **Enters** when all of these hold on **20 consecutive curve minutes** (confirmation; during it the last estimate is held, no `stall` is shown and no event fires): - the food is one of `beef_brisket`, `pork_shoulder`, `bbq_ribs`, `roast`, `ribs`, `fresh_ham`, `turkey`, `custom`; - 60 °C ≤ T ≤ 80 °C (latest minute) and the goal at least **10 °C** above T (keeps sous-vide and cooks close to their goal out); - peak rate ≥ 0.1 °C/min; - plateau: current 10-minute rate below **1/3** of the peak, below **0.05 °C/min** and at least **−0.01 °C/min**, and T within **1 °C** of the highest curve point since the last drop of more than 2.5 °C (probe re-seated: measured against its new level) or since the 6 °C rise, whichever is later (a cooling probe — resting — is no stall); - with an oven temperature: current rate below **1/2** of the rate Newton's law expects at T, `peak × (T_oven − T) / (T_oven − T_peak)` (normal heating that slows down towards the oven temperature is no stall); - no drop of more than 2.5 °C between two curve points in the 10-minute window (probe pulled or re-seated). - **Leaves** (hysteresis) when the current rate is **0.1 °C/min** or more, or — with an oven temperature — at least **0.7** of the Newton rate above (it entered below 0.5); when T is above 80 °C (or below 60 °C) or more than **1.5 °C** below the highest curve point (same maximum as above); when the food is no longer a large one; or when the session ends. While the 10-minute window touches a drop of more than 2.5 °C or the 10 minutes after it (probe pulled and re-seated), the stall holds. - The stall is stricter than "slower than at the peak": it needs an absolute plateau (below 0.05 °C/min). A stall that still creeps up at 3–6 °C per hour shows as a (long) estimate, not as `stall`. It can only be detected while readings arrive. - `event.…_alarm` fires `stall` **at most once per cook**, when the first stall is confirmed; a later plateau in the same cook shows the `stall` state again but fires no event, leaving fires nothing. A plateau shorter than the confirmation is not counted (no event, `stall_seen` in the history stays `false`). The state and the confirmation count are checked once per completed minute and stored with the session, so a restart does not fire it again. **Stall notification** (example; adjust the entity IDs and the notify action; `state_translated` gives the food's name, e.g. *Beef brisket*, instead of its key `beef_brisket`): ```yaml triggers: - trigger: state entity_id: event.int_11i_b_alarm conditions: - condition: state entity_id: event.int_11i_b_alarm attribute: event_type state: stall actions: - action: notify.notify data: message: > Stall: {{ state_translated('sensor.int_11i_b_food') }} at {{ states('sensor.int_11i_b_temperature') }} ° ``` ### Cook history When a session ends (finished, cleared, or replaced by a new `start_cook`), a record is appended to `.storage/inkbird_thermometer..cooks`: `started`, `ended` (ISO, the time of the **last reading**, not of finishing), `duration_s` (`ended − started`), `time_to_goal_s` (`reached_at − started`, or `null`), `food` and `doneness` (preset keys or `null`), `mode`, `target`, `low`, `oven_temperature`, `start_temperature`, `reached_goal` (goal reached, or curve / last reading at the goal), `complete`, `stall_seen`, and the `curve` (`[[offset_s, °C], …]`). Cooks with fewer than 5 curve points (accidental starts) and a second record with the same `started` are not stored; at most 200 records are kept, the oldest dropped. Only records with `complete: true` (goal reached and at least 10 minutes long) are meant to count as real cooks for learning. The history is the basis for learning cook times per food later; **nothing learns from it yet** (the planned minimum of 5 complete cooks per food is a placeholder). Diagnostics show the number of records and the last one without its curve. Removing the integration deletes it. ## Card The integration ships the cook card `custom:inkbird-cook-card`. **Resource:** with dashboards in storage mode (the default) the card is registered as a Lovelace resource automatically (`/inkbird_thermometer/inkbird-cook-card.js?v=`, updated with each version, added again when a thermometer is set up if it was deleted, removed when the last thermometer is removed — ignored discoveries do not count). With dashboards in YAML mode add that URL as a `module` resource yourself. **Add the card:** 1. Open the dashboard, click **⋮ → Edit dashboard** (pencil). 2. Click **Add card** and search for **Inkbird** — the card appears as *Inkbird Thermometer – Cook card*. (If it does not show up, reload the browser once after installing.) 3. The card has a visual editor: pick the thermometer (device picker, limited to Inkbird thermometers) or leave it empty to use the only one. Or choose **Manual** and enter the YAML: ```yaml type: custom:inkbird-cook-card entity: sensor.int_11i_b_temperature # or: device_id: ``` | Option | Description | |---|---| | `device_id` | Optional. The thermometer device (what the visual editor sets). | | `entity` | Optional. Its temperature sensor, the older way to pick the device; `device_id` wins when both are set. | Without `entity`/`device_id` the card uses the only configured thermometer. It finds the other entities of the device through the entity registry, so renamed entity IDs keep working. - **Header:** current temperature, connection, probe and station battery. - **No session:** the app's 26 foods plus *Custom* as tiles; for a food its doneness levels with the temperature, preselected with the doneness last used for that food in this browser — stored when a cook is started with it, not when a chip is only tapped (browser local storage; the app's default without it); **Start** calls `start_cook` with food, doneness and the preset temperature. *Custom*: prefilled with the last custom settings of this thermometer (stored by the integration when a custom cook is started or changed with `update_cook`, so they survive restarts and are the same in every browser; the defaults before the first one); mode **Target**, **Range** (lower limit and **Upper limit**) or **Lower limit only** (`mode: low`, no target, no pre-alarm); temperatures with −5/−1/+1/+5 buttons (a tap steps once, press and hold to repeat; a scroll that starts on a button changes nothing); pre-alarm off/5/10/20/30 °C with **Target** only (hidden for a range or a lower limit, which send it off). **Oven (optional)** for both (sent as `oven_temperature`). - **Running:** food, doneness, target (or range), progress bar from the start temperature to the goal, **Ready at** (estimated finish) and **Remaining** (long remaining times as h:mm; *Estimating* while `estimating`, with *(after +6 °C rise)* below it before the rise, +11 °F in °F; **Stall** with the hint *Core temperature plateau, takes longer* during the stall; *(oven-based)* below the time when the Newton model is used, *(curve)* with the curve model), an oven-temperature input (`number.…_oven_temperature`), the temperature curve since the start (history plus live values, drawn as SVG; the target as a labelled dashed line, a range as a band in the theme's success colour with dashed edges, a lower limit as a labelled dashed line; in target mode with a pre-alarm a thin dashed line in the theme's warning colour at target − pre-alarm, labelled *Pre-alarm 49 °C*; labels at the left edge, away from the newest point, and never on top of each other; while there is an estimate the forecast as a thinner, faded dashed continuation of the curve with a small *now* tick where the measurement ends and a *now* dot on the newest reading while the cook runs (not once it is done), the time axis then ending at the finish — at most twice the elapsed cook time (at least 30 minutes) after now; when capped, the dashed line is cut there and ends in an arrow, and the right label shows *→ finish time* instead of the edge's time — and keeping that end while the estimate briefly gives way to the stall or *Estimating*; with a pre-alarm the target label sits above its line and the pre-alarm label below its own), for a *Custom* cook a collapsed **Settings** section below **Mute alarm** (mode, target, lower limit, pre-alarm as in the start form, prefilled with the running values; **Apply** calls `update_cook` with only the values changed in the section, compared with the values when editing began — an untouched target keeps the device's exact °F, and a value changed elsewhere meanwhile is not reverted —, so the cook keeps its start, curve and history; on success the section closes and *Applied* is announced; values being edited are kept while new readings arrive and while Apply runs; closing the section drops an unapplied edit), **Mute alarm** while an alarm bit is set, and at the very end, set apart, the text button **Finish cook**. - **Timer** (both views, collapsed under *Timer*; the running time shows next to it): the device timer — **Duration** in minutes (−5/−1/+1/+5, only with `number.…_timer_duration`), **Count down**, **Count up**, **Reset** (while a timer runs or rings only **Reset**, and **Mute alarm** on an alarm), the remaining (countdown, from `sensor.…_timer_end`) or elapsed time (count up, counted from when `binary_sensor.…_timer_running` turned on, so after a reconnect or a Home Assistant restart it counts from then), *Time's up* and **Mute alarm** on a timer alarm. A changed duration is written to `number.…_timer_duration` before the timer starts. - **Disconnected:** one compact line; the session's food if one runs. Updates change the card's elements in place (texts and attributes) when only values change, so nothing is rebuilt above the viewport — on the iPad (WebKit, no scroll anchoring) a rebuilt card moved the scrolled page by about 250 px; checked in Chromium and WebKit with `tests/browser/card_scroll_check.mjs`. The card's height stays the same across value updates (reserved note line, fixed status and chart heights); a new state, e.g. a status line instead of the times, can change it. New values glide into place instead of jumping (about 0.6 s, eased: the curve's end, the forecast, the scale, the goal and pre-alarm lines and their labels, the dot); not on the first view, for a new cook, when the card was not shown for a while, or with the system setting *reduce motion*. All colours come from the theme; the layout switches to two columns from 720 px card width (tablet landscape) and stacks on phones. The card text is English or German (*Eigene*, *Garen beenden*, *Plateau*, …) and temperatures are shown in °C or °F, both following the Home Assistant settings (language and unit system). ### Websocket API | Command | Result | |---|---| | `inkbird_thermometer/presets` | The preset table: `foods` (index, key, German `name`, `name_en`, `doneness` list with index/°F/°C, `default_doneness`), `doneness` labels, `custom_index`, `pre_alarm` options | | `inkbird_thermometer/session` (`device_id` or `entity_id`; optional with one device) | `{"entry_id", "session"}`; `session` is `null` or start time, start temperature, mode byte, target, low, food index, doneness index, pre-alarm °C (the device's last answer), oven temperature °C, `reached_at`; plus `custom`: the last custom settings (`mode`, `target`, `low`, `pre_alarm`, `oven_temperature`, °C; `null` before the first custom cook) | ## Supported devices | Model | Status | |---|---| | INT-11I-B | Tested (one unit: station firmware V1.1.4, probe firmware v1.1.4) | | INT-11I-B-P | **Untested** — uses the same protocol according to the Inkbird app (2.1.19) | | ISVT-11-B | **Untested** — uses the same protocol according to the Inkbird app (2.1.19) | The model is taken from the advertised Bluetooth name. Feedback on the untested models is welcome via [issues](https://github.com/radecke/ha-inkbird-thermometer/issues), ideally with the diagnostics attached. ## Setup After installing and restarting, go to **Settings → Devices & services**: the switched-on thermometer is discovered and shown there; click **Add** and confirm. If it does not appear, use **Add integration → Inkbird Thermometer**. Turn the thermometer on. Home Assistant discovers it by its name (`INT-11I-B…`, `ISVT-11-B…`, or `INKBIRD` together with service `ff00`); confirm the discovery. Devices that advertise only as `INKBIRD` with service `ff00` are offered too, because the INT-11I-B advertises like that in pairing mode; other Inkbird models that advertise the same way are offered as well but are expected to fail at login (authentication); they are not supported. You can also add it via **Settings → Devices & services → Add integration → Inkbird Thermometer**. The device keeps the advertised name (e.g. `INT-11I-B`), so the entity IDs start with `…int_11i_b_`. The integration connects whenever the thermometer advertises, enables notifications on every characteristic, authenticates and stays connected. After a disconnect it reconnects on the next advertisement. There are no artificial waits. After authenticating, it synchronises the device clock and reads all settings, the current target, the timer, the device info, the status bits and the short history, like the app does. **Power-off:** the thermometer switches itself off about 12 minutes after the target has been cleared, even while Home Assistant is connected. With a target set it stays on. Nothing in the app or the protocol changes this. ## Diagnostics **Settings → Devices & services → Inkbird Thermometer → ⋮ → Download diagnostics** gives the connection and authentication state, all decoded values, the set status bits (including undecoded ones), the device info (station and probe firmware, probe RSSI), the read-only alarm mode (`0x11`), the short history read after connecting (one value per minute), the last target acknowledgement, the cooking session with curve size, peak rate and its temperature, stall state (with the minutes of a stall being confirmed), whether the probe has risen, Newton latch and the held estimate, the cook-history count and its last record (without curve), the last error codes, the last payload per command byte and the last raw payload of every characteristic. The Bluetooth addresses of station and probe are redacted. Debug logging (`custom_components.inkbird_thermometer: debug`) logs every frame sent and received. ## Limitations - The device works in whole °F. Temperatures in °C are rounded to the nearest °F, so the acknowledged value can differ slightly (37 °C → 99 °F → 37.2 °C). - The allowed target range of the device is unknown; the entities accept 0–150 °C. - Lower-limit-only mode (`01`) is decoded by the app but never sent by it; its frame layout is an assumption. - The probe signal is read once per connection, not continuously. - Not implemented: pairing or removing the probe, resetting/removing the device, display brightness (no setting in the app either), changing the alarm repeat mode (`0x11`, read only). - Not tested: whether the Inkbird app can connect while Home Assistant is connected. - Estimated finish: without a new estimate (thermometer off or out of range, a pulled probe, a stall being confirmed) the last one is held for 30 minutes, then the ETA goes back to `estimating`; with the probe in the station it shows `estimating` at once. - A probe lying on a hot grate or falling out of the meat in the cooker can reach the goal: the cook is then `done` (sticky) and the device's own target alarm sounds too. - A probe that warms up before it is put into the food (sun, warm counter, hot cooker air) can reach the 6 °C rise early or keep a start temperature that is too high, which delays or distorts the first estimate. - After a pulled and re-seated probe the estimate from before is held for about 12–13 minutes (a probe that settles more slowly than in the simulations can still make the first new estimate early), see [Probe pulled or re-seated](#cooking-sessions). - Stall thresholds and the Newton model are textbook values, not yet checked against real cooks with this device. - Tested with **one** INT-11I-B (station firmware V1.1.4, probe firmware v1.1.4, from a BLE capture of that unit). The INT-11I-B-P and ISVT-11-B are untested. - Several thermometers in one Home Assistant installation are untested (the services and the card take a `device_id` for that case). - The card follows Home Assistant's language (English or German; other languages fall back to English) and unit system (°C or °F). ### Known issues - A held estimate is shown only while its finish is still ahead: once that time passes without a new estimate, the state goes back to `estimating` (0.5.0b5; before, the card could show 0 minutes left). - When the fire dies on a large cut, a short false stall can be detected; afterwards *Estimating* is shown while the meat cools. - After the goal is changed, pulling the probe can briefly bring back an estimate for the old goal. - A failed write may be remembered across a reconnect, so a later identical change made in the Inkbird app is not recognised as a new cook. - The count-up timer starts counting again after a Home Assistant restart or a reconnect. - On narrow phones (under 360 px) the stepper row can overflow slightly. - On German phones the label *Schätzung läuft* ("Estimating") wraps. - Muting a ringing timer without a running cook needs the *Timer* section to be opened first. - Screen readers may announce the changing finish time every minute. - **Pre-alarm only with a target alone:** the integration behaves like the Inkbird app, whose custom-preset screen turns the pre-alarm off when the lower limit is switched on and refuses the pre-alarm while a lower limit is set (app 2.1.19, `INT11iCustomPresetActivity`, listeners of `switchLowTemp` / `switchPreAlarm`, with `INT11iPreAlarmEnableTipsDialog`). So `start_cook` and `update_cook` refuse a pre-alarm with a range or a lower limit only (explicit or inferred), every write in those modes sends it off (also from the alarm mode select and the target / lower limit numbers), and the card hides the pre-alarm for both in the start form and in *Settings*. Since the app never sends that combination, which bound the device would warn against in range mode is unknown. The `select.…_pre_alarm` entity refuses anything but `off` while the running mode is a range or lower limit only. - `update_cook` while an alarm rings: whether the device stops a ringing target or pre-alarm when the target moves away is not checked on the device; **Mute alarm** stays available. - The `forecast` attribute starts at the newest per-minute curve point (so it changes once a minute, not with every reading); the card re-anchors it on the newest reading — rescaled in value between that reading and (finish, goal), keeping the straight line or Newton's curve — so the dashed line starts exactly at the measured end. When the reading lies below the forecast, the re-anchored line is a little steeper than the attribute's. - A held estimate (no new one for up to 30 minutes) keeps its finish, so its forecast runs from the newest curve point to that finish (the card re-anchors it on the newest reading), not along the curve that produced it. ## Protocol Reverse engineered from the official app (Android 2.1.19, decompiled; iOS BLE capture); authentication and high target verified against the device on 2026-11-22. Service `ff00`: - `ff01` (notify): bytes 0–1 probe temperature, u16 little endian, °F × 100. Byte 2 unknown. - `ff03` (read, notify): status bits, least significant bit first per byte (0 probe connected, 1 probe charging, 3 too cold, 4 target reached / too hot, 7 and 15 over-temperature, 9 pre-alarm, 12 paired, 14 probe battery, 16 station charging, 24 authenticated, 27 timer alarm, 31 timer running). - `ff04` (read): short history — byte 0 number of data bytes, bytes 2–5 start (unix seconds), then i16 °F × 100 per minute; `7ffe`/`7fff`/`8000` = no value. - `2a19` (battery): byte 0 station %, byte 1 probe %. - `ff02` (notify, write without response): frames `[len][cmd][payload]`, several per write or notification. The device answers here only after notifications are enabled on **all** notify characteristics; answers split over several notifications are joined. - Authentication per connection: `01 fb` → device `07 fb` + 6 byte challenge → `08 fc` + 2 byte ms + 4 byte unix seconds (little endian) + a check byte = CRC-8/DVB-S2 over the 6 time bytes followed by CRC-8/DVB-S2(time bytes) and CRC-8/CDMA2000(challenge) → device `02 fc 00` (ok) or `02 fc 01`. Unauthenticated commands are answered with `02 fe 03`. - Init: `07 19` + clock, then the queries `01 04`, `02 02 01`, `01 08`, `02 0a ff`, `01 0c`, `01 11`, `01 15`, `01 24`, `02 26 01`, `02 37 01`; each is answered with a frame of the same command byte. How each command is confirmed: | Command | Frame | Confirmation | |---|---|---| | Target / range / low | `09 01 01 ` + `04 23 01 00 00` (high, no pre-alarm) or `06 23 01
 00 00 00` | device answers `09 02` (echo) and `06 24` (pre-alarm) |
| Clear target | `09 01 01 00 …` + `04 23 01 00 00` | `09 02` |
| Pre-alarm alone (no target) | `06 23 01 
 00 00 00` | `06 24` |
| Unit | `02 03 43`/`46` | no known echo → re-query `01 04` |
| Sound | `03 0b 5a 02` / `03 0b 11 01` | re-query `01 0c` |
| Display-off time | `03 07 ` | re-query `01 08` |
| Calibration | `0e 09 01  00 × 10` | re-query `02 0a ff` |
| Name | `[len] 36 01 ` | re-query `02 37 01` |
| Timer start | `0a 25 <01 down / 81 up>  ` | re-query `02 26 01` |
| Timer reset | `03 27 01 00` | re-query `02 26 01` |
| Alarm acknowledge | `02 0d 0f`, `03 29 0f 00`, `02 35 0f`, `03 27 01 00` | none; the status bits (`ff03`) show the result |
| Clock | `07 19 ` | `05 20 ` seen in the capture, not awaited |

A state changes only on the device's answer, never optimistically. Details and test vectors: `custom_components/inkbird_thermometer/protocol.py` and `tests/test_protocol.py`.

## Tests

`python3 tests/test_protocol.py` runs the protocol tests without Home Assistant. The full suite needs the Home Assistant test helpers: `pytest-homeassistant-custom-component` up to Home Assistant 2026.10, `pytest-homeassistant` (same version as Home Assistant) from 2026.11 on; then `pytest` from the repository root. Before each release it is run locally against the minimum version from `hacs.json` and the current release (CI runs only hassfest and the HACS action). `ruff check .` and `ruff format --check .` use `ruff.toml`. The card tests (`tests/card_cook_test.mjs`, run by `tests/test_card.py`) need Node.js and are skipped without it.

## License

MIT