Dashticz - afterGetDevices()
Posted: Friday 25 June 2021 10:48
Hello,
I tried following via custom.js
My custom.css
My Block
But no result on display

Domoticz device [78]

Where is the problem ?
Thank you
Dashticz V3.8.3 beta

I tried following via custom.js
Code: Select all
function afterGetDevices(){
if (Domoticz.getAllDevices()[78].Data == 'Off') {
$('.pluie-1h .title').addClass('warningblue');
$('.pluie-1h .state').addClass('warningblue');
}
else {
$('.pluie-1h .title').removeClass('warningblue');
$('.pluie-1h .state').removeClass('warningblue');
}
}
Code: Select all
.warningred {
color: red !important;
}
.warningorange {
color: orange !important;
}
.warninggreen {
color: green !important;
}
.warningblue {
color: blue !important;
}
Code: Select all
blocks['pluie-1h'] = {
idx: 84,
width: 2,
title: '1h',
}

Domoticz device [78]

Where is the problem ?
Thank you
Dashticz V3.8.3 beta
