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??)
simple multiple lines text device
Moderator: leecollings
- 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
Something like this should work:
Code: Select all
commandArray['UpdateDevice'] ='1234|0|line1\nline2'
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- 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
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)
-
- 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
thanks
it works!
it works!
-
- 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
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)
Who is online
Users browsing this forum: No registered users and 0 guests