From 88e2d19d4c47dab3baea34e012602cd0d1a25b47 Mon Sep 17 00:00:00 2001 From: pizmus Date: Mon, 21 Oct 2019 19:34:40 +0000 Subject: [PATCH] 70_SolarEdgeAPI: show SolarEdge logo to comply with API requirements git-svn-id: https://svn.fhem.de/fhem/trunk@20391 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_SolarEdgeAPI.pm | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index fe5ee549b..a28ff9405 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 70_SolarEdgeAPI: show SolarEdge logo to comply with API requirements - update: 98_MSwitch: New Version 2.6a (Forum: https://forum.fhem.de/index.php/topic,86199.msg984087.html#msg984087) - feature: 89_FULLY: New command set foreground diff --git a/fhem/FHEM/70_SolarEdgeAPI.pm b/fhem/FHEM/70_SolarEdgeAPI.pm index 8f2e7151f..ee0703a9f 100644 --- a/fhem/FHEM/70_SolarEdgeAPI.pm +++ b/fhem/FHEM/70_SolarEdgeAPI.pm @@ -132,6 +132,8 @@ sub SolarEdgeAPI_Initialize($) "enableOverviewReadings:1,0 ". "enableDebugReadings:1,0 ". $readingFnAttributes; + + $hash->{FW_detailFn} = "SolarEdgeAPI_fhemwebFn"; } sub SolarEdgeAPI_Define($$) @@ -980,6 +982,22 @@ sub SolarEdgeAPI_UpdateReadings($$$) readingsEndUpdate($hash, 1); } +############################################################################### +# show SolarEdge logo +############################################################################### + +sub SolarEdgeAPI_fhemwebFn($$$) +{ + my ($FW_wname, $d, $room) = @_; + return << 'EOF' +
+ + + +
+EOF +} + 1;