Hallo Experten!
habe offenbar etwas zu viel herumexperimentiert. Habe IPS 5.1 und IPS Shelly installiert. Es hat schon einmal funktioniert, dann aber plötzlich nicht mehr. Durch das viele herumexperimentieren habe ich vermutlich etwas in der __generatet.inc.php zerschossen.
Wenn ich den Befehl
Shelly_SwitchMode(15948,0 ,true);
ausführe, kommt folgende Fehlermeldung:
Fatal error: Uncaught Exception: Instance does not implement this function in C:\IP-Symcon\scripts__generated.inc.php:710
Stack trace:
#0 C:\IP-Symcon\scripts\35156.ips.php(3): SHELLY_SwitchMode(15948, 0, true)
#1 {main}
thrown in C:\IP-Symcon\scripts__generated.inc.php on line 710
Abort Processing during Fatal-Error: Uncaught Exception: Instance does not implement this function in C:\IP-Symcon\scripts__generated.inc.php:710
Stack trace:
#0 C:\IP-Symcon\scripts\35156.ips.php(3): SHELLY_SwitchMode(15948, 0, true)
#1 {main}
thrown
Error in Script C:\IP-Symcon\scripts__generated.inc.php on Line 710
in der __generated.inc.php stehen alle Funktionen von Shelly mehrfach drin:
function SHELLY_SwitchMode($InstanceID, $relay, $Value)
{
if(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{9E5FA0B2-AA98-48D5-AE07-78DEA4B0370A}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly1\module.php');
$result = (new IPS_Shelly1($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{BE266877-6642-4A80-9BAA-8C5B3B4DAF80}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly2\module.php');
$result = (new IPS_Shelly2($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{F56CC544-581D-42EB-AAF0-F5E9E908916C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-Shelly4Pro\module.php');
$result = (new IPS_Shelly4Pro($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{ED5E1057-C47A-4D73-A130-B4E2912A026C}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyPlug\module.php');
$result = (new IPS_ShellyPlug($InstanceID))->SwitchMode($relay, $Value);
}
elseif(IPS_GetInstance($InstanceID)["ModuleInfo"]["ModuleID"] == "{3286C438-2174-E03B-85CE-B6B7C1A685D0}") {
require_once('C:\IP-Symcon\modules\.store\info.schnittcher.ips.shelly\IPS-ShellyRGBW2\module.php');
$result = (new IPS_ShellyRGBW2($InstanceID))->SwitchMode($relay, $Value);
}
else {
throw new Exception("Instance does not implement this function");
}
return $result;
}
Hat jemand eine Idee wie ich das fixen kann?
Gruß, Hugo