Added support for components/BLU devices #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I don't know if this functionality is actually wanted or you would implement it that way, so feel free to flat out reject it 😉
I recently added two BLU H&T Sensors to my setup and found the documentation to be quite... thin. Documentation says "every pro device can act as a gateway" - for the cloud. If you want to use BLU devices locally, it seems you need to add them as a component as well. I am assuming that all pro devices support components, so I wanted to keep this as encapsulated as possible to only require minimal changes when adding component-support to other exporters.
Anyhow... this implementation works:

And it also has a test with an example-json that shows how components look like on my pro-4pm.
Oh, and this too was done with AI support - this time GitHub CoPilot using Claude Sonnet 4 and quite a lot of guidance.