Skip to content

Question: When using a wildcard, how can I split the values #118

Open
@Hans-S

Description

@Hans-S

Good day,

I am using this plugin to display live data. I can get it to display multiple values when the message is json and contains a name/value pair for each metric. However I also tried to subscribe to this:

Home/+/+/+/power/#

Messages contain electric power consumption per device, of example:

Home/fibaro/fibaro/WashingMachine/power/float 35.53
Home/fibaro/fibaro/Freezer/power/float 0.4

However, in a graph these are all displayed as "value", not as separate values per topic. Ideally, I would want to display the values as "WashingMachine" and "Freezer". But complete topic will do also. Might be possible to split that up with a regex or something.

Is there a way to split the values based on the topic name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions