Hallo,
Lt. Doku sollte das gehen:
tut's aber nicht:
Das Logik Object hat offensichtlich keine "alive" Attribut.
Irgend ne Idee ?
Danke vorab.
Lt. Doku sollte das gehen:
Code:
#!/usr/bin/env python3 while logic.alive: logger.info('power consumption: ' + sh.basement.launpower_consumption_washing_machine()) sleep(5)
Code:
2014-08-10 21:02:54 ERROR check_washing_machine Logic: check_washing_machine, File: /opt/smarthome/logics/check_washing_machine.py, Line: 3, Method: <module>, Exception: 'Logic' object has no attribute 'alive' Traceback (most recent call last): File "/opt/smarthome/lib/scheduler.py", line 327, in _task exec(obj.bytecode) File "/opt/smarthome/logics/check_washing_machine.py", line 3, in <module> while logic.alive: AttributeError: 'Logic' object has no attribute 'alive' 2014-08-10 21:02:59 INFO sonos-update Sonos: Message 192.168.0.87:12900 client/subscribe/9999 successfully sent - 200 OK
Irgend ne Idee ?
Danke vorab.
Kommentar