Skip to content

Add show_stored_node script#32

Merged
balloob merged 3 commits intomainfrom
parse-stored-node
Jun 18, 2022
Merged

Add show_stored_node script#32
balloob merged 3 commits intomainfrom
parse-stored-node

Conversation

@balloob
Copy link
Copy Markdown
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