Can device titles be reduced in length?


#1

I have a few devices that are quite long. They are like that for a reason though. But when I use Lannouncer I would like to have the device name only be the first 15 characters. I thought concatenate would do this but it isn’t.

Is there a way to do this with variables?


#2

https://wiki.webcore.co/Functions#left


#3

How would I tie that to the following?

Would the left go before msg?
left(“hello world”, 2)
Ex. left (“msg”, 10)


#4

You might need to loose the quotations around the variable name… but yes, your example looks ok (assuming there is only one device listed in the variable)


#5

No that is the issue openSensors are a list of devices.


#6

This works:

Took a bit of work getting the commas and the “and” in the right place lol


#7

Thanks! What about the opposite. If I want to take off the prefix instead of suffix of the word? Would I change left to right in the Set Varialbe on line 31?


#8

Yes


#9

All three of them?


#10

Yes