I use Weather Display for my weather station and am using thr clientraw integration to bring some local data to my dashboard.
Over the weekend I decided to obtain some different data using mqtt from Weather Display to my system. That was interesting but doable.
I am at the point of being stuck on how to format the data. For example, temp comes back as wd{ 19 }. I’m sure there a json call to extract the data and that is where I need help.
Please post the sensor config you are using. If a sensor returns the string wd{ 19 } which is not valid json, you can extract the number with the following template:
value_template: '{{ value.split("{")[1].split("}")[0] | int }}'
Just wanted to thank you again for the help. I was able to use the example to extract data that had units. And later on used it to extract string data.