Switch/Selector How to make new line LevelNames

Moderator: leecollings

Post Reply
kacza
Posts: 3
Joined: Tuesday 31 January 2023 13:27
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Contact:

Switch/Selector How to make new line LevelNames

Post by kacza »

Hi,
I know how to encode and decode LevelNames but I don't know how to make the names not stick out beyond the outline.

How to put new line in Switch Selector LevelNames when there's more levels?
Attachments
135221.jpg
135221.jpg (20.01 KiB) Viewed 497 times
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Switch/Selector How to make new line LevelNames

Post by waltervl »

Use the drop down selector type (through Edit button) as that has been designed to use selector switches with too much levels.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
kacza
Posts: 3
Joined: Tuesday 31 January 2023 13:27
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Contact:

Re: Switch/Selector How to make new line LevelNames

Post by kacza »

Thank you for your reply. I know what you mean but I've seen some smart guys do it differently.
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Switch/Selector How to make new line LevelNames

Post by waltervl »

Then we wait for the smart guys.... :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
kacza
Posts: 3
Joined: Tuesday 31 January 2023 13:27
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Contact:

Re: Switch/Selector How to make new line LevelNames

Post by kacza »

I did it. Used two times function

Code: Select all

if {} else {}
in file LightsController(.)js file and it's wotking.

Do not be mean xD
The thread can be closed.
Attachments
182528.jpg
182528.jpg (21.86 KiB) Viewed 460 times
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Switch/Selector How to make new line LevelNames

Post by waltervl »

Document it as you will loose this change after an update.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest