simple multiple lines text device

Moderator: leecollings

Post Reply
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

simple multiple lines text device

Post by tiga »

i try to understand how to get multiple lines into a dummy text device

for example :

line 1
line 2
line 3

i have found this: TEXT = Text you want to display, can be multiple lines when adding \r\n to the string.

but i dont know how to implement it.

i think it goes at the end of this: commandArray['UpdateDevice'] ='1234|0|(somehow here??)
User avatar
jvdz
Posts: 2208
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: simple multiple lines text device

Post by jvdz »

Something like this should work:

Code: Select all

commandArray['UpdateDevice'] ='1234|0|line1\nline2'
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
zicht
Posts: 271
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: simple multiple lines text device

Post by zicht »

and text sensors support native HTML like color and also <br>
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

Re: simple multiple lines text device

Post by tiga »

thanks
it works!
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

Re: simple multiple lines text device

Post by tiga »

zicht wrote: Wednesday 19 July 2023 21:14 and text sensors support native HTML like color and also <br>
i tried with the color thing but in the mobile app you see:<font color="red"> instead the real color red.
zicht
Posts: 271
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: simple multiple lines text device

Post by zicht »

tiga wrote: Wednesday 19 July 2023 21:39 i tried with the color thing but in the mobile app you see:<font color="red"> instead the real color red.
Thats caused by the mobile app not domoticz. The text sensor itself accepts html just fine.
I have many sensors populated this way also with <a href= making links in text sensors and then you can click the link as it should.
Open domoticz on your device and check (it has a mobile page)
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests