Skip to content

Read Shelly input type through RPC#12551

Open
MaxRink wants to merge 2 commits into
Koenkk:masterfrom
MaxRink:shelly-input-type-rpc-readback
Open

Read Shelly input type through RPC#12551
MaxRink wants to merge 2 commits into
Koenkk:masterfrom
MaxRink:shelly-input-type-rpc-readback

Conversation

@MaxRink

@MaxRink MaxRink commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • read Shelly switch_type through Input.GetConfig on the RPC endpoint before falling back to the standard switch config cluster
  • write Shelly switch_type through Input.SetConfig on the RPC endpoint before falling back to the standard switch config cluster
  • map Shelly switch/button to the existing Zigbee2MQTT toggle/momentary values

Dependency

Draft until #12550 lands, because this reuses the shared Shelly RPC request helper added there. After that merges, this branch should be rebased onto master so the PR contains only the input-type commit.

Tests

  • pnpm test -- test/shelly.test.ts
  • pnpm run check
  • pnpm run build
  • git diff --check
  • pre-commit hook: pnpm run build, pnpm run check, pnpm test

@MaxRink MaxRink force-pushed the shelly-input-type-rpc-readback branch from cad694d to 0ac3364 Compare June 25, 2026 18:28
@MaxRink MaxRink marked this pull request as ready for review June 26, 2026 18:33
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