update textdevice lua

Moderator: leecollings

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

update textdevice lua

Post by tiga »

i want to update a text device
i have this bit working

Code: Select all

commandArray['UpdateDevice']='7734|0| Watt '..-slevering
the result is: Watt -537
but i want it to say: -537 Watt

so i want to switch the text and the number.
i can not get it in this order.is this possible?
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: update textdevice lua

Post by jvdz »

Something like this ;)

Code: Select all

='7734|0|'..-slevering.. 'Watt'
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

Re: update textdevice lua

Post by tiga »

thanks! sometimes you get lost LOL

this fixed my problem :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests