Skip to main content

A python package to interface with the Afero Hubspace service for smart home devices

Project description

hubspace-ng

A python package to interface with the Afero Hubspace service for smart home devices

HubSpace is a smart home platform by The Home Depot, powered by Afero.

Goals

  • Object oriented API to support Hubspace devices
  • Robust device identification
  • Straightforward calls to common functionality
  • Power a Home Assistant integration

TODOs:

  • Support more device types (I need example data)
  • Figure out how to handle multiple variant functions (color-temperature numeric vs color-temperature category)
  • Create an RGB function type
  • Create a debug script that returns full or sanitized data
  • Improve call timer safety

Supported Device Types

  • Lights
    • Basic dimmable lights: Yes
    • Tunable lights: Yes
    • RGB lights: Yes
  • Plugs: Yes
  • Fans: Yes
  • Locks: Yes (Limited functionality only - lock/unlock, get lock state, get battery level)
    • Currently not supporting the following functions for security purposes: toggling lock sound mode, configuring PIN numbers, managing admin pin, controlling keypad lockout.
  • Transformers: No

Troubleshooting

hubspace-ng includes a tools.py script to help debug common issues. This usess a creds.json file for your credentials.

$ python3 tools.py -h
usage: tools.py [-h] [-a] [-d DETAILED] {survey,connection_log,report} filename

Get debug data from your Hubspace account.

positional arguments:
  {survey,connection_log,report}
                        the type of debugging to do
  filename              file to output to

options:
  -h, --help            show this help message and exit
  -a, --anonymize       Anonymize survey results; does not apply to other actions
  -d DETAILED, --detailed DETAILED
                        When possible, create a more detailed product (state, etc.)

Connection Log

A detailed connection log is available via connection_log. This data is not anaonymized and should be inspected carefully before sharing!

$ python3 tools.py connection_log test.log

Report

Report provides a human readable list of devices. Adding -d will provided detailed state information.

$ python3 tools.py report report.txt

Survey

In certain circumstances, it may be necessary to get a debug view of the device data hubspace-ng is seeing from the HubSpace servers. To accomodate this, a survey tool is included. If you want to share this data in a ticket, etc., we recommend using the -a anonymize option, then examining the files manually for anything else you may want to remove. If you are looking over this data yourself, there's no need to anonymize it, but in some cases it's slightly easier to read anonymized (IDs with mostly zeroes tend to be easier to visually process).

$ python3 tools.py survey test.zip

Contributors

Special thanks to:

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

hubspace-ng-0.0.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hubspace_ng-0.0.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file hubspace-ng-0.0.1.tar.gz.

File metadata

  • Download URL: hubspace-ng-0.0.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for hubspace-ng-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d9c79ab49fd0e74ca45cade50b8d4db4fc207a51474bbe5235a2dbaf90149e9b
MD5 bc75c45cd27c4119ea65ac66b0a2c944
BLAKE2b-256 97927e9d16b858fb114707e8f9b1d0d8482871582653e292648eec92fb82967b

See more details on using hashes here.

File details

Details for the file hubspace_ng-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hubspace_ng-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for hubspace_ng-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c96c5172634868f71f2a350ecb7f60d626968d505110398280612d3866de4799
MD5 cbe146af1a4ab106f2162301a250f4a1
BLAKE2b-256 166fe7a19458373fecd455fb2e0ea700e0966eca0a3ce133256c35bb72371613

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page