All Projects β†’ nathanielxd β†’ magic-home

nathanielxd / magic-home

Licence: GPL-3.0 license
A .NET library that imports functionality from the Magic Home app, allowing control of smart lights.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to magic-home

Node Lifx
Node.js implementation of the LIFX LAN protocol πŸ’‘
Stars: ✭ 137 (+495.65%)
Mutual labels:  light, lan
Lumos
😴 Smart Lighting for Better Sleep
Stars: ✭ 98 (+326.09%)
Mutual labels:  light, smart-lights
smart-lights
Cloud-Controlled house lights using home-grown electronics and 3D printed light switch covers
Stars: ✭ 18 (-21.74%)
Mutual labels:  smart-home, smart-lights
LIFX-Control-Panel
As LIFX no longer supports their Windows 10 app, I created an open-source alternative for controlling LIFX-brand smart lights.
Stars: ✭ 137 (+495.65%)
Mutual labels:  light, smart-bulb
smart speaker from scratch
Make an open source smart speaker from scratch
Stars: ✭ 28 (+21.74%)
Mutual labels:  smart-home
sensor
Sensor by Metriful | Indoor environment monitoring | Documentation and code samples
Stars: ✭ 93 (+304.35%)
Mutual labels:  smart-home
soft-era-vs-code
🌸 soft era for VS Code ~ Light pastel syntax theme for soft, warm, cozy, cute coding. 🌱
Stars: ✭ 91 (+295.65%)
Mutual labels:  light
casa
Home Assistant setup for our home
Stars: ✭ 132 (+473.91%)
Mutual labels:  smart-home
MatrixLib
Lightweight header-only matrix library (C++) for numerical optimization and machine learning. Contact me if there is an exciting opportunity.
Stars: ✭ 35 (+52.17%)
Mutual labels:  light
fluxee
πŸ’‘ Controlling Yeelight smart lights corresponding to f.lux display color temperature
Stars: ✭ 55 (+139.13%)
Mutual labels:  smart-home
mi-lamp-re
πŸ’‘ Reverse Engineering Notes for the Yeelight Bedside Lamp (BLE)
Stars: ✭ 35 (+52.17%)
Mutual labels:  light
graph-client
light zero dependency graphql-client, supporting cache and SSR
Stars: ✭ 27 (+17.39%)
Mutual labels:  light
home-assistant-config
🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
Stars: ✭ 34 (+47.83%)
Mutual labels:  smart-home
node-red-contrib-ewelink
NodeRED nodes for eWeLink smart devices
Stars: ✭ 40 (+73.91%)
Mutual labels:  smart-home
cbj smart-home
🏑 If you are searching for an easy way to connect all your smart home devices with one app CyBear Jinni πŸ¦ΎπŸΌπŸ§žβ€β™‚οΈ is here for you. Join the community and make your home smarter than yesterday.
Stars: ✭ 40 (+73.91%)
Mutual labels:  smart-home
SmartMirror
My MagicMirror running on a Raspberry Pi
Stars: ✭ 110 (+378.26%)
Mutual labels:  smart-home
SmartAssistant
A smart personal assistant to make your life easier.
Stars: ✭ 1 (-95.65%)
Mutual labels:  smart-home
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+573.91%)
Mutual labels:  smart-home
tplink-smartplug-api
TP-Link HS1xx smart plug API wrapper.
Stars: ✭ 48 (+108.7%)
Mutual labels:  smart-home
node-eufy-api
A simple JavaScript API to control EufyHome (Anker) smart light bulbs, switches and plugs.
Stars: ✭ 22 (-4.35%)
Mutual labels:  smart-home

Magic Home NuGet

.NET Library that allows you to control Magic Home enabled lights connected to the same LAN. With this, you can control your bulbs and led strips that work with the Magic Home App.

This library is also available in Dart.

Requirements

  • A bulb or led strip that works with the Magic Home app;
  • Your device connected to the same network as the light.

Quick Example

var discoveredLights = await Light.DiscoverAsync();

if (discoveredLights?.Count > 0)
{
  var light = discoveredLights[0];

  // Connect.
  await light.ConnectAsync();

  // Check if it is ON.
  if (light.Power == false)
      await light.TurnOnAsync();

  // Change color to green.
  await light.SetColorAsync(0, 255, 0);

  // Print to console light's status.
  Console.WriteLine(light.ToString());
}

Documentation

Available in the DOCS.md file.

Installation

NuGet

.NET CLI dotnet add package MagicHomeAPI --version 1.4.0

Features

  • Discover lights on LAN;
  • Turn on/off;
  • Use color and warm white;
  • Turn preset and custom patterns;
  • Use time.

Missing features:

  • Music and microphone;
  • Use built-timers;
  • Other fancy stuff;
  • Administration to set WiFi SSiD key.

Contribute and support

If 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.

I'm also open to collaboration.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].