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.11

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.11
File Size Uploaded Provenance Actions
place_integration_api-0.2.11.tar.gz 21.4 kB With provenance Details for place_integration_api-0.2.11.tar.gz

Built distribution (wheel)

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

Total release size: 39.4 kB

Release files / place_integration_api-0.2.11.tar.gz

Download URL place_integration_api-0.2.11.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e78be6964cf052cb2f863f1cd165662cba89f9c3170fd8767ef911ac3edf96a3
BLAKE2b-256 checksum
How to use checksums
36cb042da355534c69d64b6beaf7e6397b529553b54ace1b859d99dce2f3c1f0
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 17, 2026.

Transparency log

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

Download URL place_integration_api-0.2.11-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b41ad020d55f79de269c5516c00ab3831884b69c2356fa1720259e9f11bc348d
BLAKE2b-256 checksum
How to use checksums
f33709e8f9c3d6ca082c3fa1d7e9d16aa127c2fea19e55b5daa2b273d01cec5e
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 17, 2026.

Transparency log

Security for place-integration-api 0.2.11

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.11.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 17, 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