Hassarr is a custom Home Assistant integration to add movies and TV shows to Radarr, Sonarr and Overseerr.
- You must have Home Assistant OS or Home Assistant Core installed (I only tested it on Home Assistant Core)
- HACS installed on Home Assistant (instructions below for Home Assistant Core in Docker)
- SSH into your server (if you have one)
- SSH into your homeassistant docker container
docker exec -it <your_container_name> bash
- Run the following command to install HACS
wget -O - https://get.hacs.xyz | bash -
- Exit from the docker container
exit
- Restart the docker container
docker-compose restart <your_container_name>
- Add the HACS integration by going to <your_hass_ip>:<your_hass_port>/config/integrations/dashboard on the browser
- Press "+ Add Integration"
- Look up "HACS"
- Read and check all the boxes and Add
Now you should have the HACS button showing on the left menu, which should bring you to the HACS dashboard
- Press the button to add this custom repo to HACS
- Now look up "Hassarr" in the HACS Store search bar and download it
- Restart your home assistant again for Hassarr to be properly added:
docker-compose restart <your_container_name>
- Add Hassarr to your Home Assistant integrations: <your_hass_ip>:<your_hass_port>/config/integrations/dashboard
- Press "+ Add Integration"
- Look up "Hassarr" and select it
- It should prompt you to pick either Radarr & Sonarr, or Overseerr. Pick whichever service(s) you want to use and follow the instructions. 8a) For Radarr & Sonarr, after filling in the urls and api keys, it will prompt you with the quality profiles you want to use for each service. 8b) For Overseerr, after filling in the urls and api keys, it will prompt you with the Overseerr user you want to use for making requests.
Now Hassarr should be installed, and you can create an Automation or Intent to have sentences trigger downloads on Sonarr and Radarr.
Good question! I'm not even sure entirely what Automations are capable of precisely, but with Hassarr you're able to map a sentence to a Hassarr action, like Add Movie or Add TV Show.
You can set something up like "Add {some_title} to Radarr for me please" and this will trigger it to download your title on Radarr.
There's two ways of adding this, through the UI or directly into your automations.yaml file.
- In Home Assistant, go to Settings > Automations & Scenes > + Create Automation > Create New Automation
-
- Add Trigger > Sentence, and fill in something like this
Download {title} for me on radar
. It's important to writeradar
instead ofradarr
as your speech-to-text will always transcribe the spoken wordradar
toradar
, and not withrr
. Add multiple sentences if you want multiple phrases to trigger it to add a movie to Radarr. Same applies to Sonarr or Overseerr.
- Add Trigger > Sentence, and fill in something like this
-
- Add Action > Type in
Hassarr
> SelectHassarr: add_movie
> Press the three vertical dots >Edit in YAML
> and fill in the following into the YAML editor
action: hassarr.add_radarr_movie metadata: {} data: title: "{{ trigger.slots.title }}"
- Add Action > Type in
- Hit Save, give it a name like
Add Movie to Radarr
- Repeat steps 1-4 for Sonarr (or do it for Overseerr for movies and tv shows, if you prefer)
Now you should be able to add a movie or TV show to Radarr and Sonarr using the sentences you setup!
- Open the
automations.yaml
in your home assistant'sconfig
directory, or wherever you mount your home assistant's docker container - Paste in the following
- id: '1734867354703'
alias: Add movie using Assist
description: ''
triggers:
- trigger: conversation
command:
- (Download|Add|Send) movie {title} [on|to] [radarr|radar]
- (Baixa|Adiciona|Envia)[r] [o] filme {title} [no|ao|para o|para] [radarr|radar]
conditions: []
actions:
- action: hassarr.add_radarr_movie
metadata: {}
data:
title: ""{{ trigger.slots.title }}""
mode: single
You can change the sentences in command:
to whatever sentences you like, add more etc.
3) Save the file, and you're good to go.
4) Make a copy of this for Sonarr (or for Overseerr, one for movies and one for tv shows, if you so prefer)
Shoutout to the repo by Github user Avraham for trying this some time ago, but unfortunately I had difficulties trying to get this to work. Make sure to check the Template sentence syntax to understant how to change the activation commands.