Linefeed in state

Hi,

i’m using the OVAPI, it is generating 5 busses.
I want that 5 bussen in one sensor/one state.
Is it possible to give a linefeed between the busses?

Can you please give some more details? What is OVAPI? What do you mean with linefeed between the busses? Why is this in the AppDaemon category?

Here some extra information.

OVAPI is a custom-component for Dutch Busses and Trams.
It gives 5 entity’s with a couple of Attributes.
I’ve made a little app that combines the attrubutes in one line.

Now I want the 5 lines in one entity (without attrubutes).
But when I combine the 5 lines I can’t get a newline (CRLF) between the lines.
And that’s what I need.

This is what I’ve done in the App:
self.set_state("sensor.bussen", state=bus1+"\r\n"+bus2+"\r\n"+bus3+"\r\n"+bus4+"\r\n"+bus5)

Not sure, but I think you you can’t have multiline states. Maybe it accepts a list or dict of values or try if you can have womething else as state and write the combined state to an attribute?

Do you get an error in the log with your current methodology or does it just show /n instead of a new line?