Page 1 of 1

Using Telldus with Tesla

Posted: Sun Aug 18, 2019 8:19 am
by PetriK
Due to the fact that we have only one 25 fuse at our summerhouse I need to be able to connect devices off and on depending on consumption. All the other devices have an on/off switch but unfortunately connecting power off from Wall charger for Tesla puts the charging into error state. Therefore an on/off switch does not work to control Tesla charging. Its said that on/off Works with UMC but I rather keep on using the Wall charger.

Luckily figured out an alternative method. As I am using that has an api to control various Tesla functions. For example the following command stops and starts charging: ... harge_stop ... arge_start

Anyhow unfortunately does not Support https so I also needed a command converter to receive http:// commands from telldus and push https:// commands to Below is the script for anyone utilize.

Additionally if you need this you can use it from your telldus with the following syntax to convert the commands to https: ... harge_stop

$url = '';
echo " $url \n";
$param = $_SERVER['QUERY_STRING'];
echo "param: $param\n";
echo " $url \n";

// create a new cURL resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt(CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser

// close cURL resource, and free up system resources