ljmerza / ha-email-sensor

Email Sensor for collecting tracking numbers from over 40 providers.
MIT License
87 stars 22 forks source link

imap_server not work! #19

Closed kraineff closed 1 year ago

kraineff commented 4 years ago

Error in log: Invalid config for [sensor.email]: [imap_server] is an invalid option for [sensor.email]. Check: sensor.email->imap_server. (See ?, line ?).

Sensor:

- platform: email
   email: my_email@yandex.ru
   password: my_password
   imap_server: imap.yandex.ru
   imap_port: 993
KyleStilkey commented 4 years ago

Yes, it seems that with the latest version the command got reverted back to smtp.

If you want to fix this, just edit the const.py file and update the commands

CONF_IMAP_SERVER = 'smtp_server' CONF_IMAP_PORT = 'smtp_port' to CONF_IMAP_SERVER = 'imap_server' CONF_IMAP_PORT = 'imap_port'

const.zip

I also uploaded the file if you want to replace it yourself. The file is located under config\custom_components\email\

ljmerza commented 1 year ago

Fixed