2022-03-30 21:50:39 +02:00

1.0 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_domain, ha_platforms, ha_integration_type
title description ha_category ha_iot_class ha_release ha_domain ha_platforms ha_integration_type
Last.fm Instructions on how to integrate Last.fm sensors into Home Assistant.
Social
Cloud Polling 0.20 lastfm
sensor
integration

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 Last.fm.

Setup

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

Configuration

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

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

{% configuration %} api_key: description: Your Last.fm API key. required: true type: string users: description: List of users. required: true type: list keys: username: description: Username of the user to monitor. {% endconfiguration %}