Skip to content

Add IoTiX Adam board - #2880

Merged
J. Nick Koston (bdraco) merged 8 commits into
esphome:mainfrom
johnywind:add-iotix-adam
Nov 5, 2026
Merged

J. Nick Koston (bdraco) merged 8 commits into
esphome:mainfrom
johnywind:add-iotix-adam

Conversation

@johnywind

Copy link
Copy Markdown
Contributor

What does this implement/fix?

Adds a curated board definition for the IoTiX Adam, an ESP32 I/O controller
designed in Romania (https://www.tindie.com/products/iotix/adam/).

The board has 16 digital inputs and 16 digital outputs on two onboard PCF8575
expanders on I2C (SDA GPIO21 / SCL GPIO22):

  • outputs: PCF8575 @ 0x26, active-low (inverted: true)
  • inputs: PCF8575 @ 0x27, active-low (inverted: true)

The manifest defines the pin map (I2C + BOOT pins marked occupied), the I2C bus
and both expanders as default components, and all 16 DO (switch.gpio) and
16 DI (binary_sensor.gpio) entries as featured components, collapsed by the
sync into a single "IoTiX Adam (full setup)" bundle (full_config: true).

Pin assignments and addresses are taken from a working production config on
real hardware. I'm affiliated with IoTiX and can provide more hardware details
if needed.

Only the manifest is included in this PR, so the generated catalog JSON
(boards.index.json, board_bodies/iotix-adam.json,
featured_components.index.json) still needs regenerating. I'll apply the
regen patch from the CI comment, or feel free to push it.

Related issue or feature (if applicable):

  • n/a

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — docs
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Frontend coordination

  • No frontend change needed
  • Companion frontend PR: esphome/device-builder-frontend#

Checklist

  • The code change is tested and works locally.
  • Pre-commit hooks pass (ruff, codespell, yaml/json/python checks).
  • Tests have been added or updated under tests/ where applicable.
  • components.index.json / definitions/components/*.json have not been hand-edited (regenerate via script/sync_components.py if a sync is needed).
  • Architecture-level changes are reflected in docs/ARCHITECTURE.md and/or docs/API.md.

@github-actions github-actions Bot added the new-feature New feature label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ Board catalog is in sync with the manifests.

@codspeed

codspeed Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing johnywind:add-iotix-adam (0d18f92) with main (5077a3d)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@esphbot

ESPHome Bot (esphbot) commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Previous review — superseded by a newer review below.

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Important issues found.

  • Generated catalog JSON not committed, so the board won't ship and CI fails

@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (5077a3d) to head (0d18f92).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2880   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         300      300           
  Lines       26484    26484           
=======================================
  Hits        26423    26423           
  Misses         61       61           
Flag Coverage Δ
py3.12 99.73% <ø> (+<0.01%) ⬆️
py3.14 99.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@esphbot

ESPHome Bot (esphbot) commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Previous review — superseded by a newer review below.

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

@bdraco

Copy link
Copy Markdown
Member

We are trying to avoid expanding the list of external urls in the catalog. Can you submit this to devices.esphome.io so the images land there?

@bdraco
J. Nick Koston (bdraco) marked this pull request as draft October 8, 2026 20:39
@johnywind
Marius Vantu (johnywind) marked this pull request as ready for review October 13, 2026 12:55
@johnywind
Marius Vantu (johnywind) marked this pull request as draft October 13, 2026 12:55
@esphbot

ESPHome Bot (esphbot) commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Previous review — superseded by a newer review below.

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

@johnywind
Marius Vantu (johnywind) marked this pull request as ready for review November 5, 2026 09:42
@bdraco

Copy link
Copy Markdown
Member

Addressed in 7ff83ea now that esphome/devices.esphome.io#1903 has merged: the board image now loads from devices.esphome.io (raw.githubusercontent.com/esphome/devices.esphome.io/main/src/docs/devices/IoTiX-Adam/adam.webp, the same pattern other boards use) instead of assets.iotix.ro, and docs_url points at https://devices.esphome.io/devices/IoTiX-Adam/. product_url stays on the manufacturer's shop page. I regenerated the board with script/update_board.py; the generated JSON only changes those two URLs.

ESPHome Bot (@esphbot) review

@bdraco

Copy link
Copy Markdown
Member

Follow-up to that review in 0d18f92: I also dropped product_url (shop.iotix.ro), so the board adds no new external domain. This matches kincony_kc868_a16, which carries no product_url, and the shop link already appears on the devices.esphome.io page through its project-url. The board now references only devices.esphome.io (image through raw.githubusercontent.com, docs_url to the device page).

ESPHome Bot (@esphbot) review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The PCF8575 channel mapping and active-low output defaults require human verification against the board because hardware and ESPHome runtime validation were unavailable.

No open issues 🎉

What changed in this PR

Adds IoTiX Adam to the Device Builder’s curated board catalog, with presets for its 16 digital inputs and 16 digital outputs.

Changes:

  • Defines ESP32 board metadata and reserves the BOOT and onboard I2C pins.
  • Configures two PCF8575 expanders with active-low I/O presets and a full-setup bundle.
  • Includes the generated catalog artifacts needed to expose the board and its components.
File Description
esphome_device_builder/​definitions/​featured_components.index.json Adds the I2C bus, expanders, and 32 I/O presets.
esphome_device_builder/​definitions/​boards/​iotix-adam/​manifest.yaml Defines board metadata, reserved pins, defaults, and featured components.
esphome_device_builder/​definitions/​boards.index.json Registers IoTiX Adam in the board catalog.
esphome_device_builder/​definitions/​board_bodies/​iotix-adam.json Provides generated board details and the full-setup bundle.

Review effort: Balanced

@bdraco
J. Nick Koston (bdraco) merged commit 97e8a74 into esphome:main Nov 5, 2026
23 checks passed
@esphbot

Copy link
Copy Markdown
Contributor

PR Review — Add IoTiX Adam board

Merge-ready. The maintainer's request is resolved, and the earlier docs_url suggestion is fixed.

What's solid:

  • The board uses only devices.esphome.io now:
    • the image loads from raw.githubusercontent.com/esphome/devices.esphome.io/...
    • docs_url points at the device page at manifest.yaml:26
  • product_url is removed. A search of definitions/ finds no iotix.ro reference in any file.
  • The generated artefacts match the manifest: boards.index.json, board_bodies/iotix-adam.json and featured_components.index.json. They show the same URLs, the 35-id all_recommended bundle and pcf8574:hub_*:N locked pins.
  • The expander setup follows the kincony_kc868_a16 pattern:
    • both hubs are locked to PCF8575 mode at 0x26 and 0x27
    • all 32 I/O entries are inverted
    • every I/O entry requires the bus and its hub
    • GPIO0, GPIO21 and GPIO22 are marked occupied

What needs attention:

  • Nothing. The previous suggestion (docs_url pointing at the generic PCF8574 page) is resolved.

✅ Resolved since last review (1)

Previously-flagged issues verified fixed
  • esphome_device_builder/definitions/boards/iotix-adam/manifest.yaml:27 docs_url links to the generic PCF8574 page instead of board documentation


Checklist

  • Generated catalog artefacts committed alongside manifest
  • Featured component shapes match existing PCF8575 board convention
  • No hardcoded secrets
  • Board media hosted on devices.esphome.io (no new external domains)
  • Board metadata links are accurate

Automated review by Kōan (Claude) HEAD=0d18f92 18s

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new-feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants