Repository navigation
v4.4.0: choose which Shellys to add, and Gen 4 input states via Modbus - #1
Merged
Merged
Conversation
…vices menu - Shellys announced by mDNS (and found by a new probe-only subnet scan) are classified and remembered by MAC without creating anything. - Every IP device dialog gains a Discovered Shelly menu listing free channels of that type; picking one fills address, channel and PM. The MAC is stored on save only if the fields still match the pick, and a channel taken meanwhile is refused. - New Plugins -> Shelly Direct -> Create Indigo Devices... creates the ticked kinds for one Shelly or all, free channels only, after re-reading the MAC at the address. - Discovery's classification moved unchanged into _classify_shelly; channel_specs() mirrors its creation rules, held to parity by a test. - Discover Shelly Devices is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Z2FM6p63Gkkv8cJ1oUXq8
- Gen 4 relays and dimmers get dynamic input<N> and inputReadVia states. - Switch-type inputs: Input.GetStatus state, and live NotifyStatus deltas. - Button-type inputs (state null over RPC): read over Modbus TCP when the user has enabled Modbus on the Shelly; otherwise live btn_down/btn_up. - Modbus is read-only (functions 2 and 4), checks the MAC over Modbus before trusting a reading, never enables Modbus, and backs off 10 min after a failure. An input that cannot be read is never written. - Register map from Shelly's Modbus and Input API docs; unit id 1 and the MAC byte-order handling follow berkinet/shelly-indigo's hardware test. - tests/test_v440_modbus_inputs.py; docs and changelog updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Z2FM6p63Gkkv8cJ1oUXq8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Choose which Shellys become Indigo devices
Shelly.GetDeviceInfo, classified by the same code Discover uses (now_classify_shelly(), moved unchanged), and remembered by MAC. Nothing is created.channel_specs()follows the same creation rules as_discover_thread. A parity test checks that both produce the same types, names and props. Discover Shelly Devices is unchanged.Gen 4 input states
input<N>andinputReadViastates.Input.GetStatusand from liveNotifyStatusmessages.btn_down/btn_upevents.Docs and version
docs/changelog.md,docs/getting-started.md,docs/plugin-menu.mdanddocs/devices.mdare updated for 4.4.0.Testing
pytest tests: 619 passed, 2 skipped. New tests are intests/test_v440_discovered_devices.pyandtests/test_v440_modbus_inputs.py.ruff checkandcompileallare clean.tests/test_v320_features.pyneeded a_poll_inputsstub on their fake host.input0follows a held button.Generated by Claude Code