Page 1 of 1
can't choose another img in block
Posted: Wednesday 30 October 2019 11:06
by Dave47
Hallo I have block 276 for thermostat settings.
By default there is an img file img/heating.png
I can't change it for this block
Code: Select all
blocks["'276']['image'] = '../img/example.png';
Code: Select all
blocks["'276']['image'] = 'example.png';
Code: Select all
blocks['276'] = {}
blocks['276']['width'] = 6;
blocks['276']['title'] = 'Instelling';
Is it not possible because this is a thermostat?
Re: can't choose another img in block
Posted: Wednesday 30 October 2019 12:43
by Lokonli
Dave47 wrote: ↑Wednesday 30 October 2019 11:06
Hallo I have block 276 for thermostat settings.
By default there is an img file img/heating.png
I can't change it for this block
Code: Select all
blocks["'276']['image'] = '../img/example.png';
Code: Select all
blocks["'276']['image'] = 'example.png';
Code: Select all
blocks['276'] = {}
blocks['276']['width'] = 6;
blocks['276']['title'] = 'Instelling';
Is it not possible because this is a thermostat?
Correct. Currently the image for a thermostat device is fixed.
I was improving this already for some special blocks. As a next step I'll look into the domoticz devices.
Re: can't choose another img in block
Posted: Wednesday 30 October 2019 14:20
by Dave47
Ok. Thank you
Re: can't choose another img in block
Posted: Thursday 31 October 2019 21:52
by Lokonli
Lokonli wrote: ↑Wednesday 30 October 2019 12:43
Dave47 wrote: ↑Wednesday 30 October 2019 11:06
Hallo I have block 276 for thermostat settings.
By default there is an img file img/heating.png
I can't change it for this block
Code: Select all
blocks["'276']['image'] = '../img/example.png';
Code: Select all
blocks["'276']['image'] = 'example.png';
Code: Select all
blocks['276'] = {}
blocks['276']['width'] = 6;
blocks['276']['title'] = 'Instelling';
Is it not possible because this is a thermostat?
Correct. Currently the image for a thermostat device is fixed.
I was improving this already for some special blocks. As a next step I'll look into the domoticz devices.
It seems it's already possible to change the image or icon for a thermostat block.
@Dave47:
Can you test by adding the following to your CONFIG.js:
Code: Select all
blocks['276_2'] = {
image: 'example.png'
}
Re: can't choose another img in block
Posted: Thursday 20 February 2020 8:11
by flemm
Hi! I've just started with domoticz & dashticz about a week ago, and really like it.
Sorry to bump this. I've been trying for days to figure out a way to change the heating.png image to an icon, without success. So i was glad that i found this thread.
I've tried changing it to an other image file as suggested, but that doesn't seem to work.
Has there been any progress with this feature? Or might there be some sort of workaround to override the default image for this block?
Thanks!
Re: can't choose another img in block
Posted: Thursday 20 February 2020 12:58
by Lokonli
What is the device type for which you want to change the image? Also the thermostat device?
Re: can't choose another img in block
Posted: Thursday 20 February 2020 17:48
by flemm
Yes, the image for my Nest, with class .iconheating, which is set to heating.png..
Re: can't choose another img in block
Posted: Friday 10 April 2020 17:48
by Lokonli
It should be implemented in latest beta, at least for a generic thermostat device. Can you check with your Nest?
Re: can't choose another img in block
Posted: Wednesday 13 May 2020 16:20
by flemm
Lokonli wrote: ↑Friday 10 April 2020 17:48
It should be implemented in latest beta, at least for a generic thermostat device. Can you check with your Nest?
Sorry, i've been busy with other things than my dashboard lately, so my reply is a little late. Still use my dash daily though, and yes, it works like a charm. Thanks for implementhing the fix!
Re: can't choose another img in block
Posted: Wednesday 13 May 2020 17:30
by Lokonli
Thanks for the feedback!