Skip to main content

Tami 4 Edge / Edge+ API in Python

GitHub release workflow

Available as a native integration in Home Assistant!

tami4.png

Tami4EdgeAPI can be used to control Strauss'es Tami4 Edge / Edge+ devices.
You can boil the water, prepare drinks, get information about the filter or UV light and other information about the device.

Installing

pip install Tami4EdgeAPI

Authenticating

You first need to obtain a refresh_token by requesting an sms code to the phone you registered to the app with.

from Tami4EdgeAPI import Tami4EdgeAPI

# You must add the country code!
phone_number = "+972xxxxxxxxx"

Tami4EdgeAPI.request_otp(phone_number)
otp_code = input("Enter OTP: ")
refresh_token = Tami4EdgeAPI.submit_otp(phone_number, otp_code)

Store the refresh_token somewhere safe, you will use it to authenticate with the API.

Usage

edge = Tami4EdgeAPI(refresh_token)
print(f"Bar Name: {edge.device_metadata.name}, Firmware Version: {edge.device_metadata.device_firmware}")

Boil Water

edge.boil_water()

Get User Drinks

device = edge.get_device()
for drink in device.drinks:
  print(drink.name)

Prepare A Drink

edge.prepare_drink(drink)

Get Filter / UV Information

water_quality = device.water_quality
water_quality.uv.last_replacement
water_quality.uv.upcoming_replacement
water_quality.uv.installed
water_quality.filter.milli_litters_passed

Metadata

Release files for Tami4EdgeAPI 3.0

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

Source distribution (sdist)

Source distribution for Tami4EdgeAPI 3.0
File Size Uploaded
tami4edgeapi-3.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Tami4EdgeAPI 3.0
File Interpreter ABI Platform
Tami4EdgeAPI-3.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / tami4edgeapi-3.0.tar.gz

Download URL tami4edgeapi-3.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a8d0bc261c1d39e8a0f9675f9914a8dd9b7182f14266eddd5920f5a5e2f5540f
BLAKE2b-256 checksum
How to use checksums
a3bca0f9323d4a102b8867ebc0e0cd27e191d63651c343f800e7c208465bad02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / Tami4EdgeAPI-3.0-py3-none-any.whl

Download URL Tami4EdgeAPI-3.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1422f5b68441a60173792de5c376671d28839f2b45e51ef971c12fd3f4eb56bd
BLAKE2b-256 checksum
How to use checksums
0351d1673f7bf93e510ebadd9e4b5bd84c23fea8af9a04647852ca9893c4e53f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

3.0 This release

2 release files

2.1

2 release files

2.0

2 release files

1.1

2 release files

1.0

2 release files

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