Skip to content

Add Tuya 2/3/4-channel relay modules with shared input type - #1556

Open
jbothe wants to merge 6 commits into
JohanBendz:develop-0.4.1from
jbothe:device/ih-s09-relay-modules
Open

jbothe wants to merge 6 commits into
JohanBendz:develop-0.4.1from
jbothe:device/ih-s09-relay-modules

Conversation

@jbothe

@jbothe jbothe commented Nov 15, 2026

Copy link
Copy Markdown

Adds exact TS0002/TS0003/TS0004 relay-module pairing profiles so these devices create one independently controllable tile per relay. The physical IH-S09 (_TZ3000_mhhxxjrs / TS0003) previously paired as an unknown device; with this branch it creates three available tiles, and its owner has confirmed that the input-type setting works.

Changes

  • Add three dedicated non-metering profiles using the existing 2/3/4-channel OnOff runtimes, with numbered tile names and product artwork.
  • Expose the same module-wide input-type setting on Relay 1: toggle, state-following and momentary. Children have no duplicate settings. Use endpoint 1, E001/D030 enum8 (0/1/2), guarded by an exact manufacturer/model check and a supported current-value read.
  • Read the current mode on startup without writing defaults. Serialize explicit changes, confirm readback, and attempt to restore the previous mode on failure.
  • Leave existing profiles and shared runtimes unchanged, including _TZ3000_zxrfobzw / TS0002 in its existing driver. Add no master, metering, detached-input or startup-policy capabilities.
  • Regenerate the manifest and supported-device index; retain the historical 0.4.0 inventory checks while accounting separately for these three additions.

Validation

  • homey app build
  • npm test: 215 passed, zero failed, three inherited TODOs (218 total).
  • npm run check:supported-devices
  • npm run validate: publish level passed.
  • Tests include actual pinned zigbee-clusters 2.4.1 wire encoding/decoding, every new allowlisted identity, endpoint mapping, no configuration writes on initialization, unsupported reads and failure/rollback behavior.
  • Installed on Homey Self-Hosted Server with Homey Bridge. The owner freshly paired the physical three-channel module, confirmed three available tiles and confirmed the input-type setting works.

Draft: remaining hardware acceptance

Only _TZ3000_mhhxxjrs / TS0003 has local hardware evidence. The other eight added identities are candidates derived from zigbee-herdsman-converters; there are no local 2/4-channel units or interviews. These candidates can be split out if separate interviews are required. Independent output switching, physical-input reports and restart reconciliation still need acceptance with this app; prior tests using a separate app are documented as protocol evidence only.

See docs/IH-S09_RELAY_MODULES.md for the interview summary, exact identity matrix, implementation details and remaining checks. Targeting develop-0.4.1 per CONTRIBUTING.md. No version bump or Store publication is included.

@jbothe
jbothe marked this pull request as ready for review November 15, 2026 09:28
@jbothe
jbothe requested a review from JohanBendz as a code owner November 15, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant