Custom component for Home Assistant that tracks the balance of a card.
The state of the sensor is the sum of all sub-balances, but each sub-balance is exposed as a property.
- Copy the folder
szep_kartya
tocustom_components
inside your Home Assistant config folder. - Restart Home Assistant (this installs the component's dependencies)
- Add your config to
configuration.yaml
(see options below) - Restart Home Assistant again
sensor:
- platform: szep_kartya
card_number: !secret card_number
card_code: !secret card_code
name: SZÉP Kártya
card_number
: The last 8 digits of the card (after the 61013242
prefix)
card_code
: "Telekód" (by default the last 3 digits of card number)
name
(optional): Friendly name of the sensor