Announcement

Collapse
No announcement yet.

LIFX - Free

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LIFX - Free

    In case anyone is running LIFX. This isnt a plugin but can simply be controlled by anything through a url, including Homeseer. The code is here.

    https://github.com/DavidFBakker/BIXPlugins

    It is "mostly" well documented. I will update that soon enough but it works great and is super fast.
    For instance if I want to turn all my kitchen lights on and set a color it is all done with one command (URL)
    http://<ip>:9105/&Light=Kitchen&Power=On&Color=Red&Dim=60

    Anyway, hope someone finds this useful. I will add more features/documentation as peeps ask for it.

    #2
    Oh yeah. I use this simple .cs script to send commands to it. I use a script event, LightCommand as the function and this as the Parameters:
    "Light=Kitchen Cook&Power=On&Color=3900&Dim=100"

    using System.Net;
    using HomeSeerAPI;
    using Scheduler;
    using Scheduler.Classes;

    private const string BaseUrl = @"http://192.168.1.19:9105/?";

    public object LightCommand(string command)
    {
    var page = BaseUrl + command;
    hs.WriteLog("Info", "Sending " + page);

    System.Net.WebClient webClient = new System.Net.WebClient();
    string response = webClient.DownloadString(page);
    webClient.Dispose();


    return 0;
    }

    Comment


      #3
      Updated to .net 462 and code improvements
      http://192.168.x.x:9105/?Light=Kitchen Color&Power=On&Dim=60&Color=Red

      this runs as a console app on the homeseer (anywhere really) server. It uses simple URL commands to do things. I use this with ha-bridge to control my lights as well. This isnt just tied to homeseer. If anyone wants to use this (and its free). I can always walk through the initial setup. Really just compile and run.

      EX:
      http://192.168.x.x:9105/?Light=Kitchen Color&Power=On&Dim=60&Color=Red

      Will turn on all my lights starting with the name "Kitchen Color", dim them to 60% and make them red all in a single command.

      Comment


        #4
        This is above my pay grade so I will ask a dumb question. Does this eliminate having to use the cloud? thanks

        Comment

        Working...
        X