changed encoding of pm file; commandref created
This commit is contained in:
parent
7d4444ce58
commit
5094dda70b
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env perl
|
||||
#===============================================================================
|
||||
#
|
||||
# FILE: 98_TadoAPI.pm
|
||||
@ -21,11 +20,10 @@
|
||||
# REVISION: 11/21/2019 05:17:22 PM
|
||||
#===============================================================================
|
||||
package main;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use utf8;
|
||||
use FHEM::Meta;
|
||||
|
||||
use HTTP::Request::Common qw (POST GET PUT);
|
||||
use HTTP::Headers;
|
||||
use JSON;
|
||||
@ -273,7 +271,9 @@ sub TadoAPI_Get(@) {
|
||||
|
||||
$cmd eq "getXTest" and do {
|
||||
Log3 $name, 5, "TadoAPI $name" . ": " . "processing ($cmd)";
|
||||
$message = "Name: " . TadoAPI_GetZoneNameById($hash, $value);
|
||||
my $zoneName = TadoAPI_GetZoneNameById($hash, $value);
|
||||
$zoneName = "wrong Zone ID" unless $zoneName;
|
||||
$message = "Name: " . $zoneName;
|
||||
Log3 $name, 3, "TadoAPI $name" . ": " . "$cmd finished\n";
|
||||
last;
|
||||
};
|
||||
@ -644,7 +644,7 @@ sub TadoAPI_UpdateFn(@){
|
||||
url => $URL,
|
||||
header => { "Content-Type"=>"application/json;charset=UTF-8","Authorization" => "$TokenData->{'token_type'} $TokenData->{'access_token'}" },
|
||||
method => 'GET',
|
||||
timeout => 5,
|
||||
timeout => 10,
|
||||
incrementalTimout => 1,
|
||||
callback => \&TadoAPI_UpdateMobileReadingsCallback,
|
||||
hash => $hash
|
||||
@ -1365,34 +1365,73 @@ sub TadoAPI_readPassword($)
|
||||
|
||||
1;
|
||||
|
||||
# Beginn der Commandref
|
||||
|
||||
=pod
|
||||
=item [device]
|
||||
=item helper
|
||||
=item summary integration of the Tado API
|
||||
=item summary_DE Anbindung der Tado Heizungssteuerung über API
|
||||
|
||||
=item summary_DE Anbindung der Tado Heizungssteuerung über API
|
||||
=begin html
|
||||
|
||||
<a name="TadoAPI"></a>
|
||||
<h3>Tado</h3>
|
||||
<h3>TadoAPI</h3>
|
||||
<ul>
|
||||
<i>TadoAPI</i> implements an interface to the Tado cloud.
|
||||
<br><br>
|
||||
<a name="Define"></a>
|
||||
Module to control the integration of tado devices with FHEM.<br>
|
||||
Notes:
|
||||
<ul>
|
||||
<li>JSON has to be installed on the FHEM host.</li>
|
||||
</ul>
|
||||
|
||||
<a name="TadoAPIdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul>
|
||||
<code>define <name> TadoAPI <tado-mailadress> <homeID></code>
|
||||
<br><br>
|
||||
Example: <code>define myTado TadoAPI mail@example.com 12345</code>
|
||||
<br><br>
|
||||
The username and password must match the username and password used on the Tado website.
|
||||
After successful define, store PASSWORD with set myTado password <yout-tado-password>
|
||||
Password is sored in encrypted FHEM store. All requests to the API are via oauth2 token.
|
||||
</ul>
|
||||
=end html
|
||||
After successful define, store PASSWORD with set <name> password <your-tado-password>
|
||||
Password is sored in encrypted FHEM store. All requests to the API are via oauth2 token.<br>
|
||||
|
||||
Examples:
|
||||
<ul><code>
|
||||
define <name> TadoAPI mail@example.com [<homeID>]<br>
|
||||
</code></ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
<a name="TadoAPIset"></a>
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
<li>
|
||||
<code>set <name> <tado password></code><br>
|
||||
Stores <code>password</code> from tado account encrypted in FHEM.<br>
|
||||
Without stored password all functions are blocked !<br>
|
||||
IMPORTANT : if you rename the fhem Device you must set the password again!
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<code>set <name> update</code><br>
|
||||
Reloads all information from the tado installation (devices, battery state, geolocation,...).
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<code>set <name> setZoneOverlay <zoneID> <setting></code><br>
|
||||
Setting: off delete overlay; 0 heating power off; > 1 sets desired temperature to given value (overlay)
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<code>set <name> setAllOverlays <setting></code><br>
|
||||
Same as above, but for all zones<br>
|
||||
Setting: off delete overlay; 0 heating power off; > 1 sets desired temperature to given value (overlay)</li>
|
||||
<br>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
<a name="TadoAPIattr"></a>
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li>homeID<br>
|
||||
Home ID that will be used for <b>API </b> querys.
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
=begin html_DE
|
||||
-
|
||||
=end html
|
||||
|
||||
# Ende der Commandref
|
||||
|
Loading…
x
Reference in New Issue
Block a user