{ "info": { "author": "rp3tya", "author_email": "rpetya@hotmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# LonHand client library\n\nLonHand protocol implementation for USR-WP1 smart socket (one-channel relay) by USR IOT.\n\n[Product link](https://www.usriot.com/download/LonHand/USR-WP1%20EN%20V1.3.1.pdf)\n\n## Usage:\n```\nfrom lonhand import device\n\n# create switch\nswitch = WifiRelay('192.168.1.23')\n\n# turn on\nswitch.turn_on()\n\n# get state\nstate = switch.is_on()\n\n# turn off\nswitch.turn_off()\n```\n\n## Protocol\nCommand:\n```\n55 AA - distinguishes a command, unlike for example the password which\n should be sent as is (with suffix 0D 0A)\n00 03 - represents the length in bytes of the command (real) that follows,\n including the byte 00 (see below)\n00 - fixed, reserved and not usable. However, it contributes to forming \n the length in bytes of the command, for example in case of a device\n renaming command (which will contain the new name assigned): the\n length byte (and the checksum) will be recalculated also according\n to the length of the new name\n02 - the actual command (ON)\n01 - command parameter; in this case we are giving the ON command (02)\n and as a parameter the channel number to be switched on (01).\n06 - checksum, and represents the sum (in HEX) of the parts: \n (0x00 + 0x03 + 0x00 + 0x02 + 0x01) = 0x06\n```\n\nResponse:\n```\nAA 55 - marks the message as a response\n00 04 - response length\n00 - reserved\n82 01 - is the confirmation response to the ON command\n01 - channel/port that was affected\n88 - checksum: (0x00 + 0x04 + 0x00 + 0x82 + 0x01 + 0x01) = 0x88\n```\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/rp3tya/LonHand", "keywords": "lonhand relay", "license": "", "maintainer": "", "maintainer_email": "", "name": "lonhand", "package_url": "https://pypi.org/project/lonhand/", "platform": "", "project_url": "https://pypi.org/project/lonhand/", "project_urls": { "Homepage": "https://github.com/rp3tya/LonHand" }, "release_url": "https://pypi.org/project/lonhand/0.4/", "requires_dist": null, "requires_python": "", "summary": "LonHand client library", "version": "0.4" }, "last_serial": 5296474, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3676023b673b94b2df0b8ff3306bfeab", "sha256": "f2ba8cbaa42d5c97cbe3d12c34c4dad1d756c995b14dd57cbe76ad7120bee9b9" }, "downloads": -1, "filename": "lonhand-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3676023b673b94b2df0b8ff3306bfeab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4247, "upload_time": "2019-05-17T17:40:44", "url": "https://files.pythonhosted.org/packages/d6/fb/e90cfdc72d130d1bb44661b643c5628d9f1b0cdf04c786cf231c33da6b43/lonhand-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2578a50162d082893dfd8482c8981969", "sha256": "08d02b998e12f9335a980ba1dd594aff344c28c795b28b75c4cd784d5cd11c5a" }, "downloads": -1, "filename": "lonhand-0.1.tar.gz", "has_sig": false, "md5_digest": "2578a50162d082893dfd8482c8981969", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2655, "upload_time": "2019-05-17T17:40:46", "url": "https://files.pythonhosted.org/packages/a0/fc/cf7565952118004f2827bb4f6609989651ac50cfb14bb03981fa70c4ed51/lonhand-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7c0a9d3e7732a6c0ed9b8c5a5f23bf58", "sha256": "16db7685268ebdba4924d3e483c6546f5e91fca225c185c492f6399bbe2a591a" }, "downloads": -1, "filename": "lonhand-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7c0a9d3e7732a6c0ed9b8c5a5f23bf58", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4273, "upload_time": "2019-05-17T17:43:24", "url": "https://files.pythonhosted.org/packages/c3/9f/ab8e0b65d70e70cbbad71b8663606ef906942e71e904ef115e0f666cd4fd/lonhand-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7072ef7d1df85ced7385a3132aaa6b74", "sha256": "10eddc316ffcdfe0e88682afbe30d30b683e0d25248d8aa1d5e27f74362bc493" }, "downloads": -1, "filename": "lonhand-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7072ef7d1df85ced7385a3132aaa6b74", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4279, "upload_time": "2019-05-20T12:37:10", "url": "https://files.pythonhosted.org/packages/50/01/ba19b6fe80e298efbf92873baa2b557c48dc0aca6097b088db94c45079b4/lonhand-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "814ff729084d289be784b9b5a98f6b2f", "sha256": "1993938a70ba3b34f96c35e50f6fe1209c7226df9204d4a17da780c7a88e320a" }, "downloads": -1, "filename": "lonhand-0.1.2.tar.gz", "has_sig": false, "md5_digest": "814ff729084d289be784b9b5a98f6b2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2664, "upload_time": "2019-05-20T12:37:12", "url": "https://files.pythonhosted.org/packages/77/5e/e88e80107b13e4ec82da570fab5c6908451bc9eceda15d2134c6bcbc0efe/lonhand-0.1.2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "7a07f6d7b78d3141e60feedc09bc8677", "sha256": "60295475883f968dad4c89586bdd4e43c1432aa899f0f3dc61dc2558e1d1e910" }, "downloads": -1, "filename": "lonhand-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7a07f6d7b78d3141e60feedc09bc8677", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4278, "upload_time": "2019-05-20T13:04:03", "url": "https://files.pythonhosted.org/packages/85/f6/6c19771504a558e050176dcff2bf1412e41d2d08f05023996ce5cfcb85e7/lonhand-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "764356dc309dd97f2d7a71fa00dc33a0", "sha256": "2b2838d9399ef1b589df5ff343a8ecd52c35583db87a756dcad8646752236f86" }, "downloads": -1, "filename": "lonhand-0.2.tar.gz", "has_sig": false, "md5_digest": "764356dc309dd97f2d7a71fa00dc33a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2676, "upload_time": "2019-05-20T13:04:06", "url": "https://files.pythonhosted.org/packages/c7/d4/aab31bfa2b20a68f2fcc7dad196026788fd3b6b653149b5228464a9ae646/lonhand-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "eac328984897e6b0eb2389e87e13f29a", "sha256": "9cf0883503881c8b32cfbf04e40e3499fce518d6127250f6043ce5818c854774" }, "downloads": -1, "filename": "lonhand-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "eac328984897e6b0eb2389e87e13f29a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4280, "upload_time": "2019-05-20T13:21:43", "url": "https://files.pythonhosted.org/packages/89/4f/bae764d2be1c5d916941f1f3a79fb964dbc068e1972398c0b0ba5a83c66b/lonhand-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f96ca2cb5cd4598669911056ad8c0860", "sha256": "b319580071a6c5d04572ff2786df434b0818cbe966caf5462bd84761103ed205" }, "downloads": -1, "filename": "lonhand-0.3.tar.gz", "has_sig": false, "md5_digest": "f96ca2cb5cd4598669911056ad8c0860", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2677, "upload_time": "2019-05-20T13:21:46", "url": "https://files.pythonhosted.org/packages/f0/2a/6494b111f5b8ac9558225ccace696859a7e9f950d6de3250fafffc33e8a7/lonhand-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "29054440df18e34e8660e354c1b1c392", "sha256": "af9b19d506cc791e17bf59d979dafc66c9cec40f1fc8642da027a7e58c15239a" }, "downloads": -1, "filename": "lonhand-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "29054440df18e34e8660e354c1b1c392", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4311, "upload_time": "2019-05-21T08:31:52", "url": "https://files.pythonhosted.org/packages/61/cd/bf4248399d2a341fb211aff8f3c757d9fd04b977870757246d428abbd722/lonhand-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9ee9d70186d7d237e0dd4c7dd8deffc", "sha256": "e4768b79cb20e59f9dff1ac2600c3e629c764016e1e0fc66bfa0c3c51aa79366" }, "downloads": -1, "filename": "lonhand-0.4.tar.gz", "has_sig": false, "md5_digest": "b9ee9d70186d7d237e0dd4c7dd8deffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2710, "upload_time": "2019-05-21T08:31:56", "url": "https://files.pythonhosted.org/packages/65/b4/0a4d2e32de5e186f666c67e44fcd9f3790a0d0db2eccac102c20bb134226/lonhand-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29054440df18e34e8660e354c1b1c392", "sha256": "af9b19d506cc791e17bf59d979dafc66c9cec40f1fc8642da027a7e58c15239a" }, "downloads": -1, "filename": "lonhand-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "29054440df18e34e8660e354c1b1c392", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4311, "upload_time": "2019-05-21T08:31:52", "url": "https://files.pythonhosted.org/packages/61/cd/bf4248399d2a341fb211aff8f3c757d9fd04b977870757246d428abbd722/lonhand-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9ee9d70186d7d237e0dd4c7dd8deffc", "sha256": "e4768b79cb20e59f9dff1ac2600c3e629c764016e1e0fc66bfa0c3c51aa79366" }, "downloads": -1, "filename": "lonhand-0.4.tar.gz", "has_sig": false, "md5_digest": "b9ee9d70186d7d237e0dd4c7dd8deffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2710, "upload_time": "2019-05-21T08:31:56", "url": "https://files.pythonhosted.org/packages/65/b4/0a4d2e32de5e186f666c67e44fcd9f3790a0d0db2eccac102c20bb134226/lonhand-0.4.tar.gz" } ] }