Dashticz, alternative dashboard based on HTML, CSS, jQuery
Moderators: leecollings , htilburgs , robgeerts
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » 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?
Lokonli
Posts: 2287 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » 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.
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Wednesday 30 October 2019 14:20
Ok. Thank you
Lokonli
Posts: 2287 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Thursday 31 October 2019 21:52
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'
}
flemm
Posts: 25 Joined: Thursday 20 February 2020 8:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11780
Location: Netherlands
Contact:
Post
by flemm » Thursday 20 February 2020 8:11
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!
Mario ipsum RGB mushroom 1-up.
Lokonli
Posts: 2287 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Thursday 20 February 2020 12:58
What is the device type for which you want to change the image? Also the thermostat device?
flemm
Posts: 25 Joined: Thursday 20 February 2020 8:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11780
Location: Netherlands
Contact:
Post
by flemm » Thursday 20 February 2020 17:48
Yes, the image for my Nest, with class .iconheating, which is set to heating.png..
Mario ipsum RGB mushroom 1-up.
Lokonli
Posts: 2287 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » 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?
flemm
Posts: 25 Joined: Thursday 20 February 2020 8:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11780
Location: Netherlands
Contact:
Post
by flemm » Wednesday 13 May 2020 16:20
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!
Attachments
Screenshot 2020-05-13 at 16.17.29.png (31.99 KiB) Viewed 350 times
Mario ipsum RGB mushroom 1-up.
Lokonli
Posts: 2287 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Wednesday 13 May 2020 17:30
Thanks for the feedback!
Users browsing this forum: No registered users and 1 guest