On/Off Switch not visible on dashboard

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

On/Off Switch not visible on dashboard

Post by DomoVince »

Hi,

I use the.version 3.8.6 of Dashticz.
I try to add a block for a plug on my dashboard and this kind of device seem to not be well reconized by Dashticz :
Capture d’écran 2021-12-08 à 02.53.31.png
Capture d’écran 2021-12-08 à 02.53.31.png (337.81 KiB) Viewed 477 times
My block declaration is :

blocks['Sapin'] = {
idx: 233,
title: 'Sapin',
iconOn: 'fas fa-toggle-on',
iconff: 'fas fa-toggle-off',
width: 3,
last_update: false
}


The block is not visible in the dashboard.
The HTML coed generated for the block is :

<div data-id="233" class="mh transbg block_Sapin"></div>

What is strange, if I change the type of block to dial, the block is visible ...
I try to create a group with the switch inside and create a block from this group, I got the same result the html code is not generated for the block.

Could you help me ?

Regards,

Vincent
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: On/Off Switch not visible on dashboard

Post by Lokonli »

Check 'use_favorites' in CONFIG.js. You probably have to set it to false.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: On/Off Switch not visible on dashboard

Post by Lokonli »

DomoVince wrote: Wednesday 08 December 2021 3:10 Hi,

I use the.version 3.8.6 of Dashticz.
I try to add a block for a plug on my dashboard and this kind of device seem to not be well reconized by Dashticz :

Capture d’écran 2021-12-08 à 02.53.31.png

My block declaration is :

blocks['Sapin'] = {
idx: 233,
title: 'Sapin',
iconOn: 'fas fa-toggle-on',
iconff: 'fas fa-toggle-off',
width: 3,
last_update: false
}


The block is not visible in the dashboard.
The HTML coed generated for the block is :

<div data-id="233" class="mh transbg block_Sapin"></div>

What is strange, if I change the type of block to dial, the block is visible ...
I try to create a group with the switch inside and create a block from this group, I got the same result the html code is not generated for the block.

Could you help me ?

Regards,

Vincent
And check here as well:
https://dashticz.readthedocs.io/en/beta ... n-dashticz

(I've added this troubleshooting page after your post)
DomoVince
Posts: 7
Joined: Sunday 20 December 2020 12:29
Target OS: -
Domoticz version:
Contact:

Re: On/Off Switch not visible on dashboard

Post by DomoVince »

It was exactly my issue, Thanks a lot !

I can light up my Christmas tree from Dashticz.

Regards,
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest