0
Parse multiple devices from a single mqtt topic?
(feddit.de)
You mean that you just want to have one configuration entry? I doubt that it's possible.
What you could do is creating multiple entries, but you need filter within a template.
{% if value_json['tags'].path == '/mnt/hdd' %}
{{ (value_json['fields'].used_percent | float(default=0)) | round(2) }}
{% else %}
{{ states('sensor.disk_use_percent_sdb3') }}
{% endif %}
Having had a similar use case, I ended up configuring device specific topics within telegraf.
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io