home-assistant.io/source/_components/sensor.lastfm.markdown
2016-08-14 14:29:57 -07:00

955 B

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Last.fm Instructions how to integrate Last.fm sensors into Home Assistant. 2016-05-18 09:00 true false true true lastfm.png Social Cloud Polling 0.20

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.

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

To use Last.fm 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 variables:

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