icon light difference

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

icon light difference

Post by marktn »

Hi,

Why is there a difference between an virtual switch Icon and normal switch Icon? I like to have the bulb light.

Can i change that? The upper icon is a virtual switch.
Attachments
firefox_2022-06-06_16-57-31.jpg
firefox_2022-06-06_16-57-31.jpg (6.34 KiB) Viewed 413 times
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: icon light difference

Post by HansieNL »

marktn wrote: Monday 06 June 2022 17:02 Hi,

Why is there a difference between an virtual switch Icon and normal switch Icon? I like to have the bulb light.

Can i change that? The upper icon is a virtual switch.
You can change the icon with the parameter iconOn / iconOff in your block config.
See https://dashticz.readthedocs.io/ how to use that parameter.
Blah blah blah
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: icon light difference

Post by marktn »

HansieNL wrote: Monday 06 June 2022 19:40
marktn wrote: Monday 06 June 2022 17:02 Hi,

Why is there a difference between an virtual switch Icon and normal switch Icon? I like to have the bulb light.

Can i change that? The upper icon is a virtual switch.
You can change the icon with the parameter iconOn / iconOff in your block config.
See https://dashticz.readthedocs.io/ how to use that parameter.
Sorry for my late response, thanks for helping!
Nice these icons!

Is it also possible to make the bulb yellow? It is know gray, highlighted
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: icon light difference

Post by HansieNL »

Can you try with the following code:

blocks[groep_woonk_zacht_switch]['iconOn'] = 'fas fa-lightbulb';
blocks[groep_woonk_zacht_switch]['iconOff'] = 'fas fa-lightbulb';
Blah blah blah
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: icon light difference

Post by marktn »

Yes that works. Thanks for the support!!
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest