Skip to content

Conversation

@allenporter
Copy link
Contributor

Add some raw device payloads to the repo for capturing the device message formats. This captures a prettyprint of the json output which can be manually copied/used in other more focused tests (e.g. trait tests) as needed, or we can automate extracting the trait messages into separate data files as well.

Add a dev dependency on syrupy for snapshot tests that can be updated with --snapshot-update

@allenporter allenporter requested a review from Lash-L August 21, 2025 14:38
@@ -0,0 +1 @@
{"t": 1755785801, "dps": {"102": "{\"id\":20002,\"result\":[{\"start_hour\":22,\"start_minute\":0,\"end_hour\":8,\"end_minute\":0,\"enabled\":1}]}"}}
Copy link
Collaborator

@Lash-L Lash-L Aug 24, 2025

Choose a reason for hiding this comment

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

So the only potential issue:

Some devices give more information than this. I may not have it represented in the container, but my newer vacuum gives extra information for DND about what is allowed during DND.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My assumption is that we'd want to add more samples from devices that are interesting or from debug reports. This came from my device verbatim, so we can also add messages from yours for example.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In this case how is that done? an extra line of json? replace this json? new file? What did you have in mind

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say add another file. We could put the device name in the file, or put in a subdirectory per device.

Lash-L
Lash-L previously approved these changes Aug 24, 2025
@allenporter allenporter merged commit d966b84 into Python-roborock:main Aug 25, 2025
6 checks passed
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