Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add show_stored_node script #32

Merged
merged 3 commits into from
Jun 18, 2022
Merged

Add show_stored_node script #32

merged 3 commits into from
Jun 18, 2022

Conversation

balloob
Copy link
Contributor

@balloob balloob commented Jun 18, 2022

Add a script to parse a node dump or a matter_experimental custom integration storage file and print out all nodes and the entities they map to.

Added the output of the lighting example app as a fixture and run CI against it. This can be expanded to a lot more entities in the future.

❯ python3 -m scripts.show_stored_node tests/fixtures/nodes/lighting-example-app.json
<MatterNode 4337>
  <MatterDevice DimmableLight (N:4337, E:1)>
    - Platform: light
      entity_cls: MatterLight
      Subscriptions:
       - OnOff.Attributes.OnOff
       - LevelControl.Attributes.CurrentLevel

@balloob balloob merged commit 14c7f83 into main Jun 18, 2022
@balloob balloob deleted the parse-stored-node branch June 18, 2022 04:20
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.

2 participants