Moin, ich taste mich gerade an die Funktionen in Smarthome-py heran.
Emails senden geht super. Nun möchte ich mit Emails eine Logik triggeren.
Aber... diese Meldung bekomme ich beim Debug:
logic.conf:
plugin.conf
Jemand eine Idee?
Gruß Marian
Emails senden geht super. Nun möchte ich mit Emails eine Logik triggeren.
Aber... diese Meldung bekomme ich beim Debug:
Code:
2013-11-27 19:40:02,641 ERROR IMAP IMAP: problem parsing message b'1': 'str' object has no attribute 'decode' -- __init__.py:_cycle:91 Traceback (most recent call last): File "/usr/smarthome/plugins/mail/__init__.py", line 89, in _cycle subject = sub.decode() AttributeError: 'str' object has no attribute 'decode'
Code:
[send_status] filename = email.py mail_subject = Status
Code:
[mail] class_name = SMTP class_path = plugins.mail host = smtp.*** mail_from = meldung@*** # ssl = True username = *** password = *** [imap] class_name = IMAP class_path = plugins.mail host = imap.****.eu username = **** password = **** # ssl = False port = 143 cycle = 30
Gruß Marian
Kommentar