Skip to content

Python library for viewing laundry room and account status for facilities using ESD payment equipment.

License

Notifications You must be signed in to change notification settings

elahd/pylaundry

Repository files navigation

Python Interface for ESD / Hercules CyclePay Laundry Payment Systems

This is an unofficial project that is not affiliated with ESD or Hercules.


PyPI GitHub

Purpose

pylaundry allows developers to make the ESD CyclePay system interoperable with custom scripts and third party systems like Home Assistant. The library supports querying machine status, checking virtual card balances, and using your virtual card to add money to machines. If your building's laundry room supports one of the below apps, you should be able to use pylaundry:

Logo Name Links
esd cyclepay logo ESD CyclePay [iOS] [Android]
hercules cyclepay logo Hercules CyclePay [iOS] [Android]

Home Assistant

This library powers the CyclePay for Home Assistant custom integration.

Warnings

  1. Pylaundry can spend your money. Theoretically, a bug in this code could drain your entire laundry card or otherwise spend more than you intended.
  2. Pylaundry is not endorsed or supported by ESD, Hercules, or their business partners. Use of this library may have negative consequences, including but not limited to being banned from CyclePay.

Use pylaundry at your own risk.

Features

Currently Available

  1. Check card balance (CyclePay / virtual cards only).
  2. Add money to machine from virtual laundry card.
  3. Check whether washer/dryer is running and how much time is left in the current cycle, among other attributes.

Airing of Grievances

I wrote this library after moving into a building with ESD hardware. Doing laundry is my zen activity. Adding money to a dryer with ESD's hardware is not zen. Here's why:

Hardware

Well designed commercial dryers let users add time to their cycle by pressing the dryer's start button. One press adds 30 minutes to the timer and starts the cycle; every additional press adds 5 minutes. ESD revisited this solved problem and delievered a card reader that requires users to remove and redip their card once for each vend. One dip (and press) adds 30 minutes to the timer; every additional dip adds 5 minutes. This is what loading a 60 minute dryer cycle looks like:

  1. Insert card; wait for machine to read the card's balance.
  2. Press button for desired cycle. This adds 30 minutes to the timer and starts the machine.
  3. Remove and reinsert card; wait for machine to read the card's balance. +5 minutes; now 35 minutes on timer.
  4. Re-dip; wait for the machine to read the card's balance. Except it can't read the balance and displays a card read error instead. Timer is still at 35 minutes.
  5. Re-dip; wait; +5 min; now 40 min on timer.
  6. Re-dip; wait; +5 min; now 45 min on timer.
  7. Re-dip; wait; read error. Still at 45.
  8. Re-dip; wait; read error. Still at 45.
  9. Re-dip; wait; read error. Still at 45.
  10. Re-dip; wait; +5 min; now 50 min on timer.
  11. Re-dip; wait; +5 min; now 55 min on timer.
  12. Re-dip; wait; read error. Still at 55.
  13. Re-dip; wait; +5 min; now 60 min on timer.

Now you're done!

Just kidding. You have a family, so you get to repeat that process a few more times for your remaining loads.

Additionally, all other things being equal, these extra dips mean that ESD chip cards and chip card readers probably wear out six times earlier than competitor hardware as ESD cards need to be dipped 6 times more per cycle. This is anecdotal, but I've had to replace the laundry card in my current building 4 times in 3 years due to wear.

Software

About a year into living in my current apartment, ESD rolled out support for their CyclePay app. "Finally," I thought, "I can reclaim my zen activity." Nope. CyclePay is just as frustrating.

I expected CyclePay to just let me add, say, 60 minutes to a dryer with one or two taps. New medium, new medium-appropriate workflow.

In actuality, the app just mimics the workflow of the physical chip cards by forcing users to virtually swipe virtual cards. One swipe adds the first 30 minutes; each additional swipe adds another 5 minutes. Each swipe requires 4 taps and takes around 6 seconds — if you're fast — requires tapping through two separate confirmations, and requires that you re-select your machine after every swipe. So...


Loading 3 dryers with 60 minutes each takes 84 — EIGHTY FOUR !!!!! — taps.

That's insane.

In a perfect environment, those 84 taps take a brain melting 2 minutes and 6 seconds to complete.

...and that's if you're standing right in front of the machine (allowing CyclePay to vend via Bluetooth). If you want to finish loading your dryers while going back to your apartment, the app vends using the laundry machines' Wi-Fi connections. The app takes ~5 times as long to vend over Wi-Fi and relies on the machines being connected to WiFi in the first place, which they are often not. In my laundry room, around 10% of the machines seem to be disconnected at any time.


ezgif com-gif-maker (3)

About

Python library for viewing laundry room and account status for facilities using ESD payment equipment.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages