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

Publishing aggregated metrics when in standalone mode #204

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coconup
Copy link

@coconup coconup commented Feb 19, 2024

Background: HA promotes the creation of a single topic per metric. This can result cumbersome to consume for other application. This PR introduces a $STANDALONE environment variable based on which topics are either split (original implementation) or aggregated.

  • Add a $STANDALONE environment variable
  • When the variable is set to a truthy value, aggregate metrics into four common topics:
    • {device_name}/sample
    • {device_name}/cell_voltages
    • {device_name}/temperatures
    • {device_name}/meter

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.

1 participant