jdeath / SageTVHomeassistant

MIT License
0 stars 0 forks source link

SageTV Support for Homeassistant

I have (poorly) written components for SageTV . There is a media_player as well as a sensor which is compatible with Lovelace: Upcoming Media Card. It has been stable for a few days, so probably good enough to share with people. The media_player works well (play/pause/commercial skip) but I cannot get the media_seek function to work. Also, the poster blinks every once in a while.

Installation

Copy the sagetv/sensor.py and sagetv/media_player.py to your custom_components folder (custom_components/sagetv/) in your configuration directory. If you do not have a custom_components/sagetv folder, then you will need to create it.

You must put ha.js in your SageTV sagex directory: C:\Program Files (x86)\SageTV\SageTV\sagex\services\

Make a posters directory in your local webserver .homeassistant/www/posters/ to locally cache posters for the upcoming media card

Configuration

sensor:
 - platform: sagetv
    scan_interval: 3600
    sagex: http://192.168.1.2:8080/
    posterdir: "/home/homeassistant/.homeassistant/www/posters/"
    posterurl: https://your.domain.com/local/posters/

media_player:
   - platform: sagetv
     name: Bedroom Sage
     extender: XXXXXXXXXXX
     sagex: "http://192.168.1.X:8080/"   

All URLs and Directories must have trailing slash