{"id":35082486,"url":"https://github.com/theundefined/omnis-ha","last_synced_at":"2026-04-27T09:31:20.383Z","repository":{"id":330034203,"uuid":"1121379577","full_name":"theundefined/omnis-ha","owner":"theundefined","description":"OMNIS Library integration for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-12-22T22:43:21.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-24T11:44:53.103Z","etag":null,"topics":["hacs","home-assistant","integration","library","omnis"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theundefined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-22T22:38:07.000Z","updated_at":"2025-12-22T22:43:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/theundefined/omnis-ha","commit_stats":null,"previous_names":["theundefined/omnis-ha"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/theundefined/omnis-ha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fomnis-ha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fomnis-ha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fomnis-ha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fomnis-ha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theundefined","download_url":"https://codeload.github.com/theundefined/omnis-ha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fomnis-ha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32331305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacs","home-assistant","integration","library","omnis"],"created_at":"2025-12-27T12:59:28.133Z","updated_at":"2026-04-27T09:31:20.367Z","avatar_url":"https://github.com/theundefined.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OMNIS Library Integration for Home Assistant\n\n[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)\n[![GitHub Release](https://img.shields.io/github/release/TheUndefined/omnis-ha.svg)](https://github.com/TheUndefined/omnis-ha/releases)\n\nIntegration for library accounts using the OMNIS system (Ex Libris Primo). Currently optimized for **Biblioteka Raczyńskich** (Poznań), but configurable for other institutions.\n\nIntegracja kont bibliotecznych systemu OMNIS (Ex Libris Primo). Obecnie zoptymalizowana dla **Biblioteki Raczyńskich** w Poznaniu, ale konfigurowalna dla innych instytucji.\n\n## Features / Funkcjonalności\n\n*   📚 **Loans monitoring / Monitorowanie wypożyczeń**:\n    *   Total loans count / Całkowita liczba wypożyczonych książek.\n    *   Loans per library branch / Wypożyczenia z podziałem na filie.\n*   📅 **Due Dates / Terminy zwrotów**:\n    *   \"Next Due\" sensor showing the nearest return date / Sensor \"Najbliższy zwrot\" pokazujący datę najbliższego zwrotu.\n    *   Calendar entity with all due dates / Kalendarz z terminami zwrotów wszystkich książek.\n    *   Attributes include days remaining, book title, and location / Atrybuty zawierają liczbę pozostałych dni, tytuł książki i filię.\n*   💰 **Fines / Kary**:\n    *   Monitoring of account balance and fines / Monitorowanie salda kar na koncie.\n*   🔄 **Renewals / Prolongaty**:\n    *   Service `omnis.renew_loan` to renew books directly from HA / Usługa do prolongowania książek bezpośrednio z HA.\n\n## Installation / Instalacja\n\n### HACS (Recommended)\n\n1.  Open HACS \u003e Integrations \u003e 3 dots (top right) \u003e Custom repositories.\n2.  Add `https://github.com/TheUndefined/omnis-ha` as an Integration.\n3.  Click \"Download\".\n4.  Restart Home Assistant.\n\n### Manual\n\n1.  Copy the `custom_components/omnis` folder to your HA `config/custom_components/` directory.\n2.  Restart Home Assistant.\n\n## Configuration / Konfiguracja\n\n1.  Go to Settings \u003e Devices \u0026 Services.\n2.  Click \"+ Add Integration\".\n3.  Search for **OMNIS Library**.\n4.  Enter your library credentials (username and password).\n5.  Select your library (e.g., \"Biblioteka Raczyńskich\") or choose \"Custom\" to enter API details manually.\n\n## Dashboard Card Example / Przykładowa karta\n\nYou can use the Markdown card to display a nice table of loans:\nMożesz użyć karty Markdown, aby wyświetlić ładną tabelę wypożyczeń:\n\n```yaml\ntype: markdown\ncontent: \u003e\n  {% set all_loans = namespace(list=[]) %}\n  {% set today = now().date() %}\n  \n  {% for state in states.sensor %}\n    {% if state.attributes.loans is defined and state.attributes.loans is iterable %}\n      {% set user = state.attributes.display_name | default('Unknown') %}\n      {% for loan in state.attributes.loans %}\n        {% set due = strptime(loan.due_date, '%Y-%m-%d').date() %}\n        {% set delta = (due - today).days %}\n        {% set loan_data = dict(loan, user=user, delta=delta, due_obj=due) %}\n        {% set all_loans.list = all_loans.list + [loan_data] %}\n      {% endfor %}\n    {% endif %}\n  {% endfor %}\n\n  {% if all_loans.list | length == 0 %}\n  No active loans.\n  {% else %}\n  \n  {% set grouped = all_loans.list | sort(attribute='location') | groupby('location') %}\n\n  {% for location, loans in grouped %}\n  ## 🏛️ {{ location }}\n  \n  | Due Date | Days | Book | User |\n  | :--- | :---: | :--- | :--- |\n  {% for loan in loans | sort(attribute='due_obj') %}\n  {%- if loan.delta \u003c 0 -%}\n  | 🔴 **{{ loan.due_date }}** | **{{ loan.delta }}** | {{ loan.title }} | {{ loan.user }} |\n  {%- elif loan.delta \u003c= 3 -%}\n  | 🟠 {{ loan.due_date }} | {{ loan.delta }} | {{ loan.title }} | {{ loan.user }} |\n  {%- else -%}\n  | 🟢 {{ loan.due_date }} | {{ loan.delta }} | {{ loan.title }} | {{ loan.user }} |\n  {%- endif -%}\n  {% endfor %}\n  \n  ---\n  {% endfor %}\n  {% endif %}\ntitle: Loans Overview\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheundefined%2Fomnis-ha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheundefined%2Fomnis-ha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheundefined%2Fomnis-ha/lists"}