From c201940502a99bbfc3e032e84fea7097e9652945 Mon Sep 17 00:00:00 2001 From: Sailor <> Date: Wed, 3 Feb 2021 15:01:15 +0000 Subject: [PATCH] 73_km200: Feature - Meta Data completed git-svn-id: https://svn.fhem.de/fhem/trunk@23666 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_km200.pm | 470 ++++++++++++++---------------------------- 1 file changed, 160 insertions(+), 310 deletions(-) diff --git a/fhem/FHEM/73_km200.pm b/fhem/FHEM/73_km200.pm index 14127688e..e9b6a1728 100644 --- a/fhem/FHEM/73_km200.pm +++ b/fhem/FHEM/73_km200.pm @@ -50,6 +50,7 @@ package main; use strict; use warnings; use Blocking; +use FHEM::Meta; use Time::HiRes qw(gettimeofday sleep usleep); use Digest::MD5 qw(md5 md5_hex md5_base64); use base qw( Exporter ); @@ -88,6 +89,7 @@ sub km200_Initialize($) "DoNotPoll " . "ReadBackDelay " . $readingFnAttributes; + return FHEM::Meta::InitMod( __FILE__, $hash ); } ####END####### Initialize module ###############################################################################END##### @@ -333,7 +335,7 @@ sub km200_DbLog_splitFn($$) ### Log entries for debugging Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of event : " . $event; Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[0] : " . $argument[0]; - Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[1] : " . $argument[1]; +# Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[1] : " . $argument[1]; ### If the service to be changed is identical to the one where the unit received from if ($argument[0] = $hash->{temp}{ServiceDbLogSplitHash}{id}) @@ -1071,6 +1073,9 @@ sub km200_PostSingleService($) $JsonContent =~ s/{"switchPoints"://; $JsonContent =~ s/]}/]/g; + ### Log file entry for debugging + Log3 $name, 5, $name. "km200_Set - JsonContent : " . $JsonContent; + ### Encrypt $hash->{temp}{jsoncontent} = $JsonContent; $data = km200_Encrypt($hash); @@ -2950,356 +2955,201 @@ sub km200_ParseHttpResponseDyn($) =item summary Connects fhem to Buderus KM300, KM200, KM100, KM50 =item summary_DE Verbindet fhem mit Buderus KM300, KM200, KM100, KM50 - =begin html

KM200

=end html - =begin html_DE

KM200

-=end html_DE \ No newline at end of file +=end html_DE + +=for :application/json;q=META.json 73_km200.pm +{ + "abstract": "Connects fhem to Buderus KM300, KM200, KM100, KM50
", + "description": "The Buderus KM200, KM100 or KM50 (hereafter described as KMxxx) is a communication device to establish a connection between the Buderus central heating control unit and the internet.
It has been designed in order to allow the inhabitants accessing their heating system via his Buderus App EasyControl.
Furthermore it allows the maintenance companies to access the central heating control system to read and change settings.
The km200 fhem-module enables read/write access to these parameters.
", + "x_lang": { + "de": { + "abstract": "Verbindet fhem mit Buderus KM300, KM200, KM100, KM50
", + "description": "Das Buderus KM200, KM100 or KM50 (ab hier als KMxxx beschrieben) ist eine Schnittstelle zwischen der Buderus Zentralheizungssteuerung un dem Internet.
Es wurde entwickelt um den Bewohnern den Zugang zu Ihrem Heizungssystem durch die Buderus App EasyControl zu erlauben.
Darüber hinaus erlaubt es nach vorheriger Freigabe dem Heizungs- bzw. Wartungsbetrieb die Heizungsanlage von aussen zu warten und Werte zu verändern.
Das km200 fhem-Modul erlaubt den Lese-/Schreibzugriff dieser Parameter durch fhem.
" + } + }, + "author": [ + "I am the maintainer matthias.deeke@deeke.eu" + ], + "x_fhem_maintainer": [ + "Sailor" + ], + "keywords": [ + "Buderus", + "Bosch", + "KM50", + "KM100", + "KM200", + "KM300", + "communication", + "network" + ], + "prereqs": { + "runtime": { + "requires": { + "FHEM": 5.00918623, + "FHEM::Meta": 0.001006, + "HttpUtils": 0, + "JSON": 0, + "perl": 5.014 + }, + "recommends": { + }, + "suggests": { + } + } + }, + "resources": { + "x_support_community": { + "rss": "https://forum.fhem.de/index.php/topic,25540.msg", + "web": "https://forum.fhem.de/index.php/topic,25540.msg", + "subCommunity" : { + "rss" : "https://forum.fhem.de/index.php/topic,25540.msg", + "title" : "This sub-board will be first contact point", + "web" : "https://forum.fhem.de/index.php/topic,25540.msg" + } + }, + "x_wiki" : { + "title" : "FHEM Wiki: Buderus Web Gateway", + "web" : "https://wiki.fhem.de/wiki/Buderus_Web_Gateway" + } + }, + "x_support_status": "supported" +} +=end :application/json;q=META.json + +=cut \ No newline at end of file