Voila mon bloc code du scénario :
// CMDINFO= CMDACTION= ONOFF=
$tags = $scenario->getTags();
$cmdInfo = $tags['#CMDINFO#'];
$cmdAction = $tags['#CMDACTION#'];
$onOff = $tags['#ONOFF#'];
$scenario->setLog($cmdInfo . ' ' . $cmdAction . ' ' . $onOff);
if ($cmdInfo != $onOff) {
cmd::byString($cmdAction)->execCmd();
}