mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Added Last.fm page
This commit is contained in:
parent
46575c6d25
commit
72a672519c
38
source/_components/sensor.lastfm.markdown
Normal file
38
source/_components/sensor.lastfm.markdown
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: "Last.fm"
|
||||||
|
description: "Instructions how to integrate Last.fm sensors into Home Assistant."
|
||||||
|
date: 2016-05-18 09:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
logo: lastfm.png
|
||||||
|
ha_category: Sensor
|
||||||
|
ha_iot_class: "Cloud Polling"
|
||||||
|
ha_release: 0.20
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
The Last.fm platform will allow you to see whenever a user starts scrobbling, their play count, last song played and top song played.
|
||||||
|
|
||||||
|
To get an API key you need to create an ["API account"](http://www.last.fm/api/account/create).
|
||||||
|
|
||||||
|
To use Last.fm with your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 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.
|
||||||
|
|
BIN
source/images/supported_brands/lastfm.png
Normal file
BIN
source/images/supported_brands/lastfm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user