project-chip / matter.js

A complete typescript implementation of the Matter protocol specification (https://buildwithmatter.com). Includes full support for controller, device, commissioning, secure communications, device types, and cluster definitions.
Apache License 2.0
346 stars 59 forks source link

Enhance Tests to add Switch tests #1079

Closed Apollon77 closed 2 months ago

Apollon77 commented 2 months ago

The PR is best reviewable as a whole and not by commit!

This PR adds the new pure python Switch cluster tests (at least partially) to matter.js and verifies the Switch logic. For this to work I needed to do the following: