This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed Official

[APP] Sonarr and Radarr

PhuturistPhuturist Member
edited May 2018 in Apps

Connect Sonarr and Radarr with Homey

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

Appstore pagehttps://apps.athom.com/app/tv.video.sonarr.radarr

Latest version -- 2018-04-26 -- v2.0.2

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

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
Tagged:
«1

Comments

  • Excellent
    Thanks..
    The Appstore link should be - https://apps.athom.com/app/tv.video.sonarr.radarr

  • swtttswttt Member
    Awesome! Something i have been thinking about myself to make. No need anymore now :)
  • 2017-06-18 -- v1.1.0

    IMPORTANT: this release requires you to re-pair your Sonarr and Radarr installation.
    • Added check in API if incoming IP matches IP of Sonarr or Radarr device
    • Added action cards for adding series and movies to Sonarr and Radarr through voice commands
    • Fixed a type-o in the hint of the Sonarr calendar card
  • zimbrazimbra Member
    edited June 2017
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
  • zimbra said:
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
    Are your Radarr and Sonarr installs on the same network as Homey and incoming traffic on the ip address of Homey is not blocked in any way like a firewall?
  • zimbrazimbra Member
    Phuturist said:
    zimbra said:
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
    Are your Radarr and Sonarr installs on the same network as Homey and incoming traffic on the ip address of Homey is not blocked in any way like a firewall?
    Jep same network. I can browse to homey and sonarr/radarr (on a synology) via the ip-address.
  • zimbra said:
    Phuturist said:
    zimbra said:
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
    Are your Radarr and Sonarr installs on the same network as Homey and incoming traffic on the ip address of Homey is not blocked in any way like a firewall?
    Jep same network. I can browse to homey and sonarr/radarr (on a synology) via the ip-address.
    What version of Radarr and Sonarr are you using?
  • zimbrazimbra Member
    edited June 2017
    Phuturist said:
    zimbra said:
    Phuturist said:
    zimbra said:
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
    Are your Radarr and Sonarr installs on the same network as Homey and incoming traffic on the ip address of Homey is not blocked in any way like a firewall?
    Jep same network. I can browse to homey and sonarr/radarr (on a synology) via the ip-address.
    What version of Radarr and Sonarr are you using?
    Sonarr http://192.168.0.129/api/app/tv.video.sonarr.radarr/sonarr/
    Version 2.0.0.4753
    Radarr 
    Version 0.2.0.778


    NzbDroneErrorPipelineRequest Failed. POST /api/notification/test: The request timed out22:10
    RestSharpExtensionsError communicating with server: The request timed out22:10
  • zimbra said:
    Phuturist said:
    zimbra said:
    Phuturist said:
    zimbra said:
    Can't get it to work :(
    Added webhook in sonarr and radarr but when I click on test I get the msg that it failed after 1 min.
    When I try https it immediately fails. I also tried the xxxxx.home.athom.com
    url http://my-ip/api/app/tv.video.sonarr.radarr/radarr/
    Are your Radarr and Sonarr installs on the same network as Homey and incoming traffic on the ip address of Homey is not blocked in any way like a firewall?
    Jep same network. I can browse to homey and sonarr/radarr (on a synology) via the ip-address.
    What version of Radarr and Sonarr are you using?
    Sonarr http://192.168.0.129/api/app/tv.video.sonarr.radarr/sonarr/
    Version 2.0.0.4753
    Radarr 
    Version 0.2.0.778
    Have you actually added your Sonarr and Radarr installations in Homey as devices? When testing the webhook it checks if the request is from an allowed IP address (one that belongs to a Sonarr or Radarr device). I should probably add this in the documentation.

    If you have done that already and it still fails: do you know you way around with Postman (https://www.getpostman.com/) or CLI installation. With Postman you could try to do a POST request on the URL you mentioned to see what it returns (it should return an error that the incoming ip is not allowed but it shows the API from the Homey app is working). Or I could cook up a special installation with additional debug logging on Homey side to see if the webhook call from Sonarr or Radarr actually makes it to Homey. If it does it might tell me what is going on, if it doesnt it tells that there is something in the connection between your Synology and Homey which is out of my hands.
  • zimbrazimbra Member
    edited June 2017
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
  • zimbra said:
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
    What does not work with Radarr, adding the device or adding the webhook? And what is the result. Your info could help other users.
  • swtttswttt Member
    Got both working yesterday, great work!
    Wasn't expecting that i had to add it to the devices first as well. (You might want to add that to the readme)

    Even if it was "not that much work" (your words), i do apreciate your work :smile: Just donated so you can buy some beer before you dry out with this weather ;)
  • swttt said:
    Got both working yesterday, great work!
    Wasn't expecting that i had to add it to the devices first as well. (You might want to add that to the readme)

    Even if it was "not that much work" (your words), i do apreciate your work :smile: Just donated so you can buy some beer before you dry out with this weather ;)
    Yes, will update the readme in the next version. Initial version wasn't that much work but I still have some more features planned.

    Thanks for the donation, it's appreciated. Just treated myself on some icecream here at work to keep it cool.
  • PhuturistPhuturist Member
    edited June 2017

    Latest version - v1.1.1 - 2017-06-22

    • IMPROVEMENTS: added leading zero to season and episode number tokens for Sonarr trigger cards
    • FIX: fixed an error which causes the app to crash in the speech handling part of the add cards for Sonarr and Radarr
    (forgot to update the readme with info about having to add the devices first, will do this on the next release)
  • zimbrazimbra Member
    edited June 2017
    Phuturist said:
    zimbra said:
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
    What does not work with Radarr, adding the device or adding the webhook? And what is the result. Your info could help other users.
    I can't add the device in Homey.
    It's on the same NAS as radarr (which works fine) so the IP is the same, default port and different API key but when I click on 'test connection' nothing happens :(

    I also changed the port and created a new api key but it still doesn't work.
    No error msg either.
  • zimbra said:
    Phuturist said:
    zimbra said:
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
    What does not work with Radarr, adding the device or adding the webhook? And what is the result. Your info could help other users.
    I can't add the device in Homey.
    It's on the same NAS as radarr (which works fine) so the IP is the same, default port and different API key but when I click on 'test connection' nothing happens :(

    I also changed the port and created a new api key but it still doesn't work.
    No error msg either.
    I'll look into it. Just to make sure, you are using the Radar endpoint? As in http://192.168.0.129/api/app/tv.video.sonarr.radarr/radarr/ .
  • zimbrazimbra Member
    Phuturist said:
    zimbra said:
    Phuturist said:
    zimbra said:
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
    What does not work with Radarr, adding the device or adding the webhook? And what is the result. Your info could help other users.
    I can't add the device in Homey.
    It's on the same NAS as radarr (which works fine) so the IP is the same, default port and different API key but when I click on 'test connection' nothing happens :(

    I also changed the port and created a new api key but it still doesn't work.
    No error msg either.
    I'll look into it. Just to make sure, you are using the Radar endpoint? As in http://192.168.0.129/api/app/tv.video.sonarr.radarr/radarr/ .
    I just can't create the device in Homey. The endpoint is to add the webhook right?
    I do exactly the same as I did when I added a sonarr device (both run on the same NAS).
    IP + port (8310 for sonarr) and a different API key. When I click test connection nothing happens.
  • zimbra said:
    Phuturist said:
    zimbra said:
    Phuturist said:
    zimbra said:
    Ok my bad I didn't add it in Homey first..
    Maybe you should make the documentation more noob friendly :p

    I was able to add sonarr now. Adding radarr doesn't work though but I don't use it that much anyway..

    Thanks!
    What does not work with Radarr, adding the device or adding the webhook? And what is the result. Your info could help other users.
    I can't add the device in Homey.
    It's on the same NAS as radarr (which works fine) so the IP is the same, default port and different API key but when I click on 'test connection' nothing happens :(

    I also changed the port and created a new api key but it still doesn't work.
    No error msg either.
    I'll look into it. Just to make sure, you are using the Radar endpoint? As in http://192.168.0.129/api/app/tv.video.sonarr.radarr/radarr/ .
    I just can't create the device in Homey. The endpoint is to add the webhook right?
    I do exactly the same as I did when I added a sonarr device (both run on the same NAS).
    IP + port (8310 for sonarr) and a different API key. When I click test connection nothing happens.
    What I ment is that you should not do exactly the same as with Sonarr. The steps are the same but the URL you enter as webhook in Radarr is different than the one from Sonarr. The last bold part is different: http://192.168.0.129/api/app/tv.video.sonarr.radarr/radarr/
  • zimbrazimbra Member
    Yes I understand but in order to add the webhook in radarr I need to create a radarr device in Homey first. And that's where I'm having issues. Or am I completely missing something here?
  • zimbra said:
    Yes I understand but in order to add the webhook in radarr I need to create a radarr device in Homey first. And that's where I'm having issues. Or am I completely missing something here?
    Uggh, sorry about that, I misunderstood you. I will look into this and see if I can reproduce. I'll let you know.
  • PhuturistPhuturist Member
    edited June 2017
    zimbra said:
    Yes I understand but in order to add the webhook in radarr I need to create a radarr device in Homey first. And that's where I'm having issues. Or am I completely missing something here?
    Well, I added my own Radarr install again (which also runs on a NAS) and checked the code and there are no issues for me. Not being able to reproduce makes it hard to troubleshoot. The only thing I can think of is to reset the API key in Radarr and then reboot the app or the NAS and then use the newly created API key to add the device.

    And before you do so, make sure you update to the latest version of Radarr (from a couple of days ago). It contains a fix about the API key: Ensure an API Key is set when starting Radarr (#1652) [Mitchell Cash]
  • v1.1.2 - 2017-07-06

    • IMPROVEMENT: add better error handling when adding webhooks in Radarr and Sonarr
    • FIX: updated api.js since Sonarr changed it webhook interface with Sonarr release 2.0.0.4855
  • swtttswttt Member
    Great work! Stopped crashing here :smile:

  • Hi There!

    I configured the app to send a message to the Telegram Bot when an episode (sonarr) or movie (radarr) is downloaded. But the message doesn't get send to Telegram.

    Running the flow in test mode works like expected.

    Any clue what the problem could be?

    Robbert
  • rvmourik said:
    Hi There!

    I configured the app to send a message to the Telegram Bot when an episode (sonarr) or movie (radarr) is downloaded. But the message doesn't get send to Telegram.

    Running the flow in test mode works like expected.

    Any clue what the problem could be?

    Robbert
    Have you set up the webhooks in Radarr and Sonarr as described in the instructions?
  • Ah man, something with RTFM :-)

    Thanks.
  • Phuturist said:
    rvmourik said:
    Hi There!

    I configured the app to send a message to the Telegram Bot when an episode (sonarr) or movie (radarr) is downloaded. But the message doesn't get send to Telegram.

    Running the flow in test mode works like expected.

    Any clue what the problem could be?

    Robbert
    Have you set up the webhooks in Radarr and Sonarr as described in the instructions?

    Looks like it's working now, however i have one question:

    When adding the webhook in Sonarr and clicking on "test", i instantly received a Telegram message. When i added the webhook to Radarr and clicked on the "test" button i got a confirmation the test was successfull, but i did not receive a message on Telegram.

    Is this something that sounds familiar?

    Thanks.
  • rvmourik said:
    Phuturist said:
    rvmourik said:
    Hi There!

    I configured the app to send a message to the Telegram Bot when an episode (sonarr) or movie (radarr) is downloaded. But the message doesn't get send to Telegram.

    Running the flow in test mode works like expected.

    Any clue what the problem could be?

    Robbert
    Have you set up the webhooks in Radarr and Sonarr as described in the instructions?

    Looks like it's working now, however i have one question:

    When adding the webhook in Sonarr and clicking on "test", i instantly received a Telegram message. When i added the webhook to Radarr and clicked on the "test" button i got a confirmation the test was successfull, but i did not receive a message on Telegram.

    Is this something that sounds familiar?

    Thanks.
    It's a bug, I'll post a bugfix to the app store this evening. May take some time to get approved though.
  • Phuturist said:
    rvmourik said:
    Phuturist said:
    rvmourik said:
    Hi There!

    I configured the app to send a message to the Telegram Bot when an episode (sonarr) or movie (radarr) is downloaded. But the message doesn't get send to Telegram.

    Running the flow in test mode works like expected.

    Any clue what the problem could be?

    Robbert
    Have you set up the webhooks in Radarr and Sonarr as described in the instructions?

    Looks like it's working now, however i have one question:

    When adding the webhook in Sonarr and clicking on "test", i instantly received a Telegram message. When i added the webhook to Radarr and clicked on the "test" button i got a confirmation the test was successfull, but i did not receive a message on Telegram.

    Is this something that sounds familiar?

    Thanks.
    It's a bug, I'll post a bugfix to the app store this evening. May take some time to get approved though.
    Thanks for the quick fix! Will wait for the update!

    thanks
  • Latest version - 2017-07-17 -- v1.1.3

    • IMPROVEMENT: add even better error handling for the webhooks of Sonarr and Radarr
    • FIX: fix a small issue with the Radarr webhook
This discussion has been closed.