It is very easy to use the URL calling feature to automatically trigger LIFX bulbs using event or data from any Wireless Sensor Tag.  LIFX is often linked using IFTTT but this method is simpler and works with less latency.   

First, go to to generate a token as below:

Then, from Web Interface ( open a tag, then click on ">" button and choose 'URL Calling..." to open "Custom URL Calling on Event" screen below:

Here, choose an event, such as "too hot", "too humid" or if you want the light to continuously change, "when tag sends .... update" as above, and enter the URL 

https://[the token you obtained in previous step]

You can also enter other triggering methods described in LIFX API doc, such as selector to specify which bulb if you have more than one. Click on the ">" button next to the URL box to enter HTTP content. 

In above example, we enclose math expression in <% and %> to have it evaluated before the URL is called. This expression divides temperature (in °C) by 40 and use it to set the brightness. The "min" function ensures the brightness does not go to negative. This will resulting in light being 100% bright at 40°C and completely off at 0°C and below. 

‹ Go back to the blog


  • Posted by ClarkSloky on February 09, 2021

    aralen mexico
    buy erectile dysfunction meds
    erectile dysfunction when trying to conceive
    hctz medication
    how erectile dysfunction drugs work
    plaquenil generic name
    tadalafil tablets
    generic tadalafil 40 mg
    azithromycin pfizer
    zithromax 250mg

  • Posted by Prem on May 04, 2017

    Did not work – I tried PUT-ing to a server and looks like the call goes through fine. However, LIFX server does not seem to be doing anything.

    I tried the using the url from my command line and I can see my light going on and off.

    Maybe LIFX blocking/ignoring calls made by your server?

Leave a comment