Skip to main content

No project description provided

Project description

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

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

tami4edgeapi-3.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

Tami4EdgeAPI-3.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file tami4edgeapi-3.0.tar.gz.

File metadata

  • Download URL: tami4edgeapi-3.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for tami4edgeapi-3.0.tar.gz
Algorithm Hash digest
SHA256 a8d0bc261c1d39e8a0f9675f9914a8dd9b7182f14266eddd5920f5a5e2f5540f
MD5 1747e6e52649bfd4e8ae2bd4d781607e
BLAKE2b-256 a3bca0f9323d4a102b8867ebc0e0cd27e191d63651c343f800e7c208465bad02

See more details on using hashes here.

File details

Details for the file Tami4EdgeAPI-3.0-py3-none-any.whl.

File metadata

  • Download URL: Tami4EdgeAPI-3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for Tami4EdgeAPI-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1422f5b68441a60173792de5c376671d28839f2b45e51ef971c12fd3f4eb56bd
MD5 78aa361175161b69aeeae536dffb4c22
BLAKE2b-256 0351d1673f7bf93e510ebadd9e4b5bd84c23fea8af9a04647852ca9893c4e53f

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