{"id":22687061,"url":"https://github.com/lp1dev/openihomma-client","last_synced_at":"2025-09-03T01:35:10.372Z","repository":{"id":69591574,"uuid":"163520023","full_name":"lp1dev/OpeniHomma-Client","owner":"lp1dev","description":"Unofficial iHomma smartlight client","archived":false,"fork":false,"pushed_at":"2019-09-12T17:59:39.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T10:55:27.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lp1dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-29T15:10:09.000Z","updated_at":"2024-03-24T18:44:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"083082c4-cffb-4a01-b09c-8e68b091510a","html_url":"https://github.com/lp1dev/OpeniHomma-Client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lp1dev/OpeniHomma-Client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lp1dev%2FOpeniHomma-Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lp1dev%2FOpeniHomma-Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lp1dev%2FOpeniHomma-Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lp1dev%2FOpeniHomma-Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lp1dev","download_url":"https://codeload.github.com/lp1dev/OpeniHomma-Client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lp1dev%2FOpeniHomma-Client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264113496,"owners_count":23559365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T23:16:49.281Z","updated_at":"2025-07-07T16:36:19.719Z","avatar_url":"https://github.com/lp1dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open iHomma Client\n\n\tFree (GPLv3) Python client for iHomma smart devices\n\tdeveloped and tested with the iHomma LED Smart Spot.\n\tThis client should work with other smart devices compatible\n\twith the iHomma HCS Application.\n\n# Installation\n\nThis client has been written for Python3.7,\nit shouldn't require any additional module installation\n\n# Usage\n\nThe client is more of a dev-oriented API at the moment.\n\nA set of functions are available and allow to send instructions to your smart light's TCP server and\ndiscover devices on your network.\n\n# Example\n\n```python\nfrom client import probeDevices, setCustomColor, sendTCPPacket\n\naddress = probeDevices() #Returns a tuple containing the found device's IP and port 8080\npacket = setCustomColor(255, 100, 100) #setCustomColor builds and returns a packet\nsendTCPPacket(address, packet)\n\n```\n\n# Documentation\n\n## probeDevices()\n\n   Probes the network for live smart lights and returns the first device's address\n\n## getLampJSONData()\n\n   Returns the smart light's configuration as a JSON-formatted string\n\n## setPredefinedLight(id)\n\n   Sets the light's predefined color referenced by id.\n   The ids from 0 to 9 are \"static\" colors.\n   The ids from 10 to 19 are \"animated\" colors.\n\n- 0: Strong white/yellow (strong, warm)                                                                                                \n- 1: Candlelight                                                                                                                       \n- 2: Morning Light (strong, warm)                                                                                                      \n- 3: Nature Light (strong, white)                                                                                                      \n- 4: Snow Light (strong, cold)                                                                                                         \n- 5: Squirrel Light (soft, red)                                                                                                        \n- 6: Coffee Light (soft, chill)                                                                                                        \n- 7: Desk Light (strong, good for working)                                                                                             \n- 8: Hipster food light. (strong, very white)                                                                                          \n- 9: Yellow light (soft, warm)\n\n- 10: 0xa  =\u003e Buggy? red (soft, pure red)                                                                                              \n- 11: 0xb  =\u003e Slow rotation of all white luminescent colors                                                                            \n- 12: 0xc  =\u003e Slow rotation from yellow (Morning)                                                                                      \n- 13: 0xd  =\u003e Circle (cycles on all colors smoothly)                                                                                   \n- 14: 0xe  =\u003e Party (cycles on all colors less smoothly)                                                                               \n- 15: 0xf  =\u003e Romantic colors (Smooth from purple to red)                                                                              \n- 16: 0x10 =\u003e Smooth yellow/red                                                                                                        \n- 17: 0x11 =\u003e Blue wave                                                                                                                \n- 18: 0x12 =\u003e Strong green gradient                                                                                                    \n- 19: 0x13 =\u003e Strong white/yellow alternate\n\n## setWarmth(value)\n\n   Sets the light's color \"warmth\" (value is between 0 and 200)\n\n## setLuminance(value)\n\n   Set the light's luminance (value is between 0 and 200)\n\n## setCustomColor(red, green, blue)\n\n   Assign a custom RGB color to the light (values are between 100 and 255)\n\n## setAbsoluteColor(color)\n\n   Set the lamp to an \"absolute\" color (255, 0, 0) or (0, 255, 0) or (0, 0, 255).\n   The color is referenced by the color parameter which can be \"red\", \"green\" or \"blue\"\n\n## turnOnOff(value)\n\n   Turns the lamp on and off, if value is True the lamp is turned on, and off if value is False.\n\n## Licence\n\nThis project is using a GPLv3 licence that you can read in the LICENCE file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flp1dev%2Fopenihomma-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flp1dev%2Fopenihomma-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flp1dev%2Fopenihomma-client/lists"}