[](https://badge.fury.io/py/jablotronpy)
# JablotronPy
Due to popular request, work has started on a Jablotron client for Python that will be used to
write a Jablotron plugin for Home Assistant. It will also be used in a simple gui that
will help people setup their Homebridge config.
## Installation
The package is published to [PyPi](https://pypi.org/project/JablotronPy/0.4.0/), to install it run the following
command:
```bash
pip install jablotronpy
```
## Usage
Below is an example of authenticating and getting all sections.
```python
import os
from jablotronpy.jablotronpy import Jablotron
j = Jablotron(username=os.environ["JABLOTRON_USER"],
password=os.environ["JABLOTRON_PASS"],
pin_code=os.environ["JABLOTRON_PIN"])
service_id = j.get_services()[0]["service-id"]
print(j.get_sections(service_id=service_id)["sections"])
```
## Methods
The following methods are available:
- control_component
- control_programmable_gate
- control_section
- get_keyboard_segments
- get_programmable_gates
- get_sections
- get_service_history
- get_services
- get_session_id
- get_thermo_devices
Raw data
{
"_id": null,
"home_page": "https://github.com/fdegier/JablotronPy",
"name": "JablotronPy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "F. de Gier",
"author_email": "freddegier@me.com",
"download_url": "https://files.pythonhosted.org/packages/27/3f/1a8f6e2e822d1459f86b5899f53588a514e27d543805805e9fe47c1acaac/jablotronpy-0.6.4.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/jablotronpy)\n# JablotronPy\n\nDue to popular request, work has started on a Jablotron client for Python that will be used to\nwrite a Jablotron plugin for Home Assistant. It will also be used in a simple gui that \nwill help people setup their Homebridge config. \n\n## Installation\n\nThe package is published to [PyPi](https://pypi.org/project/JablotronPy/0.4.0/), to install it run the following \ncommand:\n```bash\npip install jablotronpy\n```\n\n## Usage\n\nBelow is an example of authenticating and getting all sections.\n\n```python\nimport os\nfrom jablotronpy.jablotronpy import Jablotron\n\nj = Jablotron(username=os.environ[\"JABLOTRON_USER\"], \n password=os.environ[\"JABLOTRON_PASS\"], \n pin_code=os.environ[\"JABLOTRON_PIN\"])\n\nservice_id = j.get_services()[0][\"service-id\"]\nprint(j.get_sections(service_id=service_id)[\"sections\"])\n```\n\n## Methods\n\nThe following methods are available:\n- control_component\n- control_programmable_gate\n- control_section\n- get_keyboard_segments\n- get_programmable_gates\n- get_sections\n- get_service_history\n- get_services\n- get_session_id\n- get_thermo_devices\n",
"bugtrack_url": null,
"license": null,
"summary": "A client to interact with the Jablotron API to control Jablotron alarm systems",
"version": "0.6.4",
"project_urls": {
"Homepage": "https://github.com/fdegier/JablotronPy"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0da35b6ec2d06be0747313dbe536cdbe54f573efe0971975e88464182df41388",
"md5": "be3b36e87d14e75df1a563ef599877e3",
"sha256": "6b292a09e8b7aa556c9954ebcfbfa039bb58d17e4328684266b351b1b0a8e2ef"
},
"downloads": -1,
"filename": "JablotronPy-0.6.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be3b36e87d14e75df1a563ef599877e3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6236,
"upload_time": "2024-10-19T07:11:50",
"upload_time_iso_8601": "2024-10-19T07:11:50.783132Z",
"url": "https://files.pythonhosted.org/packages/0d/a3/5b6ec2d06be0747313dbe536cdbe54f573efe0971975e88464182df41388/JablotronPy-0.6.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "273f1a8f6e2e822d1459f86b5899f53588a514e27d543805805e9fe47c1acaac",
"md5": "94f719db3434f98e257f870fcc1b2c0c",
"sha256": "17b7e1291aa65d3a4f909733e3b3ac511514ee19030ffd5dabe5e404e6bd3cbf"
},
"downloads": -1,
"filename": "jablotronpy-0.6.4.tar.gz",
"has_sig": false,
"md5_digest": "94f719db3434f98e257f870fcc1b2c0c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6181,
"upload_time": "2024-10-19T07:11:52",
"upload_time_iso_8601": "2024-10-19T07:11:52.416036Z",
"url": "https://files.pythonhosted.org/packages/27/3f/1a8f6e2e822d1459f86b5899f53588a514e27d543805805e9fe47c1acaac/jablotronpy-0.6.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-19 07:11:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fdegier",
"github_project": "JablotronPy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "bleach",
"specs": [
[
"==",
"4.1.0"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2021.10.8"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"2.0.11"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.4"
]
]
},
{
"name": "docutils",
"specs": [
[
"==",
"0.18.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.3"
]
]
},
{
"name": "importlib-metadata",
"specs": [
[
"==",
"4.10.1"
]
]
},
{
"name": "keyring",
"specs": [
[
"==",
"23.5.0"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"21.3"
]
]
},
{
"name": "pkginfo",
"specs": [
[
"==",
"1.8.2"
]
]
},
{
"name": "Pygments",
"specs": [
[
"==",
"2.11.2"
]
]
},
{
"name": "pyparsing",
"specs": [
[
"==",
"3.0.7"
]
]
},
{
"name": "readme-renderer",
"specs": [
[
"==",
"32.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.27.1"
]
]
},
{
"name": "requests-toolbelt",
"specs": [
[
"==",
"0.9.1"
]
]
},
{
"name": "rfc3986",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.62.3"
]
]
},
{
"name": "twine",
"specs": [
[
"==",
"3.8.0"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"1.26.8"
]
]
},
{
"name": "webencodings",
"specs": [
[
"==",
"0.5.1"
]
]
},
{
"name": "zipp",
"specs": [
[
"==",
"3.7.0"
]
]
}
],
"lcname": "jablotronpy"
}