Skip to main content

Place integration API

This project contains a python API to connect MQTT data from Place devices to Place's Home Assistant integration.

Setup

This repo utilizes VS Code Dev Containers so you don't need to alter your global python environment.

Installing dependencies

Use pip to install required dependencies by running pip install -r requirements.txt from the project root.

Updating dependencies

During the course of development, if new packages are added, it's recommended to update requirements.txt by running pip freeze > requirements.txt.

Refreshing MQTT credentials

For long-lived connections, provide a synchronous callback that returns fresh Credentials using a valid Cognito ID token:

client = MqttClient(
    endpoint=iot_endpoint,
    credentials=initial_credentials,
    credentials_provider=refresh_credentials,
)

The callback runs before each reconnect attempt, usually on the MQTT network thread. If it raises, Paho retries without using stale credentials. The caller must refresh the ID token as needed. Async applications should bridge safely to their event loop. Stopping the MQTT loop waits for an in-flight callback. Without a provider, the initial credentials are reused.

Requesting a device shadow

Call PlaceMessages.subscribe_shadow_and_get(thing_name) from the MQTT client's on_connect callback. It subscribes to the device's shadow topics and sends the shadow GET only after the broker acknowledges the subscription. The on_connect callback is also invoked on reconnect, so it should subscribe every device again. Rejected subscriptions are logged and do not send a GET.

Metadata

Release files for place-integration-api 0.2.9

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

Source distribution (sdist)

Source distribution for place-integration-api 0.2.9
File Size Uploaded Provenance Actions
place_integration_api-0.2.9.tar.gz 19.9 kB With provenance Details for place_integration_api-0.2.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for place-integration-api 0.2.9
File Interpreter ABI Platform Actions
place_integration_api-0.2.9-py3-none-any.whl Python 3 none any Details for place_integration_api-0.2.9-py3-none-any.whl

Total release size: 37.4 kB

Release files / place_integration_api-0.2.9.tar.gz

Download URL place_integration_api-0.2.9.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7142746276ad8caa78cc570597d24de416670cbfb6dd80841a178ee3bd2ecb94
BLAKE2b-256 checksum
How to use checksums
2cb0929832b7918a418d89b3960d4e077547b638bea8b845eed22479f5a13465
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / place_integration_api-0.2.9-py3-none-any.whl

Download URL place_integration_api-0.2.9-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e14e64aa5755e5fb468ae05a21b98b714f53ce7d9f1e6ed77c34a0cda02cbfb6
BLAKE2b-256 checksum
How to use checksums
0886fe7db4a75a5698ec91e6bc893c3349b6a9de00f9050cd28a234e3acb4bb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for place-integration-api 0.2.9

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for place_integration_api-0.2.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

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.

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