{ "info": { "author": "KurisuD", "author_email": "KurisuD@pypi.darnand.net", "bugtrack_url": null, "classifiers": [ "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3 :: Only", "Topic :: Home Automation" ], "description": "# huunifie\nA Hue bridge and Unifi controller client. Enables/disables specified Hue schedules in the presence/absence of specified wifi devices on the Unifi controller.\n\n## Installation\n\nhuunifie can be installed with the following command:\n\n`python3 -m pip install huunifie`\n\n## Compatibility information\n\nThis code was only tested with python 3.5 and above under GNU/Linux with a Unify controller 5.9.29 and a hue bridge API version 1.28.0.\n\n## Usage\n```\nyou@computer:~$ python3 -m huunifie --help\nusage: huunifie.py [-h] [-uh UNIFI_HOST] [-up UNIFI_PORT] [-uu UNIFI_USERNAME]\n [-uw UNIFI_PASSWORD] [-hh HUE_HOST] [-hp HUE_PORT]\n [-hk HUE_KEY] [-wc WIFI_CLIENTS [WIFI_CLIENTS ...]]\n [-sn SCHEDULES_NAMES [SCHEDULES_NAMES ...]] [-i INTERVAL]\n [-c CONFIG_FILE] [-s] [-v] [-d] [-l LOG_FILE]\n [-sh SYSLOG_HOST] [-sp SYSLOG_PORT]\n\nA Hue bridge and Unifi controller client. Enables/disables specified Hue\nschedules in the presence/absence of specified wifi devices on the Unifi\ncontroller.\n\noptional arguments:\n -h, --help show this help message and exit\n -uh UNIFI_HOST, --unifi_host UNIFI_HOST\n Unifi controller hostname (default: None)\n -up UNIFI_PORT, --unifi_port UNIFI_PORT\n Unifi controller port (default: None)\n -uu UNIFI_USERNAME, --unifi_username UNIFI_USERNAME\n Unifi controller username (default: None)\n -uw UNIFI_PASSWORD, --unifi_password UNIFI_PASSWORD\n Unifi controller password (default: None)\n -hh HUE_HOST, --hue_host HUE_HOST\n Hue hub hostname (default: None)\n -hp HUE_PORT, --hue_port HUE_PORT\n Hue hub port (default: None)\n -hk HUE_KEY, --hue_key HUE_KEY\n Hue hub API key (default: None)\n --no_pub Disables zmq publication\n --pub Enables zmq publication\n --pub_host PUB_HOST Host for zmq publication (default: *)\n --pub_port PUB_PORT Port for zmq publication (default: 12168)\n -wc WIFI_CLIENTS [WIFI_CLIENTS ...], --wifi_clients WIFI_CLIENTS [WIFI_CLIENTS ...]\n Wifi clients (hostname or mac) to monitor. Clients\n names are separated by spaces. (default: None)\n -sn SCHEDULES_NAMES [SCHEDULES_NAMES ...], --schedules_names SCHEDULES_NAMES [SCHEDULES_NAMES ...]\n Schedules to respectively enable/disable based on the\n wifi clients presence/absence. Schedule names with\n space(s) to be double-quoted. Schedule names are\n separated by spaces. (default: None)\n -i INTERVAL, --interval INTERVAL\n Polling interval (default: None)\n -c CONFIG_FILE, --config_file CONFIG_FILE\n Path to configuration file. A template can be created\n by using the -s option below. (default:\n ~/.config/huunifie.conf)\n -s, --save_config Safe configuration given on the command line to the\n configuration file. (default: False)\n -v, --verbose Prints events information on the console. (default:\n False)\n -d, --debug Verbose mode. (default: False)\n -l LOG_FILE, --log_file LOG_FILE\n Path to log file. (default: None)\n -sh SYSLOG_HOST, --syslog_host SYSLOG_HOST\n Syslog hostname. If present, the logfile is not\n written locally (default: None)\n -sp SYSLOG_PORT, --syslog_port SYSLOG_PORT\n Syslog port. (default: 514)\n\nA Hue bridge and Unifi controller client. Enables/disables specified Hue\nschedules in the presence/absence of specified wifi devices on the Unifi\ncontroller.\n```\n\n## Configuration\nYou can create a template configuration file by running huunifie with only the -s flag.\n\nYou can also test values on one or more different arguments then, adding -s to update your configuration.\nOnly values specified on the command line will be update in the config file.\n\n### Examples:\n* Create a config file:\n\n```\nyou@computer:~$ python3 -m huunifie -s -v -c /tmp/test_huunifie.conf\n2018-12-10 21:55:38 [WARNING] : Configuration file /tmp/test_huunifie.conf not found.\n2018-12-10 21:55:38 [ INFO] : Configuration saved to /tmp/test_huunifie.conf\n2018-12-10 21:55:38 [ ERROR] : Unable to connect to the Unifi controller using https://localhost:8443\n^C\nyou@computer:~$ cat /tmp/test_huunifie.conf\n[general]\ninterval = 3\nwifi_clients = 01:23:45:67:89:ab,your_device_hostname\nschedules_name = A schedule name with spaces,another_without\n\n[unifi]\nhost = localhost\nport = 8443\nusername = hue\npassword = hue_password!!\n\n[hue]\nhost = hue\nport = 80\nkey = Your_40_alphanumeric_hue_api_key_please.\n```\n\n* Update an existing config file\n\n```\nyou@computer:~$ python3 -m huunifie -hh hue -uh unifi -v -s -c /tmp/test_huunifie.conf\n2018-12-10 21:59:06 [ INFO] : Configuration loaded from /tmp/test_huunifie.conf\n2018-12-10 21:59:06 [ INFO] : Configuration saved to /tmp/test_huunifie.conf\n2018-12-10 21:59:06 [ ERROR] : Unable to connect to the Unifi controller using https://unifi:8443\n^C\nyou@computer:~$ cat /tmp/test_huunifie.conf\n[general]\ninterval = 3\nwifi_clients = 01:23:45:67:89:ab,your_device_hostname\nschedules_name = A schedule name with spaces,another_without\n\n[unifi]\nhost = unifi\nport = 8443\nusername = hue\npassword = hue_password!!\n\n[hue]\nhost = hue\nport = 80\nkey = Your_40_alphanumeric_hue_api_key_please.\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/KurisuD/huunifie", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "huunifie", "package_url": "https://pypi.org/project/huunifie/", "platform": "", "project_url": "https://pypi.org/project/huunifie/", "project_urls": { "Homepage": "https://github.com/KurisuD/huunifie" }, "release_url": "https://pypi.org/project/huunifie/0.4.2/", "requires_dist": [ "pathlib", "requests", "pap-logger", "argparse" ], "requires_python": "", "summary": "A Hue bridge and Unifi controller client. Enables/disables specified Hue schedules in the presence/absence of specified wifi devices on the Unifi controller.", "version": "0.4.2" }, "last_serial": 4800961, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "fd3545bea6b3f3a258240d8c7c411fea", "sha256": "29a2d24ff19d3c33fc5b88d32ed1326b4245da163971c6718ec408756784ce35" }, "downloads": -1, "filename": "huunifie-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fd3545bea6b3f3a258240d8c7c411fea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7931, "upload_time": "2019-02-04T14:19:25", "url": "https://files.pythonhosted.org/packages/19/75/399cdee280d0d3b2bad244c2f04866c357da9b0f6bc4657acfc4af90b089/huunifie-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "401384906fa1b12d7e0aaabd5ba9ea4f", "sha256": "4003d5a4bf2e52d6dd71d80b4625b7669d2e8786fb2c2e5b4d51b0d6516f7e22" }, "downloads": -1, "filename": "huunifie-0.4.0.tar.gz", "has_sig": false, "md5_digest": "401384906fa1b12d7e0aaabd5ba9ea4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6940, "upload_time": "2019-02-04T14:19:27", "url": "https://files.pythonhosted.org/packages/dc/c7/ce90a0dce2bfa1c4285504ce139243ce31712f4c25f686dc990228c0d0cd/huunifie-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "3b6a3fecc61a3ac1e72910b6a998283b", "sha256": "801ed153f0a2cb402078f60d4df061d1dadba6d6c2b3fd06b210210a5ed46412" }, "downloads": -1, "filename": "huunifie-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3b6a3fecc61a3ac1e72910b6a998283b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7992, "upload_time": "2019-02-04T14:41:46", "url": "https://files.pythonhosted.org/packages/20/f1/349c170812e473f11feaa3f44c3374aa8df3520c6bcb22523f8bfaca5c4a/huunifie-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07791fa4b81a4ece5d1959c4d3ef6a91", "sha256": "1bec114222e520410a6734527b705a6a07f8d0deeeabefba87a7e59899405731" }, "downloads": -1, "filename": "huunifie-0.4.1.tar.gz", "has_sig": false, "md5_digest": "07791fa4b81a4ece5d1959c4d3ef6a91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7067, "upload_time": "2019-02-04T14:41:48", "url": "https://files.pythonhosted.org/packages/8f/ed/f364f49a41ab88647c72691c3d79e9043a72f29381776307b43924a19fb0/huunifie-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "415830dd871a829e349dc399fe2274b3", "sha256": "cf0de1ab003646d4940c9babe76e3a1fc5d5bce30b325e4903450e1cc09efb32" }, "downloads": -1, "filename": "huunifie-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "415830dd871a829e349dc399fe2274b3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8079, "upload_time": "2019-02-10T01:50:58", "url": "https://files.pythonhosted.org/packages/4b/af/bf79e1f62cb77d4f461e69c5df06ea872f511c1715631810980bbbaab8b3/huunifie-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4f7377c64858ed12559283e796def88", "sha256": "3545c43f5622ad77e90ca87b8704b6015cdeecdf39cece6e3866695dc0a99e37" }, "downloads": -1, "filename": "huunifie-0.4.2.tar.gz", "has_sig": false, "md5_digest": "e4f7377c64858ed12559283e796def88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7156, "upload_time": "2019-02-10T01:50:59", "url": "https://files.pythonhosted.org/packages/e1/93/5c9fb24d79a695c89d53c2b659fbaa343eb32c84d2d0dec42476f3c984a5/huunifie-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "415830dd871a829e349dc399fe2274b3", "sha256": "cf0de1ab003646d4940c9babe76e3a1fc5d5bce30b325e4903450e1cc09efb32" }, "downloads": -1, "filename": "huunifie-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "415830dd871a829e349dc399fe2274b3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8079, "upload_time": "2019-02-10T01:50:58", "url": "https://files.pythonhosted.org/packages/4b/af/bf79e1f62cb77d4f461e69c5df06ea872f511c1715631810980bbbaab8b3/huunifie-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4f7377c64858ed12559283e796def88", "sha256": "3545c43f5622ad77e90ca87b8704b6015cdeecdf39cece6e3866695dc0a99e37" }, "downloads": -1, "filename": "huunifie-0.4.2.tar.gz", "has_sig": false, "md5_digest": "e4f7377c64858ed12559283e796def88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7156, "upload_time": "2019-02-10T01:50:59", "url": "https://files.pythonhosted.org/packages/e1/93/5c9fb24d79a695c89d53c2b659fbaa343eb32c84d2d0dec42476f3c984a5/huunifie-0.4.2.tar.gz" } ] }