Hey everyone! I wanted to share my recent project that I think might be helpful for others who love music and Home Assistant integrations. I’ve always been into tracking my music listens on Last.fm—it’s such a cool way to refresh my playlists and discover new music based on what I listen to throughout the day. However, I noticed that some of my favorite music players didn’t have native Last.fm integration, especially when streaming tracks. This got me thinking—why not create a solution myself? So, I decided to develop a custom Last.fm Scrobbler for Home Assistant. The goal was to capture media player events from Home Assistant and send that metadata to Last.fm automatically. After some research and coding, I managed to create a Python script that does exactly that! The script listens for media player events, checks if the track is scrobble-able, and then sends the data to Last.fm via their API. To get started, you’ll need to clone the GitHub repository and set up an automation in Home Assistant. The setup can be done using either YAML-based automations or Node-RED, depending on your preference. The full documentation is available in the repository, which walks you through the entire process step by step. I’ve been using this script for a while now, and it’s been a game-changer for me. It seamlessly integrates with all my music players, and I no longer have to worry about missing out on scrobbles. Plus, it’s been great to see my listening habits reflected on Last.fm in real-time. If anyone has questions or needs help setting this up, feel free to reach out! I’d love to hear if others find this useful or if there are features they’d like to see added in the future. Happy music tracking! ![]()