добавил строчку для изменения иконки DarknessMode
добавил строчку для изменения иконки, может кому пригодится то меняем код в
htdocs\modules\devices\darknessmode_activate.php
<?php
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
//groupSunset
$objects = getObjectsByProperty('groupSunset', '=', 1);
$this->setProperty('icon', 'darknesOn');
$total = count($objects);
for ($i = 0; $i < $total; $i++) {
usleep(50000);
callMethodSafe($objects[$i] . '.turnOn', array('source' => 'DarknessMode'));
$this->setProperty('active ', '1');
//sleep(1);
}
htdocs\modules\devices\darknessmode_deactivate.php
меняем на:
<?php
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
//groupSunrise
$objects = getObjectsByProperty('groupSunrise', '=', 1);
$this->setProperty('icon', 'darknesOff');
$total = count($objects);
for ($i = 0; $i < $total; $i++) {
if (getGlobal($objects[$i] . '.status')) {
usleep(50000);
callMethodSafe($objects[$i] . '.turnOff', array('source' => 'DarknessMode'));
//sleep(1);
}
}
Москва, Россия
На форуме: yoshok