{"id":39437252,"url":"https://github.com/nathanielxd/magic-home","last_synced_at":"2026-01-18T04:14:56.345Z","repository":{"id":50281240,"uuid":"166843007","full_name":"nathanielxd/magic-home","owner":"nathanielxd","description":"A .NET library that imports functionality from the Magic Home app, allowing control of smart lights.","archived":false,"fork":false,"pushed_at":"2024-07-30T13:10:17.000Z","size":50,"stargazers_count":28,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-27T17:57:31.934Z","etag":null,"topics":["bulb","discover-bulbs","lan","light","light-controller","magic-home","smart-bulb","smart-home","smart-lights"],"latest_commit_sha":null,"homepage":"","language":"C#","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/nathanielxd.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}},"created_at":"2019-01-21T16:11:49.000Z","updated_at":"2024-12-23T04:22:32.000Z","dependencies_parsed_at":"2022-09-10T21:00:55.783Z","dependency_job_id":null,"html_url":"https://github.com/nathanielxd/magic-home","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathanielxd/magic-home","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielxd%2Fmagic-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielxd%2Fmagic-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielxd%2Fmagic-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielxd%2Fmagic-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanielxd","download_url":"https://codeload.github.com/nathanielxd/magic-home/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielxd%2Fmagic-home/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bulb","discover-bulbs","lan","light","light-controller","magic-home","smart-bulb","smart-home","smart-lights"],"created_at":"2026-01-18T04:14:56.292Z","updated_at":"2026-01-18T04:14:56.339Z","avatar_url":"https://github.com/nathanielxd.png","language":"C#","readme":"# Magic Home [![NuGet](https://img.shields.io/badge/NuGet-1.4.0-brightgreen.svg)](https://www.nuget.org/packages/MagicHomeAPI/1.4.0)\n.NET Library that allows you to control Magic Home enabled lights connected to the same LAN.\nWith this, you can control your bulbs and led strips that work with the [Magic Home App](https://play.google.com/store/apps/details?id=com.zengge.wifi).\n\nThis library is also available in [Dart.](https://github.com/nathanielxd/magic-home-dart)\n\n## Requirements\n- A bulb or led strip that works with the Magic Home app;\n- Your device connected to the same network as the light.\n\n## Quick Example\n```c#\nvar discoveredLights = await Light.DiscoverAsync();\n\nif (discoveredLights?.Count \u003e 0)\n{\n  var light = discoveredLights[0];\n\n  // Connect.\n  await light.ConnectAsync();\n\n  // Check if it is ON.\n  if (light.Power == false)\n      await light.TurnOnAsync();\n\n  // Change color to green.\n  await light.SetColorAsync(0, 255, 0);\n\n  // Print to console light's status.\n  Console.WriteLine(light.ToString());\n}\n```\n\n## [Documentation](https://github.com/nathanielxd/magic-home/blob/master/DOCS.md)\nAvailable in the DOCS.md file.\n\n## Installation\n[NuGet](https://www.nuget.org/packages/MagicHomeAPI/1.4.0)\n\n.NET CLI `dotnet add package MagicHomeAPI --version 1.4.0`\n\n### Features\n- Discover lights on LAN;\n- Turn on/off;\n- Use color and warm white;\n- Turn preset and custom patterns;\n- Use time.\n\n### Missing features:\n- Music and microphone;\n- Use built-timers;\n- Other fancy stuff;\n- Administration to set WiFi SSiD key.\n\n### Contribute and support\nIf you need any help or request, open an issue or leave an email. I will answer immediately. If you randomly get errors, it might be because of the light so I can't help it.\n\nI'm also open to collaboration.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielxd%2Fmagic-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanielxd%2Fmagic-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielxd%2Fmagic-home/lists"}