Skip to content

Troubleshooting

Chris edited this page Nov 23, 2021 · 13 revisions

Uninstalling/Reinstalling

If you are attempting to troubleshoot and want to uninstall and reinstall the component please follow these steps:

  1. Remove the Integration from the Integrations menu in Home Assistant (you will need to re-enter usernames and passwords)
  2. Open HACS
  3. Click Integrations
  4. Click the 3 dots for the Mail and Packages integration
  5. Select Reinstall
  6. Go back to the Integrations menu and re-add the Integration

Removing the integration should clear any configuration data from inside the core.config_entries file making for a clean reinstall.


My packages are not being detected?

Make sure the folder selected is where your USPS/UPS/FedEx emails are going into. Also keep in mind only packages that are "out for delivery" will be counted.

The default folder is "INBOX" if you are not filtering your email use this option.

Reminder: The integration is only reporting on packages that are in transit to be delivered the current day. It does not report in-transit packaged delivered on a future day.


Enable Debugging

More information may need to be collected, here's how you can enable debugging from your configuration.yaml file:

logger:
  default: warning
  logs:
    custom_components.mail_and_packages: debug

You can also enable debugging while Home Assistant is running from the Services tab in the Developer Tools.*
Set the service to logger.set_level click Go to YAML Mode and enter:

service: logger.set_level
data:
   custom_components.mail_and_packages: debug

into the data input as shown in the image below. These settings do not save and are reverted if you restart Home Assistant or set the level back to warning.

*Please note, you will need to add logger: to your configuration.yaml in order to use this.

Once everything is typed in click Call Service and you will see the debug messages start populating into your Home Assistant log.

IMAGE UPDATE PENDING

Home Assistant Services Menu