Giter Site home page Giter Site logo

youdroid / home-assistant-couchpotato Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 189 KB

๐ŸŽฅ CouchPotato component to feed Upcoming Media Card.

Python 100.00%
couchpotato customcomponents homeassistant homeassistant-components homeassistant-sensor python

home-assistant-couchpotato's Introduction

๐Ÿ’ซ About Me:

๐Ÿ”ญ Iโ€™m currently working Java application and ReactJs WebApp
๐ŸŒฑA passionate Home Assistant and IOT developer from France

๐Ÿ’ป Tech Stack:

C Java JavaScript JWT NPM React Spring Apache Apache Maven Nginx MongoDB MySQL Postgres Python Ansible Docker Arduino Raspberry Pi

๐Ÿ“Š GitHub Stats:




home-assistant-couchpotato's People

Contributors

youdroid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

home-assistant-couchpotato's Issues

not showing new downloads

Hi, gret plugin! relaly keen to have this working. However I have set up a downloaded sensor and it wont show in the card on lovelace, and sensor is showing 'unknown' state in Home Assistant dev states.

my config.yaml:

- platform: couchpotato token: !SECRET state: 'done' name: Downloaded Movies

Hope you can help

Sorting not working correctly

Hello Dear youdroid,

First of all I would like to say a big Thank You for your hard work to make this integration!

I have a big movie folder with nearly about 1000 Movie inside. I added the Downloaded-Movies Sensor with your Guide.

  - platform: couchpotato
    name: Downloaded movies
    token: !secret TOKEN
    host: 192.168.0.10
    port: 5050
    protocol: 'http'
    state: 'done'
    sort: 'date'

The sensor is created but the sorting by date not working correctly. First of all there was a random placement of Movies, after I set sort: 'date' it changed to A-Z Sorting.

Here you can see the actual status:
image

I would like to see what is the newest Downloaded movies, So I can create a notification from Home Assistant if one of my movies what was in the wanted list getting downloaded, so I'll realize OK this movie already out and downloaded to my Plex Server.

If I can provide any other information please let me know.

Thank you,
Best regards,

Update for sensor.wanted_movies fails

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 514, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 742, in async_device_update
raise exc
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/couchpotato/sensor.py", line 93, in update
elif "release_date" in movie['info'] and len(movie['info']['release_date']['expires']) != 0:
TypeError: object of type 'int' has no len()

Would it be better to define this as a float or come up with different logic for the test?

Integration keeps showing 'done' movies

You're integration keeps showing the 'done' movies. Even when using the 'active' setting in the configuration.yaml file.
I've tried the following:

  - platform: couchpotato
    name: Wanted movies
    token: MYAPIKEY/media.list/?t=8z7yh7e3&type=movie
    host: 192.168.2.40
    state: 'active'

Which gives me my 'done' movies as a result.

I've also tried:

  - platform: couchpotato
    name: Wanted movies
    token: MYAPIKEY/media.list/?t=fsRP2gF1&type=movie&status=active
    host: 192.168.2.40
    #state: 'active'

Which gives a state 'unknown' in HA

Documentation Update Suggestion.

CouchApi

I would like to suggest updating the documentation for Api key retrieve to this image...
I believe it will cause less confusion for users who are less familiar with the browser development tools, like the network tab. :)

sensor has started failing

Hi

my sensor has started failing with following error..

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/couchpotato/sensor.py", line 93, in update
elif "release_date" in movie['info'] and len(movie['info']['release_date']['expires']) != 0:
TypeError: object of type 'int' has no len()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.