PERL WARNING: Subroutine Notify redefined at ./FHEM/00_MQTT.pm line 372, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Attr redefined at ./FHEM/00_MQTT.pm line 380, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Start redefined at ./FHEM/00_MQTT.pm line 413, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Stop redefined at ./FHEM/00_MQTT.pm line 431, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Ready redefined at ./FHEM/00_MQTT.pm line 450, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Rename redefined at ./FHEM/00_MQTT.pm line 457, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Init redefined at ./FHEM/00_MQTT.pm line 467, <$fh> line 3487.
2025.03.24 16:56:13.803 1: PERL WARNING: Subroutine Timer redefined at ./FHEM/00_MQTT.pm line 477, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine Read redefined at ./FHEM/00_MQTT.pm line 500, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_connect redefined at ./FHEM/00_MQTT.pm line 651, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_publish redefined at ./FHEM/00_MQTT.pm line 664, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_subscribe redefined at ./FHEM/00_MQTT.pm line 676, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_unsubscribe redefined at ./FHEM/00_MQTT.pm line 683, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_ping redefined at ./FHEM/00_MQTT.pm line 690, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_disconnect redefined at ./FHEM/00_MQTT.pm line 694, <$fh> line 3487.
2025.03.24 16:56:13.804 1: PERL WARNING: Subroutine send_message redefined at ./FHEM/00_MQTT.pm line 701, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine topic_to_regexp redefined at ./FHEM/00_MQTT.pm line 716, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine client_subscribe_topic redefined at ./FHEM/00_MQTT.pm line 727, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine client_unsubscribe_topic redefined at ./FHEM/00_MQTT.pm line 746, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine Client_Define redefined at ./FHEM/00_MQTT.pm line 763, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine Client_Undefine redefined at ./FHEM/00_MQTT.pm line 779, <$fh> line 3487.
2025.03.24 16:56:13.805 1: PERL WARNING: Subroutine client_attr redefined at ./FHEM/00_MQTT.pm line 784, <$fh> line 3487.
2025.03.24 16:56:13.806 1: PERL WARNING: Subroutine notify_client_connected redefined at ./FHEM/00_MQTT.pm line 898, <$fh> line 3487.
2025.03.24 16:56:13.806 1: PERL WARNING: Subroutine notify_client_disconnected redefined at ./FHEM/00_MQTT.pm line 903, <$fh> line 3487.
2025.03.24 16:56:13.806 1: PERL WARNING: Subroutine notify_client_connection_timeout redefined at ./FHEM/00_MQTT.pm line 908, <$fh> line 3487.
2025.03.24 16:56:13.806 1: PERL WARNING: Subroutine client_start redefined at ./FHEM/00_MQTT.pm line 913, <$fh> line 3487.
2025.03.24 16:56:13.806 1: PERL WARNING: Subroutine client_stop redefined at ./FHEM/00_MQTT.pm line 945, <$fh> line 3487.
Undefined subroutine &MQTT::DEVICE::client_attr called at ./FHEM/10_MQTT_DEVICE.pm line 233, <$fh> line 3489.
Das ist nur ein Auszug, in Wirklichkeit waren das ca 300 Zeilen. # JSON Auswertung
if ($type eq "GetAPIVersionInfo") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . "/solar_api/GetAPIVersion.cgi";
}
elsif ($type eq "GetPowerFlowRealtimeData") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetPowerFlowRealtimeData.fcgi";
}
elsif ($type eq "GetStorageRealtimeData") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetStorageRealtimeData.cgi?Scope=System&DeviceId=$SendData";
}
elsif ($type eq "GetMeterRealtimeData") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetMeterRealtimeData.cgi?Scope=System&DeviceId=$SendData";
}
elsif ($type eq "GetActiveDeviceInfo") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetActiveDeviceInfo.cgi?DeviceClass=System";
}
elsif ($type eq "GetInverterRealtimeData_System") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetInverterRealtimeData.cgi?Scope=System";
}
elsif ($type eq "GetInverterRealtimeData_Cumulation") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetInverterRealtimeData.cgi?Scope=Device&DeviceId=$SendData&DataCollection=CumulationInverterData";
}
elsif ($type eq "GetInverterRealtimeData_Common") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetInverterRealtimeData.cgi?Scope=Device&DeviceId=$SendData&DataCollection=CommonInverterData";
}
elsif ($type eq "GetInverterRealtimeData_3P") {
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetInverterRealtimeData.cgi?Scope=Device&DeviceId=$SendData&DataCollection=3PInverterData";
}
elsif ($type eq "GetArchiveData") {
my $today = time;
my $StartDate = strftime "%Y-%m-%dT%H:%M:00Z", gmtime($today - 300); # Fronius Solar API V1 Doku - "...intervals which can be set between 5 and 30 minutes..."
my $EndDate = strftime "%Y-%m-%dT%H:%M:00Z", gmtime($today);
$SendUrl = "https://" . $hash->{helper}{VARS}{FroniusIP} . $hash->{helper}{VARS}{FroniusBaseURL} . "GetArchiveData.cgi?Scope=System&StartDate=$StartDate&EndDate=$EndDate&Channel=Current_DC_String_1&Channel=Current_DC_String_2&Channel=Voltage_DC_String_1&Channel=Voltage_DC_String_2&Channel=EnergyReal_WAC_Sum_Produced&Channel=EnergyReal_WAC_Minus_Absolute&Channel=EnergyReal_WAC_Plus_Absolute&Channel=PowerReal_PAC_Sum";
}
2025-03-24 18:17:02 dummy popup_ctrl_test on
2025-03-24 18:17:06 dummy popup_ctrl_test off
2025-03-24 18:17:06 dummy popup_ctrl_test off
Du darfst diesen Dateianhang nicht ansehen.2025-03-24 19:23:45 dummy popup_ctrl_test on #Popup öffnen
2025-03-24 19:23:46 dummy popup_ctrl_test off #Popup manuell schließen
2025-03-24 19:23:46 dummy popup_ctrl_test off #zweiter Event (warum?)
2025-03-24 19:23:55 dummy popup_ctrl_test off #dritter Event nach 10s (warum?)
<ftui-grid base-width="26" base-height="26" margin="10">
<ftui-grid-tile row="1" col="1" height="4" width="12">
<ftui-button
width="10em" height="2.25em" fill="outline" color="light" class="size-3"
@click="sendFhem(`{dialogTest()}`)">Dialog Test
</ftui-button>
</ftui-grid-tile>
</ftui-grid>
<!-- Popup Test -->
<ftui-popup id="pop_test"
[active]="popup_ctrl_test | map('on:true, off:false')"
@close="sendFhem('set popup_ctrl_test off')">
<header>
<ftui-label text="Poupup-Dialog" size="3"></ftui-label>
</header>
<ftui-label text="Das ist ein Test" size="2"></ftui-label>
</ftui-popup>
sub dialogTest() {
# setzt die Steuervariable für den TestDialog auf on
# und ermöglicht öffnet so das Anzeigen des Dialogs
fhem("set popup_ctrl_test on");
}
attr deinDeviceName userReadings rssi:rssipeer:.* { return ReadingsNum($name, 'rssipeer', 0); }
2025.03.24 18:06:00 3: [GEN24] [fronius_Parse] [GetPowerFlowRealtimeData] ERROR=http://165.114.160.1/solar_api/v1/GetPowerFlowRealtimeData.fcgi: Too many redirects
2025.03.24 18:06:00 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2203) line 1.
2025.03.24 18:06:00 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:02 3: [GEN24] [fronius_Parse] [GetStorageRealtimeData] ERROR=http://165.114.160.1/solar_api/v1/GetStorageRealtimeData.cgi?Scope=System&DeviceId=0: Too many redirects
2025.03.24 18:06:02 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2213) line 1.
2025.03.24 18:06:02 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:04 3: [GEN24] [fronius_Parse] [GetMeterRealtimeData] ERROR=http://165.114.160.1/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System&DeviceId=0: Too many redirects
2025.03.24 18:06:04 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2224) line 1.
2025.03.24 18:06:04 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:06 3: [GEN24] [fronius_Parse] [GetInverterRealtimeData_System] ERROR=http://165.114.160.1/solar_api/v1/GetInverterRealtimeData.cgi?Scope=System: Too many redirects
2025.03.24 18:06:06 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2234) line 1.
2025.03.24 18:06:06 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:06 3: [GEN24] [fronius_Parse] [GetInverterRealtimeData_3P] ERROR=http://165.114.160.1/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=3PInverterData: Too many redirects
2025.03.24 18:06:06 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2244) line 1.
2025.03.24 18:06:06 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:06 3: [GEN24] [fronius_Parse] [GetInverterRealtimeData_Common] ERROR=http://165.114.160.1/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData: Too many redirects
2025.03.24 18:06:06 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2254) line 1.
2025.03.24 18:06:06 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}
2025.03.24 18:06:06 3: [GEN24] [fronius_Parse] [GetInverterRealtimeData_Cumulation] ERROR=http://165.114.160.1/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CumulationInverterData: Too many redirects
2025.03.24 18:06:06 1: PERL WARNING: Argument "" isn't numeric in numeric gt (>) at (eval 2264) line 1.
2025.03.24 18:06:06 3: eval: {sprintf("%.0f",(ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1","")>0?ReadingsVal("GEN24","PowerFlow_TOTAL_ENERGY_Values_1",""):0))}