Skip to main content

No project description provided

Project description

hubspace-py

https://pypi.org/project/hubspace/1.0.0/

tools for intergrading with hubspace though python

installing:

pip install hubspace

getting started:

from hubspace import Hubspace

hubspace = Hubspace(username, password)

examples:

# get json info for all devices
hubspace.getDeviceInfo()
# get array of all device objects
devices = hubspace.getDevices()
# get target device object
device = hubspace.getDevice(deviceID)

# get additional information about devices
states = hubspace.getDeviceStates()
tags = hubspace.getDeviceTags()
attributes = hubspace.getDeviceAttributes()

# get all data for all devices
self.getDevices(["state", "tags", "attributes"])

# get device metadata
hubspace.getMetadata()
# get conclave access information
hubspace.getConclaveAccess()

# get the id of this device
device.getID()
# get the hubspace that created this device
device.getHubspace()
# get the info for this device
device.getInfo()
# get additional information about this device
device.getState()
device.getTags()
device.getAttributes()
# get metadata for this device
device.getMetadata()
# get the name of this device
device.getName()
# set the name of this device
device.setName()
# get the default name for this device
device.getDefaultName()
# get the name of the manufacturer of this device
device.getManufacturerName()
# get the model number for this device
device.getModel()
# get the class of the device (ie. light, fan ...etc)
device.getDeviceClass()
# read an action type for this device (see getgetAttributes for action info)
device.readAction(actionID)
# write action data for this device
device.writeAction(actionID, actionData)

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-1.1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

hubspace-1.1.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file hubspace-1.1.2.tar.gz.

File metadata

  • Download URL: hubspace-1.1.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for hubspace-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f2af12c9719f0435c0e3851ca7a7c19e63800914bfa97f3f15cd381b23ddb7ae
MD5 eb641d0096e85e3abf4d3fd28696d991
BLAKE2b-256 4c38801f0447c2152db215fbbd56a32ecdd25c2a553169b7cbd4b7bbf34c0a97

See more details on using hashes here.

File details

Details for the file hubspace-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: hubspace-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for hubspace-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62b2654402d8efc7887f1f33ca3d43551553a63e4afde7b9de5675e461ce5e9f
MD5 4563d0e722a50f3ee5407b7abf1e1bef
BLAKE2b-256 6eb6eb1a21b973f768e6c19164ad816169ed23071c06f41920114dad929f619f

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page