Skip to main content

V2.0.0 BREAKING CHANGES

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

Ecowater Softener

ecowater-softener-test 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()

API Info

Get the date and time of the last successful API connection (datetime.datetime)

last_api_call_successful = device.last_api_call_successful

Get the status from the API

status = device.status

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 (float)

current_water_flow = device.current_water_flow

Salt

Get the current salt level as a percentage (float)

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

Metadata

Release files for ecowater-softener-test 2.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ecowater-softener-test 2.2.2
File Size Uploaded Provenance Actions
ecowater_softener_test-2.2.2.tar.gz 10.9 kB Without provenance Details for ecowater_softener_test-2.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ecowater-softener-test 2.2.2
File Interpreter ABI Platform Actions
ecowater_softener_test-2.2.2-py3-none-any.whl Python 3 none any Details for ecowater_softener_test-2.2.2-py3-none-any.whl

Total release size: 20.4 kB

Release files / ecowater_softener_test-2.2.2.tar.gz

Download URL ecowater_softener_test-2.2.2.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5587ab0e522bddcebde64c9d0d6248efc7ff3c5784427ca97768caf9ac1af96d
BLAKE2b-256 checksum
How to use checksums
3dcee5a5e1890cb2f52595703a2dc793c3f449d107dc27206241d7d2fee5b1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / ecowater_softener_test-2.2.2-py3-none-any.whl

Download URL ecowater_softener_test-2.2.2-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e91ae998e3a25353eb8a34143f051c262f4b7a2d4c610524ff47eff54f51292
BLAKE2b-256 checksum
How to use checksums
c97f737ad1d8a23270caa70a9c948800e587631395fa55a6d2f22e12ae94e195
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for ecowater-softener-test 2.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page