{"id":49848500,"url":"https://github.com/mysiar/ha-custom-component-mnbp","last_synced_at":"2026-05-14T13:33:24.145Z","repository":{"id":321436265,"uuid":"1085757331","full_name":"mysiar/ha-custom-component-mnbp","owner":"mysiar","description":"This sensor is using official NBP API","archived":false,"fork":false,"pushed_at":"2025-10-29T16:32:15.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T17:40:36.196Z","etag":null,"topics":["custom-component","home-assistant","integration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mysiar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-29T13:25:47.000Z","updated_at":"2025-10-29T16:31:40.000Z","dependencies_parsed_at":"2025-10-29T17:40:38.342Z","dependency_job_id":null,"html_url":"https://github.com/mysiar/ha-custom-component-mnbp","commit_stats":null,"previous_names":["mysiar/ha-custom-component-mnbp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mysiar/ha-custom-component-mnbp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mnbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mnbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mnbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mnbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysiar","download_url":"https://codeload.github.com/mysiar/ha-custom-component-mnbp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mnbp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33026865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["custom-component","home-assistant","integration"],"created_at":"2026-05-14T13:33:23.251Z","updated_at":"2026-05-14T13:33:24.101Z","avatar_url":"https://github.com/mysiar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant custom component NBP\n\nProvides\n - NBP exchange rates for today (table C) `*`\n - NBP gold price for today `*`\n\n`*` - requires manual update via automation to fetch the latest data from NBP API.\n\n## Sensor configuration\n\n```yaml\nsensor:\n  - platform: mnbp\n    type: exchange_today\n\n  - platform: mnbp\n    type: gold_today\n```\n\n## Automations\n\n```yaml\n- id: 'f2b0c78b-25b9-4ec2-9e9c-aa258cc8a4a1'\n  alias: Update NBP Exchange Sensor Daily at 08:30\n  description: Trigger manual update of NBP exchange rate sensor\n  trigger:\n    - platform: time\n      at: \"08:30:00\"\n  action:\n    - service: homeassistant.update_entity\n      target:\n        entity_id: sensor.nbp_exchange_rate_today\n  mode: single\n\n- id: 'f2b0c78b-25b9-4ec2-9e9c-aa258cc8a4a2'\n  alias: Update NBP Gold Sensor Daily at 08:30\n  description: Trigger manual update of NBP gold price sensor\n  trigger:\n    - platform: time\n      at: \"08:30:00\"\n  action:\n    - service: homeassistant.update_entity\n      target:\n        entity_id: sensor.nbp_gold_price_today\n  mode: single\n```\n\n## Instalation\n### 📦 Manual Installation\n\nTo install this integration manually, you need to download [**mnbp.zip**](https://github.com/mysiar/ha-custom-component-mnbp/releases/latest/download/mnbp.zip) and extract its contents to the `config/custom_components/mnbp` directory.\n\n\n```bash\nmkdir -p custom_components/mnbp\ncd custom_components/mnbp\nwget https://github.com/mysiar/ha-custom-component-mnbp/releases/latest/download/mnbp.zip\nunzip mnbp.zip\nrm mnbp.zip\n```\n## Display data (markdown-card)\n### exchange_today\n\n#### markdown table display\n```yaml\n{% set rates = state_attr('sensor.nbp_exchange_rate_today', 'rates') %} \n{% if rates %}\n|Kod   | Kupno   | Sprzedaż | Waluta|\n|------|---------|----------|-------|{% for r in rates %}\n| {{ \"%-5s\"|format(r.code) }} | {{\"%7.4f\"|format(r.bid) }} | {{ \"%8.4f\"|format(r.ask) }} | {{ r.currency }} |{% endfor %} {% else %} _Brak danych kursów walut._ {% endif %}\n```\n\n#### html table display\n```yaml\n{% set rates = state_attr('sensor.nbp_exchange_rate_today', 'rates') %}\n  {% if rates %}\n  \u003ctable width=\"100%\" border=\"1\" style=\"border-collapse:collapse;\"\u003e\n    \u003ctr\u003e\u003cth align=\"center\"\u003eKod\u003c/th\u003e\u003cth align=\"center\"\u003eKupno\u003c/th\u003e\u003cth align=\"center\"\u003eSprzedaż\u003c/th\u003e\u003cth align=\"center\"\u003eWaluta\u003c/th\u003e\u003c/tr\u003e\n    {% for r in rates %}\u003ctr\u003e\n      \u003ctd align=\"center\"\u003e{{ r.code }}\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e{{ \"%.4f\"|format(r.bid) }} zł\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e{{ \"%.4f\"|format(r.ask) }} zł\u003c/td\u003e\n      \u003ctd align=\"left\"\u003e{{ r.currency }}\u003c/td\u003e\n    \u003c/tr\u003e{% endfor %}\n  \u003c/table\u003e\n  {% else %}\n  \u003cp\u003e\u003cem\u003eBrak danych kursów walut.\u003c/em\u003e\u003c/p\u003e\n  {% endif %}\n```\n### gold_today\n\n```\n{% set sensor = 'sensor.nbp_gold_price_today' %}\n{% set value = states(sensor) %}\n{{value}} zł\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysiar%2Fha-custom-component-mnbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysiar%2Fha-custom-component-mnbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysiar%2Fha-custom-component-mnbp/lists"}