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.
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>
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 ☕!