moralmunky / Home-Assistant-Mail-And-Packages

Home Assistant integration providing day of package counts and USPS informed delivery images.
MIT License
608 stars 77 forks source link

ISSUE: No Mail showing up. #828

Closed bschatzow closed 1 year ago

bschatzow commented 1 year ago

Describe the bug For the last couple of days I have seen no mail or any other deliveries coming in. I checked this morning (before I usually get notification in gmail) and there is an error in the logs:

Environment (please complete the following information):

Logs Paste your error logs here.

This error originated from a custom integration.

Logger: custom_components.mail_and_packages
Source: helpers/update_coordinator.py:204
Integration: Mail and Packages (documentation, issues)
First occurred: 3:05:02 AM (1 occurrences)
Last logged: 3:05:02 AM

Timeout fetching Mail and Packages (imap.gmail.com) data

Screenshots If applicable, add screenshots to help explain your problem. N/A - All sensors show zero. Additional context Add any other context about the problem here. Please add emails in plain/text format if possible and applicable.

The diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.5.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.11",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.05.0",
    "host_os": "Home Assistant OS 10.2",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "asuswrt_custom": {
      "version": "0.7.2",
      "requirements": [
        "aioasuswrt==1.4.0",
        "pyasuswrt==0.1.16"
      ]
    },
    "waste_collection_schedule": {
      "version": "1.40.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "bs4"
      ]
    },
    "mail_and_packages": {
      "version": "0.3.14",
      "requirements": [
        "beautifulsoup4",
        "Pillow>=9.0"
      ]
    },
    "ourgroceries": {
      "version": "1.5.3",
      "requirements": [
        "ourgroceries==1.5.3"
      ]
    },
    "generic_hygrostat": {
      "version": "0.7.1",
      "requirements": []
    },
    "awnet_local": {
      "version": "1.0.1",
      "requirements": []
    },
    "browser_mod": {
      "version": "2.2.2",
      "requirements": []
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "teamtracker": {
      "version": "0.1",
      "requirements": [
        "arrow",
        "aiofiles"
      ]
    },
    "spook": {
      "version": "0.13.5791",
      "requirements": []
    },
    "garmin_connect": {
      "version": "0.2.16",
      "requirements": [
        "garminconnect==0.1.55",
        "tzlocal"
      ]
    },
    "noaa_tides": {
      "version": "0.1.3",
      "requirements": [
        "noaa_coops>=0.1.8"
      ]
    },
    "places": {
      "version": "2",
      "requirements": []
    },
    "smartthinq_sensors": {
      "version": "0.31.8",
      "requirements": [
        "pycountry>=20.7.3",
        "xmltodict>=0.12.0",
        "charset_normalizer>=2.0.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "mail_and_packages",
    "name": "Mail and Packages",
    "documentation": "https://github.com/moralmunky/Home-Assistant-Mail-And-Packages",
    "issue_tracker": "https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/issues",
    "dependencies": [],
    "codeowners": [
      "@moralmunky",
      "@firstof9"
    ],
    "config_flow": true,
    "integration_type": "service",
    "requirements": [
      "beautifulsoup4",
      "Pillow>=9.0"
    ],
    "iot_class": "cloud_polling",
    "version": "0.3.14",
    "is_built_in": false
  },
  "data": {
    "image_name": "903c2557-446b-4b32-88db-6a50fffc0845.gif",
    "amazon_image": "0236467f-0230-4e5e-a5f2-c32f529ca516.jpg",
    "image_path": "custom_components/mail_and_packages/images/",
    "amazon_delivered": 0,
    "amazon_packages": 0,
    "amazon_order": "**REDACTED**",
    "fedex_delivered": 0,
    "fedex_delivering": 0,
    "fedex_tracking": "**REDACTED**",
    "fedex_packages": 0,
    "mail_updated": "2023-05-31T09:47:05.367436+00:00",
    "ups_delivered": 0,
    "ups_delivering": 0,
    "ups_tracking": "**REDACTED**",
    "ups_exception": 0,
    "ups_packages": 0,
    "usps_delivered": 0,
    "usps_delivering": 0,
    "usps_tracking": "**REDACTED**",
    "usps_exception": 0,
    "usps_mail": 0,
    "usps_packages": 0,
    "zpackages_delivered": 0,
    "zpackages_transit": 0
  }
}

It has been working for a long time with no issues. From USPS site image HA only showed the Saturday delivery

firstof9 commented 1 year ago

Timeout fetching Mail and Packages (imap.gmail.com) data

Increase your IMAP timeout setting.

bschatzow commented 1 year ago

Seemed to be working now. Had at 90 secs changed to 120.