Hallo zusammen,
ich habe heute meine ersten Logiken getestet und bin dabei direkt auf Probleme gestoßen. Offenbar gibt es beim Ausführen mehrerer Kommandos Timing-Probleme. Ich wollte lediglich bei Sonnenuntergang und Abwesenheit alle Rolladen herunterfahren:
Mit Pause kommt alles auf dem Bus an:
Entferne ich das "Sleep" kommen nach dem ersten Befehl willkürlich nur 2-3 weitere Befehle auf dem Bus an.
Normales Verhalten? Was mache ich falsch?
ich habe heute meine ersten Logiken getestet und bin dabei direkt auf Probleme gestoßen. Offenbar gibt es beim Ausführen mehrerer Kommandos Timing-Probleme. Ich wollte lediglich bei Sonnenuntergang und Abwesenheit alle Rolladen herunterfahren:
Mit Pause kommt alles auf dem Bus an:
if sh.Smarthome.state.away() == True:
logger.info("Achtung: Haus befindet sich nun in Modus "Abwesenheit"");
sh.Smarthome.WohnenEssen.rolladen.EssenSued.pos(10 0)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.EssenWest.pos(10 0)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.EssenOst.pos(100 )
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.WohnenSued.pos(1 00)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.WohnenWest.pos(1 00)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Balkon.pos(100)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Ost.pos(100)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Sued.pos(100)
time.sleep(1)
sh.Smarthome.Buero.rolladen.Nord.pos(100)
time.sleep(1)
sh.Smarthome.Duschbad.rolladen.Nord.pos(100)
time.sleep(1)
sh.Smarthome.Duschbad.rolladen.Ost.pos(100)
logger.info("Achtung: Haus befindet sich nun in Modus "Abwesenheit"");
sh.Smarthome.WohnenEssen.rolladen.EssenSued.pos(10 0)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.EssenWest.pos(10 0)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.EssenOst.pos(100 )
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.WohnenSued.pos(1 00)
time.sleep(1)
sh.Smarthome.WohnenEssen.rolladen.WohnenWest.pos(1 00)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Balkon.pos(100)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Ost.pos(100)
time.sleep(1)
sh.Smarthome.Kueche.rolladen.Sued.pos(100)
time.sleep(1)
sh.Smarthome.Buero.rolladen.Nord.pos(100)
time.sleep(1)
sh.Smarthome.Duschbad.rolladen.Nord.pos(100)
time.sleep(1)
sh.Smarthome.Duschbad.rolladen.Ost.pos(100)
Normales Verhalten? Was mache ich falsch?
Kommentar