Homey Community Forum

Sonarr and Radarr App

app
#1

sonarrradarr

Connect Sonarr and Radarr with Homey

App Store page : https://apps.athom.com/app/tv.video.sonarr.radarr

Description

Connect Sonarr and/or Radarr with Homey and receive updates about grabbed and finished downloads and upcoming episodes and movies.

Instructions

For Homey to be able to receive updates from Sonarr and Radarr these applications need to send notifications to Homey on events like finished downloads. This is achieved by registering a webhook in Sonarr and/or Radarr. Below is a short instruction on how to register this webhook.

  • First add your Sonarr and/or Radarr installations as devices in Homey. You will need to fill in the IP address and API key.
  • Then log into your Sonarr / Radarr installation and go to “Settings > Connect”.
  • Click on the plus button and click on the Webhook notification in the Add Notification popup
  • Enter the details as followed:
    • Name: Homey (or something similar)
    • On Grab: Yes
    • On Download: Yes
    • On Upgrade: No
    • On Rename: No
    • Filter Series Tags: Empty
    • URL for Sonarr: http(s)://yourip-or-homey-url/api/app/tv.video.sonarr.radarr/sonarr/ where you add the local IP of Homey (if on the same network as Sonarr) or the external cloud URL of Homey
    • URL for Radarr: http(s)://yourip-or-homey-url/api/app/tv.video.sonarr.radarr/radarr/ where you add the local IP of Homey (if on the same network as Radarr) or the external cloud URL of Homey
    • Method: POST
#2

Changelog

v2.0.7 - 2019-02-06

FIX: improvements to pairing templates for firmware 2.x

v2.0.6 - 2018-12-27

FIX: removed incoming IP address security validation in api.js due to Athom removing the request object in firmware 2.x

v2.0.5 - 2018-12-14

FIX: update compatibility to enable install on Homey firmware v2.x

v2.0.4 - 2018-09-09

REFACTORING: switched from request node module to node-fetch (reduced footprint from 7,5MB to 400 kB)

v2.0.3 - 2018-08-22

  • UPDATE: updated app manifest to include id of new forum support topic
  • UPDATE: updated node packages to latest versions

v2.0.2 - 2018-04-26

  • UPDATE: updated dependencies to fix security issue in on of the packages, no functionality changes
#3

This url http://123.12.1.1/api/app/tv.video.sonarr.radarr/sonarr/ (example ip ofcourse) just responds with:

{
    status: 404,
    result: "not_found"
}

Neither radarr nor sonarr can push to homey :frowning:

#4

The API URL only listens to POST request, not to direct GET requests. What is the error you see in Sonarr or Radarr when you webhook notification as described in the instructions?

#5

Ah, sorry, my bad. I had “GET” as method for some reason.

#6

Hi! First of all thanks for making this app.

I have a flow that uses the ACTION to speak the latest movies or episodes downloaded.
However, If i ask google home to “ask homey” the flow is started nicely but the answer is being given on te homey speaker (which sounds horrible).
Is there a way to get the answer back through the google home speaker?

#7

U can try with the Google TTS app, works like a charm!

1 Like
#8

I keep getting a ‘error: Could not find that PairSession’, even after getting a new key from sonarr, any idea what i’m doing wrong here?

#9

All i can tell you is to make sure the IP and port are correct and that your homey is connected on the same network.
I had the ports mixed up at the start and got the same error.

You can test the API + key from command line or any browswer in the same network.

$  curl http://IP:PORT/api/system/status?apikey=YOUR_API_KEY
    {
      "version": "2.0.0.5322",
<SNIP>