IMPROVE LOVELACE ERROR LOG: Provide some detail on the item that is causing the error

The added issue if you want to chime in there: Improve Lovelace error log · Issue #146 · home-assistant/ui-schema · GitHub

So I’ve been getting a lot of the error below. A quick look at the forums here or search on Google comes up with a lot of results with similar issues.

Can the log capture more information as to the root cause of the failure? For example, for me, this error was caused by several items that were not working:

  • camera.usps_mail
  • sensor.usps_mail
  • sensor.usps_packages
  • sensor.fedex
  • sensor.pws_weather
  • sensor.pws_temp_f
  • sensor.pws_relative_humidity
  • sensor.pws_wind_string

IE:
Have the error state something along the lines of:
Lovelace UI is not able to retrieve data for sensor.fedex

Log Details (ERROR)
Thu Aug 02 2018 17:16:01 GMT-0700 (Pacific Daylight Time)

https://home.khaz.me/frontend_latest/app-6e4d53ede29a686d41a2bb0807ecd12c.js:445:3536 Uncaught TypeError: Cannot read property ‘_stateDisplay’ of null