Skip to content
New issue

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

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

Already on GitHub? # to your account

feat(inputs.huebridge): Add plugin #16352

Merged
merged 26 commits into from
Mar 7, 2025

Conversation

hdecarne
Copy link
Contributor

@hdecarne hdecarne commented Dec 28, 2024

Summary

This PR provides the inputs.huebridge plugin for collecting Smart Home statistics.
It gathers status from Hue Bridge devices using the device's CLIP API.
I previously contributed this plugin as an external one. As part of the latest reworks I also converted it into an internal one.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #16351

@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Dec 28, 2024
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @hdecarne for your contribution and sorry for this taking so long! I do have a very first comments in the code.

Additionally, I suggest splitting the code into some more files to make the plugin code more readable. How about defining a bridge type for handling all the discovery stuff, resource gathering and actual data gathering and keep the plugin code to manage the calls to the different bridges? The new type could then more to an own file for readability...

@srebhan srebhan self-assigned this Jan 24, 2025
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks for the update @hdecarne! Here are some more comments on the structure...

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

@hdecarne we are getting closer... Some more comments...

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Awesome work @hdecarne! Just some small style/naming comments and a request to merge the metadata stuff into the bridge type as I feel it should belong there...

@srebhan srebhan changed the title feat(inputs.huebridge): Make inputs.huebridge an internal plugin feat(inputs.huebridge): Add plugin Feb 14, 2025
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @hdecarne for your contribution and quick updates! Could you please resolve the merge conflict?

@srebhan srebhan added new plugin ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Feb 14, 2025
@srebhan srebhan assigned DStrand1 and unassigned srebhan Feb 14, 2025
@hdecarne
Copy link
Contributor Author

@srebhan, I did a dependency update after your review to remove some no longer needed dependencies.

@DStrand1
Copy link
Member

@hdecarne Could you resolve the merge conflict on this PR? Thanks!

@hdecarne
Copy link
Contributor Author

@hdecarne Could you resolve the merge conflict on this PR? Thanks!

@DStrand1, merged.

@DStrand1 DStrand1 merged commit 666ada1 into influxdata:master Mar 7, 2025
5 checks passed
@github-actions github-actions bot added this to the v1.34.0 milestone Mar 7, 2025
asaharn pushed a commit to asaharn/telegraf that referenced this pull request Mar 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin new plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert external plugin inputs.huebridge into an internal one
3 participants