Notice: Next Version (WIP) will exposed as a media_player. In the meantime, use this as frontend
- Make sure you've the Component Store installed and working.
- Navigate to the Store (on the menu bar), then select Store
- Select zing_mp3 and install.
- Restart Home-Assistant.
- Create a directory
custom_components/zing_mp3in your Home Assistant configuration directory. - Copy all files and sub-directories into the directory
<config directory>/custom_components/zing_mp3/.
It should look similar to this after installation:
.homeassistant/ (/config in Hass.io)
|-- custom_components/
| |-- zing_mp3/
| |-- __init__.py
| |-- manifest.json
| |-- services.yaml
| |-- etc...
- Add the following to your configuration.yaml file.
zing_mp3:- To use as frontend please reference to this file
Play current top 100 on Zing mp3
Service data:
entity_id: media_player to play
category: 'pop', 'country', 'rock', 'dance', 'r&b'', 'rap', 'soundtrack',
'nhac tre', 'tru tinh', 'que huong', 'cach mang', 'rock viet', 'rap viet', 'dance viet'
repeat(Optional): true. Default: false
shuffle(Optional): true. Default: false
Example service Data
{
"entity_id": "media_player.google_home_speaker"
"category": "tru tinh",
"repeat": false,
"shuffle": true
}
Play specific song on zing mp3
Service data:
entity_id: media_player to play
name: song_name to play
Example service Data
{
"entity_id": "media_player.google_home_speaker"
"name": "happy new year"
}
The component will check for updates each time HA is restarted. When there is a new version, a Persistent Notification will appear.
Use the services zing_mp3.check_updates to manually check for updates and zing_mp3.update_component to start the automatic update.