Skip to content

Custom Home Assistant sensor for the Marta/Breeze Card.

License

Notifications You must be signed in to change notification settings

ryanmac8/Home-Assistant-Marta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marta Card (Breeze Card) Sensor

This custom components provides a sensor for each Marta/Breeze card you configure. It tracks the stored valued and number of trips remaining as well as any other items you purchased.

GitHub Release License hacs_badge

Installation

Copy the marta folder to <config_dir>/custom_components/marta/.

Required fields: card_number friendly_name

Add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  platform: marta
  friendly_name: <Card Name>
  card_number: <Card Number>

or add the following to your sensor.yaml file

# Example sensor.yaml entry
- platform: marta
  friendly_name: <Card Name>
  card_number: <Card Number>

Optional Sensor Values

The default state of the sensor is set to the number of trips remaining in the stored value section of the card. You can change the default state to be the stored value of the card by setting the state attribute in the configuration to value.

# Example configuration.yaml entry
- platform: marta
  friendly_name: <Card Name>
  card_number: <Card Number>
  state: <trips or value>

Enjoy my card? Help me out for a couple of 🍻 or a ☕!

coffee