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?
Switch/Selector How to make new line LevelNames
Moderator: leecollings
-
- 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
- Attachments
-
- 135221.jpg (20.01 KiB) Viewed 497 times
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
Thank you for your reply. I know what you mean but I've seen some smart guys do it differently.
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
I did it. Used two times function in file LightsController(.)js file and it's wotking.
Do not be mean xD
The thread can be closed.
Code: Select all
if {} else {}
Do not be mean xD
The thread can be closed.
- Attachments
-
- 182528.jpg (21.86 KiB) Viewed 460 times
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest