{ "info": { "author": "Geoff Soord", "author_email": "geoff@soord.org.uk", "bugtrack_url": null, "classifiers": [], "description": "# lightwave\nPython library to provide a realiable communication link with LightWaveRF lights and switches.\n\n# Installation\nEither clone this resposition and run `python setup.py install`, or install from pip using `pip install lightwave`.\n\n# API\nThis library makes use of the public API provided by lightwave that can be found here: https://api.lightwaverf.com/lighting_power.html\n\nThe library supports the following functions:\n```\nturn_on_light(device_id, name)\nturn_on_switch(device_id, name)\nturn_on_with_brightness(device_id, name, brightness)\nturn_off(device_id, name)\n```\nWhere:\n* **device_id** takes the form **R#D#** where **R#** is the room number and **D#** is the device number.\n* **name** is the text that will be displayed on the hub.\n* **brightness** is a value from 0 (off) to 255 (full on).\n\n# Usage\nInitialise a link to the hub by passing in the IP address required. Then call a method on the object to modify the device.\nThe first time a switch is turned on or off the device will attempt to pair to the hub. This should then show a message on your WiFi Link asking you to pair the device. You have 12 seconds to push the button on the WiFi Link to accept this.\n\n\n```\nimport asyncio\nimport time\nfrom lightwave.lightwave import LWLink\n\nasync def main():\n lwLink = LWLink('192.168.15.226')\n\n print(\"Off\")\n ### R1D3 is room 1 device 3\n lwLink.turn_off('R1D3', \"Wall Lights\")\n lwLink.turn_off('R1D4', \"Ceiling Lights\")\n\n time.sleep(5)\n print(\"On\")\n lwLink.turn_on_light('R1D3', \"Wall Lights\")\n lwLink.turn_on_light('R1D4', \"Ceiling Lights\")\n\n time.sleep(5)\n print(\"Off\")\n lwLink.turn_off('R1D3', \"Wall Lights\")\n lwLink.turn_off('R1D4', \"Ceiling Lights\")\n\n\n time.sleep(5)\n print(\"On\")\n lwLink.turn_on_with_brightness('R1D3', \"Wall Lights\", 25)\n lwLink.turn_on_with_brightness('R1D4', \"Ceiling Lights\", 50)\n lwLink.turn_on_switch('R1D1', \"Sockets one\")\n lwLink.turn_on_switch('R1D2', \"Sockets two\")\n\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\nloop.close()\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GeoffAtHome/lightwave", "keywords": "Lightwave,LightwaveRF,Lightwave WiFiLink,Lightwave Link", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lightwave", "package_url": "https://pypi.org/project/lightwave/", "platform": "", "project_url": "https://pypi.org/project/lightwave/", "project_urls": { "Homepage": "https://github.com/GeoffAtHome/lightwave" }, "release_url": "https://pypi.org/project/lightwave/0.17/", "requires_dist": null, "requires_python": "", "summary": "Python library to provide a realiable communication link with LightWaveRF lights and switches.", "version": "0.17" }, "last_serial": 4756111, "releases": { "0.14": [ { "comment_text": "", "digests": { "md5": "f6b8f15369b625e8b1586b02dc888bd9", "sha256": "79f32f92c7b60d3042810e331e1d9f170f475b3478d053aa544f0c8430e1fe37" }, "downloads": -1, "filename": "lightwave-0.14-py3-none-any.whl", "has_sig": false, "md5_digest": "f6b8f15369b625e8b1586b02dc888bd9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3540, "upload_time": "2018-11-24T18:55:56", "url": "https://files.pythonhosted.org/packages/11/b9/17788af76b32cfd57021780e93dd1b8ae8b9aa7dcfefaf76b2ec6e8ed9ba/lightwave-0.14-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6efbc1d9a7b634eabefda8d8477dd005", "sha256": "e8192a7328b7d45eeebd33d9f1cef7ab850e25e357a7f2c628c21d4b9b6a9369" }, "downloads": -1, "filename": "lightwave-0.14.tar.gz", "has_sig": false, "md5_digest": "6efbc1d9a7b634eabefda8d8477dd005", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2450, "upload_time": "2018-11-24T18:55:58", "url": "https://files.pythonhosted.org/packages/83/a4/5edd2e8f9fb147ceb3b5ced0e79bceb947ebca66e3a008eb5c90ca9e1119/lightwave-0.14.tar.gz" } ], "0.15": [ { "comment_text": "", "digests": { "md5": "db9629918f88a9fe52be6315305545cc", "sha256": "f97351dcc9a1ce4038189a3b3a79962faaa9ac9a88374fe0af64106a6fb0501f" }, "downloads": -1, "filename": "lightwave-0.15-py3-none-any.whl", "has_sig": false, "md5_digest": "db9629918f88a9fe52be6315305545cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4372, "upload_time": "2018-12-01T12:32:24", "url": "https://files.pythonhosted.org/packages/5a/0d/4da89c4314fa4f4f404ea512be5699dc17ae8e31a0f4015c7ec6cdbd2217/lightwave-0.15-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a8f71952930576a95dc8884b1d54f116", "sha256": "8302783162fd9094de29ed20373fe90360e5bfae950c4371fc24747dd6ac8559" }, "downloads": -1, "filename": "lightwave-0.15.tar.gz", "has_sig": false, "md5_digest": "a8f71952930576a95dc8884b1d54f116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3332, "upload_time": "2018-12-01T12:32:25", "url": "https://files.pythonhosted.org/packages/43/a5/e3f6927bb3fd0adb3779a9b8bd8f3e82e9408c9bbaca284cb7fcb93efac2/lightwave-0.15.tar.gz" } ], "0.16": [ { "comment_text": "", "digests": { "md5": "92dcbc297256f66c0305d4c317f7414d", "sha256": "15d16b235e0b718fc4a18ba7b6936fe78149719d1742be370483d54b904f2aa3" }, "downloads": -1, "filename": "lightwave-0.16-py3-none-any.whl", "has_sig": false, "md5_digest": "92dcbc297256f66c0305d4c317f7414d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4479, "upload_time": "2019-01-03T17:45:53", "url": "https://files.pythonhosted.org/packages/05/3d/ae2cbea47252f4b4172459ed5b8f905f19ba37dd54c9f54babf292a18c8f/lightwave-0.16-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "11b030baaf57f83c66a18b7e8f130a38", "sha256": "abf0891f22c7f014feeb933b73a5dadf244cfde9ecc9261cb462483c3eba0d7b" }, "downloads": -1, "filename": "lightwave-0.16.tar.gz", "has_sig": false, "md5_digest": "11b030baaf57f83c66a18b7e8f130a38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3380, "upload_time": "2019-01-03T17:45:55", "url": "https://files.pythonhosted.org/packages/bd/8d/6e04f9486ab984c67e22adb08907052ab40fcfc23bd55f38f634e73e954a/lightwave-0.16.tar.gz" } ], "0.17": [ { "comment_text": "", "digests": { "md5": "5e6e489101502cbc9023a5a921c09ddf", "sha256": "f791e00676b2052854033b98935ab4e13ed9a5f4c823c95c83e5e17ee183dc36" }, "downloads": -1, "filename": "lightwave-0.17-py3-none-any.whl", "has_sig": false, "md5_digest": "5e6e489101502cbc9023a5a921c09ddf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4486, "upload_time": "2019-01-29T18:27:53", "url": "https://files.pythonhosted.org/packages/12/82/83fb317e88e6799e97408051e825311571a4ed920faddd23e911fdc2dfc5/lightwave-0.17-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f4aed7af946d8572244c453e94ddedba", "sha256": "4736f4369bc9b2d3015645e1230025cdb2ecbe0102f86c627b1ff770728c1217" }, "downloads": -1, "filename": "lightwave-0.17.tar.gz", "has_sig": false, "md5_digest": "f4aed7af946d8572244c453e94ddedba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3401, "upload_time": "2019-01-29T18:27:54", "url": "https://files.pythonhosted.org/packages/97/67/f9d52f703f6b81de075545978c1e67ae66de9df31ddbf38143ae9f49795e/lightwave-0.17.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e6e489101502cbc9023a5a921c09ddf", "sha256": "f791e00676b2052854033b98935ab4e13ed9a5f4c823c95c83e5e17ee183dc36" }, "downloads": -1, "filename": "lightwave-0.17-py3-none-any.whl", "has_sig": false, "md5_digest": "5e6e489101502cbc9023a5a921c09ddf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4486, "upload_time": "2019-01-29T18:27:53", "url": "https://files.pythonhosted.org/packages/12/82/83fb317e88e6799e97408051e825311571a4ed920faddd23e911fdc2dfc5/lightwave-0.17-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f4aed7af946d8572244c453e94ddedba", "sha256": "4736f4369bc9b2d3015645e1230025cdb2ecbe0102f86c627b1ff770728c1217" }, "downloads": -1, "filename": "lightwave-0.17.tar.gz", "has_sig": false, "md5_digest": "f4aed7af946d8572244c453e94ddedba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3401, "upload_time": "2019-01-29T18:27:54", "url": "https://files.pythonhosted.org/packages/97/67/f9d52f703f6b81de075545978c1e67ae66de9df31ddbf38143ae9f49795e/lightwave-0.17.tar.gz" } ] }