je déterre le sujet car j'ai réussi a faire fonctionner tasker avec la dernière API Syno.
Du coup, plus besoin de SSH, il faut juste acheter l'appli tasker (et elle vaut largement son prix).
Je joint les profils tasker qui font ON et OFF
ON :
<TaskerData sr="" dvi="1" tv="4.6u1m">
<Task sr="task5">
<cdate>1420362366168</cdate>
<edate>1420400412258</edate>
<id>5</id>
<nme>Ds On</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://%IPFREEBOX:%DSPORT</Str>
<Str sr="arg1" ve="3">webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=%DSLOGIN&passwd=%DSPASSWORD&session=SurveillanceStation&format=sid</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var arr = JSON.parse(global("HTTPD"));
var sid = arr.data.sid;
setGlobal("SID",sid);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act2" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">%IPFREEBOX:%DSPORT</Str>
<Str sr="arg1" ve="3">webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&method=Enable&version=3&cameraIds=1,2&_sid=%SID</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
</Task>
</TaskerData>
OFF :
<TaskerData sr="" dvi="1" tv="4.6u1m">
<Task sr="task16">
<cdate>1420362366168</cdate>
<edate>1420398959945</edate>
<id>16</id>
<nme>Ds Off</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://%IPFREEBOX:%DSPORT</Str>
<Str sr="arg1" ve="3">webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=%DSLOGIN&passwd=%DSPASSWORD&session=SurveillanceStation&format=sid</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var arr = JSON.parse(global("HTTPD"));
var sid = arr.data.sid;
setGlobal("SID",sid);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act2" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">%IPFREEBOX:%DSPORT</Str>
<Str sr="arg1" ve="3">webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&method=Disable&version=3&cameraIds=1,2&_sid=%SID</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
</Task>
</TaskerData>