The lastfm sensor platform will allow you to see whenever a user starts scrobbling, their play count, last song played, and top song played on

To get an API key you need to create an API account.

To use with your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
  - platform: lastfm
    api_key: YOUR_API_KEY
      - user1
      - user2

Configuration variables:

  • api_key (Required): Your API key.
  • users array (Required): Array of users.
    • username (Required): Username of the user.