Skip to content

[dirigera] Add matter plugs #20484

Open
weymann wants to merge 3 commits intoopenhab:mainfrom
weymann:dirigera-matter-plugs
Open

[dirigera] Add matter plugs #20484
weymann wants to merge 3 commits intoopenhab:mainfrom
weymann:dirigera-matter-plugs

Conversation

@weymann
Copy link
Copy Markdown
Member

@weymann weymann commented Mar 30, 2026

Add support for Matter plugs GRILLPLATS and TOFSMYGGA.

Fixes #20436

@weymann weymann force-pushed the dirigera-matter-plugs branch from 10b6892 to e1a5084 Compare March 30, 2026 21:12
weymann added 2 commits March 30, 2026 23:21
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

initial version

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

cleanup

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
@weymann weymann force-pushed the dirigera-matter-plugs branch from ebf6692 to 31663d9 Compare March 30, 2026 21:22
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

correct readme link

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Dirigera Matter support for IKEA smart plugs (e.g., GRILLPLATS / TOFSMYGGA) by introducing a new Matter outlet thing type, mapping outlet + electrical-sensor relations, and extending the Matter model to support additional state/command conversions.

Changes:

  • Add a new matter-outlet thing type and discovery/identification mapping for Matter outlet + electricalSensor devices.
  • Extend Matter device configuration (devices.json) to expose power/startup and electrical measurement channels for these devices.
  • Add tests and test fixtures for GRILLPLATS and update existing test expectations accordingly.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
bundles/org.openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/model/MatterModel.java Adds DateTime state conversion, format transformation for commands, numeric command parsing, and extra logging for unknown device types.
bundles/org.openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/model/DirigeraModel.java Identifies Matter outlet/electricalSensor devices as THING_TYPE_MATTER_OUTLET.
bundles/org.openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/handler/matter/MatterOutlet.java New handler class for Matter outlet things (currently a thin BaseMatterHandler wrapper).
bundles/org.openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/DirigeraHandlerFactory.java Wires the new THING_TYPE_MATTER_OUTLET to the new MatterOutlet handler.
bundles/org.openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/Constants.java Adds THING_TYPE_MATTER_OUTLET and includes it in supported types.
bundles/org.openhab.binding.dirigera/src/main/resources/json/matter/devices.json Adds device model entries for outlet and electricalSensor including channel mappings.
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/matter.xml Declares the new matter-outlet thing-type.
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/i18n/dirigera.properties Adds i18n label/description keys for matter-outlet.
bundles/org.openhab.binding.dirigera/README.md Documents the new Matter plug thing type.
bundles/org.openhab.binding.dirigera/src/test/java/org/openhab/binding/dirigera/internal/model/TestModel.java Updates expected device/discovery counts for the new fixtures.
bundles/org.openhab.binding.dirigera/src/test/java/org/openhab/binding/dirigera/internal/handler/matter/TestMatterOutlet.java Adds handler creation/initialization/command tests for Matter outlets.
bundles/org.openhab.binding.dirigera/src/test/resources/home/matter-home.json Adds GRILLPLATS outlet + electrical sensor devices to the simulated home model.
bundles/org.openhab.binding.dirigera/src/test/resources/devices/grillplats.json Adds a dedicated GRILLPLATS device fixture.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dirigera] Add support for IKEA GRILLPLATS plugs

3 participants