You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hat noch jemand ein Problem mit der example.php bei:
// Now get a list of all LogicalDevices and print their names and roomforeach ($sh->getLogicalDevices() as$ld) {
printf("Device '%s' is a '%s' in room '%s'.", $ld->getName(), $ld->getType(), $ld->getLocation()->getName());
if($ld->getType() == LogicalDevice::DEVICE_TYPE_SWITCH_ACTUATOR) {
printf(" Switch state is '%s'.", $ld->getState());
}
if($ld->getType() == LogicalDevice::DEVICE_TYPE_WINDOW_DOOR_SENSOR) {
printf(" %s is %s.", $ld->getInstallationType(), $ld->getState());
}
echo$newLine;
}
Ich erhalte immer den Fehler:
PHP Fatal error: Uncaught exception 'Exception' with message 'Unknown GenericActuator state ""'in /var/www/server/SmartHome-API.php:533
Stack trace:
#0 /var/www/server/example.php(120): Bubelbub\SmartHomePHP\SmartHome->getAllLogicalDeviceStates()#1 {main}
thrown in /var/www/server/SmartHome-API.php on line 533
Jemand eine Idee? :)
The text was updated successfully, but these errors were encountered:
Hast du die Zugangsdaten richtig eingegeben und alles?
Könnte sein, dass er da keine Daten bekommt.
Oder was auch sein könnte, dass vllt. die Version aktualisiert wurde oder irgendwas los ist bei dir.
Ging es in der Vergangenheit schon bei dir? Oder ist das die Ersteinrichtung?
Hast du etwas an der example.php verändert, oder ist das "original" mit der veränderten Konfiguration oben?
Ich hatte bisher die alte Version laufen und habe die jetzt parallel neu installiert um mir anzuschauen ob sich ein Umstieg lohnt.
Die Zugangsdaten etc sind korrekt, die Version ist in einem eigenen Ordner über das Repo mit Composer installiert und die example ist bis auf die Config original.
Wenn ich mir das Ergebnis von getEntities und getAllLogicalDeviceStates über print_r ausgeben lasse, dann bekomme ich alle Daten.
Hat noch jemand ein Problem mit der example.php bei:
Ich erhalte immer den Fehler:
Jemand eine Idee? :)
The text was updated successfully, but these errors were encountered: