Hello,

i have following xml output to monitor:

<xyz>
<a>1</a>
<b>1</b>
<c>1</c>
<d>1</d>
[...]
</xyz>

so there are many channels.
I use the Rest Custom Sensor. If i select the standard "channel discovery" template i get "$["xyz"]["a"]" for example as the channel names. How should i configure the new rest template to create all channels only with name "a" without the additional characters $ [ ] "

I can't create static channels in the rest template because the names differ for every new website and there are different amounts of channels per xml-site.

So the goal would be to create a rest template which considers dynamic channel names because the standard "channel discovery" template creates the additional characters $,[,],"

Or if you have other suggestions for other approaches feel free to share.

Kind regards


Article Comments

Hi there,

Did you already check out our REST Custom v2 sensor? With this it might be easier to create the sensor channels.


Kind regards

Felix Wiesneth - Team Tech Support


May, 2022 - Permalink