Skip to content

Home Assistant custom component for creating sensors for checking if your holder number(s) have won on the premium bonds.

Notifications You must be signed in to change notification settings

inverse/home-assistant-premium-bond-checker-component

Repository files navigation

Premium Bond Checker for Home Assistant

hacs release build

A Home Assistant component for creating sensors for checking if your holder number(s) have won on the premium bonds.

It fetches data from Nsandi, leveraging the premium-bond-checker package.

What it provides

  • Binary sensors for each holder number you configure including metadata around the result for:
    • This month
    • Last 6 months
    • Unclaimed
  • Sensor for the next draw date

Installation

It's available via HACS through the standard process for custom repositories. Follow their official guide for adding a custom repository.

Repo: https://github.com/inverse/home-assistant-premium-bond-checker-component

Example usage

Illustrative, when you really have won it will display the prize information.

Automation

alias: Premium Bond Win
triggers:
  - trigger: state
    entity_id:
      - sensor.premium_bond_checker_<your_holder_number>_this_month
    from: "off"
    to: "on"
actions:
  - action: notify.<your_notifier>
    data:
      title: "Premium Bond Win!"
      message: >
        {{ sensor.premium_bond_checker_<your_holder_number>_this_month', 'header') }}

        {{ sensor.premium_bond_checker_<your_holder_number>_this_month', 'tagline') }}

About

Home Assistant custom component for creating sensors for checking if your holder number(s) have won on the premium bonds.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •