Skip to content

Publishing aggregated metrics when in standalone mode - #204

Open
coconup wants to merge 2 commits into
fl4p:masterfrom
coconup:240219_standalone
Open

Publishing aggregated metrics when in standalone mode#204
coconup wants to merge 2 commits into
fl4p:masterfrom
coconup:240219_standalone

Conversation

@coconup

@coconup coconup commented Feb 19, 2024

Copy link
Copy Markdown

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