This component gets the schedule of a (Hungarian) TV channel from Port.hu for that day.
This component will set up the following sensor:
Name | Description |
---|---|
entity_id |
sensor.name_of_the_channel |
state |
The show that is live at the moment. |
The sensor has the following attributes:
Attribute | Description |
---|---|
next_show |
The upcoming show. |
previous_show |
The show before the ongoing one. |
schedule |
The guide for the day. |
friendly_name |
The name of the channel |
icon |
mdi:television-guide |
Installation with HACS
- Go to any of the sections in HACS(integrations, frontend, automation).
- Click on the 3 dots in the top right corner.
- Select "Custom repositories"
- Add this URL to the repository:
https://github.com/vorostamas/portHuTV-homeassistant
- Select the Integration category.
- Click the "ADD" button.
- Click on "Install" button.
Manual installation
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledporthutv
. - Download all the files from the
custom_components/porthutv/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Port.hu TV".
You need to add the channel ID of the TV channel. You can check the channel ID in the channel_mapping.json
file.
You can repeat this method to add multiple channels.
If you like this component, help me out with a couple of 🍻 or a ☕!
One possible way to show the schedules on the UI is using List Card. See examples below.
- Some channels provide schedules for only daytime. For example,
tvchannel-2
schedule ends at 19:50, and there is a corresponding evening channeltvchannel-361
starts after 19:50. - You may want to exclude the sensor from
recorder
, because Home Assistant will store the states in the database.
Example list-card configuration
type: 'custom:list-card'
entity: sensor.comedy_central
title: Comedy Central
feed_attribute: schedule
row_limit: 100
columns:
- title: Start
field: start_time
- title: End
field: end_time
- title: Title
field: title
add_link: film_url
- title: Description
field: short_description
If you want to contribute to this please read the Contribution guidelines
This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Port.hu or any of its affiliates or subsidiaries. This is an independent and unofficial application.