Bonjour,
Pour la compatibilité avec l'interface fil pilote, quelqu'un pourrait-il tester le plugin avec connexoon ou tahoma en rajoutant dans la partie "// Actions" à la suite de "// setClosure" avant "// Polling (XML)" :
//...................................début..........
// Set HeatingLevel
// interface fil pilote, capteur conso 4 ordres [confort,eco, hors-gel, off],
// valeur brute: comfort /eco/frostprotection/off (!!"comfort" valeur brute)
// description : confort/eco/hors-gel/off
// url:
http://localhost/script/?exec=connexoon.php&devices=[VAR1]
// [VAR1]=io://xxxx-xxxx-xxxx/12345678 (adresse de l'équipement)
// paramètres : &action=setHeatingLevel&value=comfort/eco/frostprotection/off
if ($action == 'setHeatingLevel')
{
sdk_login();
$value = getArg('value');
$device_urls = explode(',', getArg('devices'));
$commands['setHeatingLevel'] = '"'.$value.'"';
// On invalide le cache
$cache['time'] = 0;
saveVariable('cache', $cache);
sdk_apply_command($device_urls, $commands);
}
// .....................................fin.............................
Merci à P@t pour ce plugin.
Cdt,
jpf