Zitat von: kabanett am 21 September 2026, 20:22:17Hallo Jörg,
ich würde jetzt noch gerne bis morgen warten. Ungefähr eine halbe Stunde nach dem Boxneustart hören die Einträge auf und das Device sieht jetzt auch vernünftig aus... Ich meine das fhemWeb "FritzBox WLAN: on gWLAN: on"
Gruß Karsten
Zitat von: pfeffi am 21 September 2026, 23:11:54Der Code war von der Version über die IPHallo pfeffi,
Wenn ich es von der Fritzbox aus mache bin ich sofort drin ohne Anmeldung
Zitat von: Uwe Ernst am 21 September 2026, 22:12:35Hallo HGButte
Bis zu welcher Zeit kannst du die Abfrage runterstellen ohne Fehler?
+++ /opt/fhem/FHEM/98_BOSEST.pm 2026-06-03 20:18:59.240342748 +0200
@@ -236,7 +236,8 @@
"saveChannel:07,08,09,10,11,12,13,14,15,16,17,18,19,20 ".
"origin saveState:noArg restoreState restoreVolAndOff ".
"addDLNAServer:".$hash->{helper}{dlnaServers}." ".
- "removeDLNAServer:".ReadingsVal($hash->{NAME}, "connectedDLNAServers", "noArg");
+ "removeDLNAServer:".ReadingsVal($hash->{NAME}, "connectedDLNAServers", "noArg")." ".
+ "reboot:noArg";
#--check parameters for set function
#DEVELOPNEWFUNCTION-1
@@ -404,6 +405,8 @@
} elsif($workType eq "restoreVolAndOff") {
my $wait = (defined($params[0]) && looks_like_number($params[0]))?$params[0]:0;
InternalTimer(gettimeofday()+$wait, "BOSEST_restoreVolumeAndOff", $hash, 0);
+ } elsif($workType eq "reboot") {
+ return BOSEST_reboot($hash);
#-- end NEW
} else {
return SetExtensions($hash, $list, $name, $workType, @params);
@@ -2822,6 +2825,28 @@
}
}
+#############################################################################
+
+sub BOSEST_reboot
+{
+ my ($hash) = @_;
+ my $host = $hash->{helper}{IP};
+ my $port = 17000;
+
+ my $socket = IO::Socket::INET->new(
+ PeerAddr => $host,
+ PeerPort => $port,
+ Proto => 'tcp',
+ Timeout => 5
+ );
+ return "cannot connect" unless($socket);
+
+ print $socket "sys reboot\r\n";
+ close($socket);
+
+ readingsSingleUpdate($hash, "state", "rebooting", 1);
+ return undef;
+}
1;
=pod