Can not change icones for switch Lightning 6

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Can not change icones for switch Lightning 6

Post by xavierlp »

Hello all

I need your help on this case : (may be a bug)

On my switch with type lightning 1, I can change the icone.
bureau Light 1.png
bureau Light 1.png (10.84 KiB) Viewed 713 times
bureau Light 2.png
bureau Light 2.png (14.07 KiB) Viewed 713 times

On switches with lignthin 6 : no options....
entree Light 1.png
entree Light 1.png (12 KiB) Viewed 713 times
I couldn't find anytging about that. Is it a bug ?

I'm using 2020.1 on RPI4

Thanks a lot for any ideas.
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

entree Light 2 (2).png
entree Light 2 (2).png (11.79 KiB) Viewed 712 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Can not change icones for switch Lightning 6

Post by waaren »

xavierlp wrote: Thursday 16 April 2020 10:54 I need your help on this case : (may be a bug)
On switches with lignthin 6 : no options....
Thanks a lot for any ideas.
Can you please try and test by changing line 8 of <domoticz dir>/www/app/devices/deviceFactory.js from

Code: Select all

                return ['Light/Switch', 'Lighting 1', 'Lighting 2', 'Lighting 5','Color Switch'].includes(device.Type) &&
to

Code: Select all

               return ['Light/Switch', 'Lighting 1', 'Lighting 2', 'Lighting 5','Lighting 6','Color Switch'].includes(device.Type) &&
and clear browser cache and app cache (different things)
Maybe also a domoticz restart is needed.

If successful I will create a PR for this
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Yesssss

It works : Thanks a lot :D
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Dear Waaren,

If you can also add "Home Confort", It could be great.

I could test it, and it works also

thanks again
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Can not change icones for switch Lightning 6

Post by waaren »

xavierlp wrote: Sunday 19 April 2020 22:55 If you can also add "Home Confort", It could be great.
Can you please explain what this is and attach a screenshot of the current icon ? I have no idea what this is.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Image


Envoyé de mon iPhone en utilisant Tapatalk
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Image
Hello it is a device for a lamp

By défaut only the lamp icone is available

I could update the line 8 to have this :


Envoyé de mon iPhone en utilisant Tapatalk
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Image


Envoyé de mon iPhone en utilisant Tapatalk
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Can not change icones for switch Lightning 6

Post by waaren »

xavierlp wrote: Monday 20 April 2020 22:22 A picture says more .....
OK clear. I created Pull Request #4089 . If @gizmocuz is OK it will be merged in one of the next Beta's
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
xavierlp
Posts: 70
Joined: Tuesday 01 November 2016 16:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: Can not change icones for switch Lightning 6

Post by xavierlp »

Thanks again


Envoyé de mon iPhone en utilisant Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest