Page 1 of 1

On/Off Switch not visible on dashboard

Posted: Wednesday 08 December 2021 3:10
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 525 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

Re: On/Off Switch not visible on dashboard

Posted: Wednesday 08 December 2021 8:16
by Lokonli
Check 'use_favorites' in CONFIG.js. You probably have to set it to false.

Re: On/Off Switch not visible on dashboard

Posted: Wednesday 08 December 2021 8:54
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)

Re: On/Off Switch not visible on dashboard

Posted: Thursday 09 December 2021 23:04
by DomoVince
It was exactly my issue, Thanks a lot !

I can light up my Christmas tree from Dashticz.

Regards,