OpenHausIO / plugin-collection

List of currenlty available OpenHaus plugins
0 stars 0 forks source link

Create a "State Aggregation" plugin? #2

Open mStirner opened 2 months ago

mStirner commented 2 months ago

Can be used to create virtual sumarized states. (Combined with logical operations such as "and", "or", "average")

Examples:

mStirner commented 2 months ago

Endpoint config example via labels:

[
  "plg.summarized.enabled=true",
  "plg.summarized.states[]=66b9be9cd52f0d80de2c50f3",
  "plg.summarized.states[]=66b9bea46331677165a1b18b",
  "plg.summarized.states[]=...",
  "plg.summarized.operation=average",
]

Or as json string?

[
  'plg.summarized.config={"enabled": true, "states": ["66b9be9cd52f0d80de2c50f3", "66b9bea46331677165a1b18b", "..."], "operation": "average"}'
]

209 (top) vs 144 (bottom) chars