Skip to main content

A small package to pull data from Ecowater water softeners

Project description

V2.0.0 BREAKING CHANGES

For version 2.0.0 the library has been rewritten and methods have changed.

Ecowater Softener

ecowater-softener is a Python library for collecting information from Ecowater water softeners.

Installation

Use the package manager pip to install ecowater.

pip install ecowater-softener

Usage

Liquids are measured in US Gallons, liquid speeds are measured in US Gallons per Minute (gpm), and weights are measured in Pounds (lbs)

Importing the library

import ecowater_softener

Account

Initialize Ecowater account using username and password credentials

ecowater_account = ecowater_softener.EcowaterAccount('username', 'password')

Devices

Retrieve a list of all devices associated with the Ecowater account

devices = ecowater_account.get_devices()

Access the first device from the list of devices

device = devices[0]

Get / Update the devices values (Needs to be ran before accessing data or the data will return None)

device.update()

Device Info

Get the device model (string)

model = device.model

Get the device serial number (string)

serial_number = device.serial_number

Get the device software version (string)

software_version = device.software_version

Get the signal strength (rssi) (integer)

rssi = device.rssi

Get the device ip address (string)

ip_address = device.ip_address

Water

Get the average daily water usage (integer)

water_use_avg_daily = device.water_use_avg_daily

Get the amount of water used today (integer)

water_use_today = device.water_use_today

Get the current amount of available water (integer)

water_available = device.water_available

Water Flow

Get the current water flow rate (integer)

current_water_flow = device.current_water_flow

Salt

Get the current salt level as a percentage (integer)

salt_level_percentage = device.salt_level_percentage

Get the number of days until the device runs out of salt (integer)

out_of_salt_days = device.out_of_salt_days

Get the estimated date when the device will run out of salt (datetime.date)

out_of_salt_date = device.out_of_salt_date

Get the salt type, either "NaCl" or "KCl" (string)

salt_type = device.salt_type

Rock

Get the average amount of rock removed daily (float)

rock_removed_avg_daily = device.rock_removed_avg_daily

Get the total amount of rock removed by the device over its lifetime (float)

rock_removed = device.rock_removed

Recharge

Get the recharge status, either "None", "Scheduled", or "Recharging" (string)

recharge_status = device.recharge_status

Check if recharge is enabled (boolean)

recharge_enabled = device.recharge_enabled

Check if a recharge is scheduled (boolean)

recharge_scheduled = device.recharge_scheduled

Check if recharging currently (boolean)

recharge_recharging = device.recharge_recharging

Get the number of days since the last recharge was performed (integer)

last_recharge_days = device.last_recharge_days

Get the date of the last recharge (datetime.date)

last_recharge_date = device.last_recharge_date

Credits

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecowater_softener-2.1.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

ecowater_softener-2.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file ecowater_softener-2.1.3.tar.gz.

File metadata

  • Download URL: ecowater_softener-2.1.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for ecowater_softener-2.1.3.tar.gz
Algorithm Hash digest
SHA256 e3370b72d80820d686cc583141ed888d3d50217078d4e74586fb95f4ad578309
MD5 6f61ef23d1982ba4357af50d1fd67c85
BLAKE2b-256 f95d5f03da0f7a51d092faeb544d79f0499e9c287ab184346d4dee0e44669e6a

See more details on using hashes here.

File details

Details for the file ecowater_softener-2.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ecowater_softener-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18327abe3bd3069d0fb9c2cfbe3f4f38a761f06489b102c81730c1d3d7cc7605
MD5 5887a39bf3aed2d6d31bbe29e68c7aa1
BLAKE2b-256 278e074ba2ab19941bd91728abc32182b8f7227fa52e35d358dabf7fe9c1e4a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page