Exploring Custom Integration Testing and Device Configuration

Hi everyone, I’m diving into the world of custom integrations and testing in Home Assistant. I’ve been working on a custom integration to import long-term statistics from CSV files, and while pytest works for local methods, I’m struggling with testing the actual data import into the HA database. I need the recorder and REST API up and running, but setting this up has been a hurdle. If anyone has tips or resources on how to properly set up the recorder in tests, I’d greatly appreciate it!

On another note, I’ve been exploring the Shelly Plus Smoke sensor. I’m curious if it can send emails autonomously without being connected to the Shelly Cloud—just using my home’s WLAN. Has anyone successfully configured this or knows a workaround?

I’d also love to hear about experiences with setting up SMTP ports for email alerts. I’ve come across issues where the default ports don’t work, especially with Gmail, which requires TLS or SSL. Any workarounds or best practices for configuring these would be invaluable.

Lastly, I’m looking into displaying the last online status of my devices. I tried a template sensor for my golf car, but it didn’t work as expected. If anyone has a reliable method to track and display the last online time, I’d be thrilled to learn more!

Thanks for sharing your insights and experiences. Let’s keep the learning and innovation flowing! :blush: