WTH Can you not see logs per device / integration

A few integrations that I use are sometimes crapping out. The most recent one was a random timeout happening with the Xiaomi Miio integration which btw is part of core home-assistant. My issue is that whenever an integration or a specific device within an integration has an error, I cannot see that dirrectly in the device / integration page. I always have to go back to the setting/system/logs menu where I can spot ALL logs while in reality I am only interested in those of my device / automation.

I would like to have a small print / button where you can click and get a modal dialog with the latest logs from the device or integration. I suspect that might mean HA has to do a bit more on the logging side in order to offer this level of granularity, but that would spare me the extra clicks to go back and forth between the device page and the logs after every small change.

This is a great idea. The log file already includes enough information to designate which integration (or dependency) a log line came from, so all that would be needed would be to filter for logs that have a matching value (based on the integration’s manifest which declares what dependencies it uses), and add a UI for it.

You have no idea how long I’ve been wishing for something like this. I really don’t see it being that challenging to implement either. This would be similar to what they’ve done by incorporating the Logbook in devices. I’m thinking this would look something like this?