yohaybn / HomeAssistant-EPG

EPG (Electronic Program Guide) sensor for HomeAssistant using bevy.be data
1 stars 0 forks source link
epg ha home-assistant

HomeAssistant-EPG

HomeAssistant integration for EPG (Electronic Program Guide) sensors using bevy.be EPG guide.

The integration will provide Program Guide in sensors.

Installation

Until the repository enters the default repository of HACS, you can add the repository to a custom repository in HACS https://github.com/yohaybn/HomeAssistant-EPG

custom_repo.png

My Home Assistant

Installation via HACS (recommended) or by copying custom_components/EPG into your Home Assistant configuration directory.

Configuration

To create sensors with television programming for the channels add

# Example configuration.yaml entry
...
sensor:
  - platform: epg
    full_schedule: true
    files:
      - israelpremium
      - chinapremium2
...
Name Type Default Description
full_schedule bool false add full schedule to attributes (2 days). can create issues with recorder (exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored)
files string array required file names which you want to use to create EPG. files name taken from here, for example for https://www.bevy.be/bevyfiles/argentinapremium2.xml file enter argentinapremium2

this will create sensor for each file contains the list of channels that can be tracked using service track_channel.

Services

The following services are implemented by the component:

television programming lovelace card example

type: markdown
content: |

  {% for time in states.sensor.epg_an_hui_wei_shi.attributes.today -%}
    {% set program=states.sensor.epg_an_hui_wei_shi.attributes.today[time] %}
     <details>  
     <summary>{{time}}: {{ program.title}}</summary>
      {{ program.desc}}
    </details>
   {%- endfor %}.
title: today