Hello,
I get an array from ebusd in mqtt. I tried several ways to make an mqtt sensor in ha from number 6 with the value 12:52, but the result is alway “unknown”.
This is value in mqtt:
This is my last attempt, but it was just as unsuccessful as many others before.
Maybe someone can give me a tip on how to convert the time (12:52) into a sensor.
Thanks for help in advance
Wolfgang
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
sorry, but your tip work’s fine :
value_template: “{{ value_json[‘6’][‘value’] }}” and i get the value 12:52 as expected.
But exactly with this value_template is get the errors in noted above.
Maybe because there is an emtpy string “” ?
Thanks