. */ if (!isConnect('admin')) { throw new Exception('401 - {{Accès non autorisé}}'); } $eqLogic = eqLogic::byId(init('eqLogic_id')); if (!is_object($eqLogic)) { throw new Exception('{{Equipement non trouvé}}' . ' : ' . init('eqLogic_id')); } sendVarToJS([ 'jeephp2js.md_eqLogicConfigure_Info' => utils::o2a($eqLogic), 'jeephp2js.md_eqLogicConfigure_InfoSearchString' => urlencode(str_replace('#', '', $eqLogic->getHumanName())) ]); ?>
{{Logs}} {{Liens}} {{Informations}} {{Sauvegarder}} {{Supprimer}}
{{Général}}
getEqType_name()); $method_toHtml = $class->getMethod('toHtml'); if ($method_toHtml->class == $eqLogic->getEqType_name()) { echo ''; } ?>
-
getStatus('numberTryWithoutSuccess', 0) ?>
getStatus('lastCommunication') ?>
{{Commandes}} getCmd()) as $cmd) { $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; } echo $display; ?>
{{Nom}} {{Type}} {{Valeur}} {{Action}}
' . $cmd->getHumanName() . '' . $cmd->getType() . ' ' . $cmd->getSubtype() . ''; if ($cmd->getType() == 'info') { $value = htmlspecialchars($cmd->execCmd()); $title = '{{Date de valeur}} : ' . $cmd->getValueDate() . '
{{Date de collecte}} : ' . $cmd->getCollectDate(); if (strlen($value) > 50) { $title .= '
{{Valeur}} : ' . $value; $value = trim(substr($value, 0, 50)) . '...'; } $display .= '' . $value . ' ' . $cmd->getUnite() . ''; } $display .= '
'; $display .= ''; $display .= '
widgetPossibility('custom')) { ?>
widgetPossibility('custom::graph')) { ?>
{{Graphique de fond}}
getDisplay('widgetTmpl', 1) == 1 && is_array($eqLogic->widgetPossibility('parameters')) && count($eqLogic->widgetPossibility('parameters')) > 0) { ?> {{Paramètres du template}} $value) { $display .= ''; } echo $display; ?> widgetPossibility('parameters'))) { $echo = ''; foreach (($eqLogic->widgetPossibility('parameters')) as $pKey => $parameter) { $echo .= ''; $echo .= ''; foreach ((jeedom::getConfiguration('eqLogic:displayType')) as $key => $value) { $echo .= ''; } $echo .= ''; } echo $echo; } ?>
' . $value['name'] . '
'; $echo .= $parameter['name']; $echo .= '
'; if (!isset($parameter['allow_displayType'])) { continue; } if (!isset($parameter['type'])) { continue; } if (is_array($parameter['allow_displayType']) && !in_array($key, $parameter['allow_displayType'])) { continue; } if ($parameter['allow_displayType'] === false) { continue; } $default = ''; $display = ''; if (isset($parameter['default'])) { $display = ' style="display:none;"'; $default = $parameter['default']; $echo .= ' '; } switch ($parameter['type']) { case 'color': if ($parameter['allow_transparent']) { $echo .= ''; $echo .= ''; $echo .= ' '; $echo .= ''; } else { $echo .= ''; } break; case 'input': $echo .= ''; break; case 'number': $echo .= ''; break; } $echo .= '
widgetPossibility('custom::optionalParameters')) { ?> {{Paramètres optionnels}} {{Ajouter}} getDisplay('parameters') != '') { $echo = ''; foreach (($eqLogic->getDisplay('parameters')) as $key => $value) { $echo .= ''; $echo .= ''; $echo .= ''; $echo .= ''; $echo .= ''; } echo $echo; } ?>
{{Nom}} {{Valeur}} {{Action}}
'; $echo .= ''; $echo .= ''; $echo .= ''; $echo .= ''; $echo .= ' {{Supprimer}}'; $echo .= '
widgetPossibility('custom::layout')) { ?>
{{Mise en forme générale}}
{{Communication}}
{{Danger si}}
{{Batterie}} {{Pile(s) neuve(s)}}
{{Danger si}} {{Attention si}}

{{Vous pouvez trouver ici toute informations complementaires demandées par un plugin sur les équipements Jeedom}}
getSpecialAttributes(); if (!isset($specialAttributes['eqLogic']) || !is_array($specialAttributes['eqLogic']) || count($specialAttributes['eqLogic']) == 0) { continue; } $spAttr = ' {{Informations complémentaires demandées par}} ' . $plugin->getName() . ''; foreach ($specialAttributes['eqLogic'] as $key => $config) { $spAttr .= '
'; $spAttr .= ''; $spAttr .= '
'; switch ($config['type']) { case 'input': $spAttr .= ''; break; case 'checkbox': $spAttr .= ''; break; case 'number': $spAttr .= ''; break; case 'select': $spAttr .= ''; break; } $spAttr .= '
'; $spAttr .= '
'; } echo $spAttr; } } catch (\Exception $e) { } ?>