Skip to content

Custom component for Home Assistant to track Hungarian TV program

License

Notifications You must be signed in to change notification settings

vorostamas/portHuTV-homeassistant

Repository files navigation

Port.hu TV Schedule for Home Assistant

This component gets the schedule of a (Hungarian) TV channel from Port.hu for that day.

GitHub Release GitHub Activity License

hacs Project Maintenance BuyMeCoffee

Discord Community Forum

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

Installation with HACS
  1. Go to any of the sections in HACS(integrations, frontend, automation).
  2. Click on the 3 dots in the top right corner.
  3. Select "Custom repositories"
  4. Add this URL to the repository: https://github.com/vorostamas/portHuTV-homeassistant
  5. Select the Integration category.
  6. Click the "ADD" button.
  7. Click on "Install" button.
Manual installation
  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called porthutv.
  4. Download all the files from the custom_components/porthutv/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant

Configuration in the UI

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.


Support

If you like this component, help me out with a couple of 🍻 or a ☕!

coffee


Lovelace

One possible way to show the schedules on the UI is using List Card. See examples below.

Examples

Example entity

entity-example

List-card example

list-card-example

Notes

  • Some channels provide schedules for only daytime. For example, tvchannel-2 schedule ends at 19:50, and there is a corresponding evening channel tvchannel-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

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines

Legal

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.


About

Custom component for Home Assistant to track Hungarian TV program

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages