Skip to content

firerm/jahoogr-el-news-ha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jahoo.gr Greek News ( or your language ) for Home Assistant 🇬🇷

hacs_badge version maintainer

A lightweight and efficient Home Assistant integration that fetches the latest news headlines from Every Site has RSS feed. It displays news in a sleek, rotating card format directly on your dashboard, keeping you updated with what's happening in Greece( you can change that) and all over the world.

Logo

✨ Key Features

  • 📰 Live RSS Feed: Automatically fetches the latest news from Every Site. ( default every 15 minutes)
  • 🔄 Auto-Rotation: News cards rotate automatically based on your preferred interval.
  • 🎛️ Fully Customizable:
    • Set the rotation speed (in seconds). ( removed in version 1.3.0 )
    • Choose the number of headlines to display in the loop.
    • Define the feed refresh interval (how often to check for new stories).
  • navigation: Built-in Next and Previous buttons for manual browsing.
  • 🚀 Lightweight & Fast: Optimized performance with minimal resource usage.
  • 📱 Dashboard Ready: Easy to add to any Lovelace view.

Logo

📦 Installation via HACS (Automatic)

The easiest way to install this integration is via HACS. Click the button below to open HACS directly on your Home Assistant instance and download the repository:

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

📥 Installation via HACS (Manual)

This integration is available via HACS (Home Assistant Community Store) as a custom repository.

  1. Open your Home Assistant instance and navigate to HACS.
  2. Click on Integrations.
  3. In the top right corner, click the three dots () and select Custom repositories.
  4. Paste the following URL into the HACS Repository field:
    https://github.com/firerm/jahoogr-el-news-ha
    
  5. In the Category dropdown, select Integration.
  6. Click Add.
  7. Once added, close the modal and find the new integration in the list. Click Download.
  8. Restart Home Assistant to apply the changes.

⚙️ Configuration

After installation, you can configure the integration directly via the Home Assistant UI:

  1. Go to Settings > Devices & Services.
  2. Click Add Integration and search for Jahoo EL news HA.
  3. Follow the on-screen instructions to set your preferences:
    • Feed Refresh Rate: (e.g., 30 minutes)
    • Max Cards: Number of news items to rotate. Logo

🖼️ Dashboard Setup ( ONLY FOR VERSION 1.2.2 )

To display the news on your dashboard, simply add the custom card provided by the integration. That's it ! enjoy!

type: vertical-stack
cards:
  - type: markdown
    content: >
      {% if state_attr('sensor.jahoo_el_news_ha_rss', 'image_url') %}
      <a href="{{ state_attr('sensor.jahoo_el_news_ha_rss', 'link') }}" target="_blank"><img src="{{ state_attr('sensor.jahoo_el_news_ha_rss', 'image_url') }}" width="100%"/></a>
      {% endif %}

      <h3><a href="{{ state_attr('sensor.jahoo_el_news_ha_rss', 'link') }}" target="_blank" style="text-decoration: none; color: inherit;">{{ states('sensor.jahoo_el_news_ha_rss') }}</a></h3>

      {{ state_attr('sensor.jahoo_el_news_ha_rss', 'description') }}

      <small>News {{ state_attr('sensor.jahoo_el_news_ha_rss', 'article_index') }} / {{ state_attr('sensor.jahoo_el_news_ha_rss', 'total_articles') }}</small>
  - type: horizontal-stack
    cards:
      - type: button
        entity: button.jahoo_el_news_ha_previous
        icon: mdi:arrow-left
        show_name: false
        icon_height: 30px
        tap_action:
          action: call-service
          service: button.press
          target:
            entity_id: button.jahoo_el_news_ha_previous
      - type: button
        entity: button.jahoo_el_news_ha_next
        icon: mdi:arrow-right
        show_name: false
        icon_height: 30px
        tap_action:
          action: call-service
          service: button.press
          target:
            entity_id: button.jahoo_el_news_ha_next

NEW!! 📋 Dashboard Configuration (YAML) 1.3.0 Version

Important

CONFIGURATION REQUIRED FOR v1.3.0+

Since version 1.3.0 allows you to set Custom Feed Names, the entity IDs shown in the code below (e.g., sensor.jahoo_el_news_ha_news) are placeholders.

You MUST replace them with the specific Entity IDs generated for your feed based on the name you chose during setup.

  • Replace sensor.jahoo_el_news_ha_news with your actual sensor ID.
  • Replace button.jahoo_el_news_ha_previous & next with your actual button IDs.
type: vertical-stack
cards:
  - type: markdown
    content: >
      # ----------------------------------------------------------------------
      # IMPORTANT: Replace 'sensor.jahoo_el_news_ha_news' with YOUR sensor ID
      # ----------------------------------------------------------------------
      {% if state_attr('sensor.jahoo_el_news_ha_news', 'image_url') %}
      <a href="{{ state_attr('sensor.jahoo_el_news_ha_news', 'link') }}" target="_blank"><img src="{{ state_attr('sensor.jahoo_el_news_ha_news', 'image_url') }}" width="100%"/></a>
      {% endif %}

      <h3><a href="{{ state_attr('sensor.jahoo_el_news_ha_news', 'link') }}" target="_blank" style="text-decoration: none; color: inherit;">{{ states('sensor.jahoo_el_news_ha_news') }}</a></h3>

      {{ state_attr('sensor.jahoo_el_news_ha_news', 'description') }}

      <small>News {{ state_attr('sensor.jahoo_el_news_ha_news', 'article_index') }} / {{ state_attr('sensor.jahoo_el_news_ha_news', 'total_articles') }}</small>
  - type: horizontal-stack
    cards:
      - type: button
        # REPLACE THE ENTITY BELOW with your actual 'previous' button ID
        entity: button.jahoo_el_news_ha_previous
        icon: mdi:arrow-left
        show_name: false
        icon_height: 30px
        tap_action:
          action: call-service
          service: button.press
          target:
            # Don't forget to update the target entity here too!
            entity_id: button.jahoo_el_news_ha_previous
      - type: button
        # REPLACE THE ENTITY BELOW with your actual 'next' button ID
        entity: button.jahoo_el_news_ha_next
        icon: mdi:arrow-right
        show_name: false
        icon_height: 30px
        tap_action:
          action: call-service
          service: button.press
          target:
            # Don't forget to update the target entity here too!
            entity_id: button.jahoo_el_news_ha_next

HACS Custom GitHub stars GitHub issues Maintenance


Created by Tassos S. Manolis | Powered by jahoo.gr

About

Home Assistant RSS news Card

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages