HomeAssistant integration for EPG (Electronic Program Guide) sensors using bevy.be EPG guide.
The integration will provide Program Guide in sensors.
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
Installation via HACS (recommended) or by copying custom_components/EPG
into your Home Assistant configuration directory.
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
.
The following services are implemented by the component:
track_channel
- add sensor for choosen channelservice: epg.track_channel data: file: chinapremium2 channel_id: AnhuiTV.cn
remove_channel
- delete sensor for choosen channelservice: epg.remove_channel data: channel_id: AnhuiTV.cn
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