And here's roughly how to enable (1) or disable (0) a certain schedule:
Code: Select all
<?php
require 'vendor/autoload.php';
$api = new Paxx\Telldus\Api(array(
'identifier' => 'xxxxx',
'secret' => 'yyyyy',
'user_identifier' => 'zzzzz',
'user_secret' => 'kkkkk'
));
$scheduler = $api->scheduler();
$action = $scheduler->setJob('111111','222222',array('active' => '0'));
First of course install the package (I needed to use "composer require paxx/telldus-live=dev-master" - after first installing composer and new enough version of PHP). With the above script one would disable schedule id (jobID) 111111 controlling device 222222 (not sure why this is needed as schedules are in any case tied to certain device or group). Change the third argument to 1 and you'd enable it...