Skip to content

Project API

Paul edited this page Sep 10, 2019 · 1 revision

While any available API calls can be automatically generated by the IFTTT Query Builder a list of the commands is provided below for your reference.

Device Commands (Physical and Virtual Lights)

Device ON

{host}/api.php?fx=toggle&type=device&uid={deviceID}&val=1

Device OFF

{host}/api.php?fx=toggle&type=device&uid={deviceID}&val=0

Set Device To % Brightness

{host}/api.php?fx=dim&type=device&uid={deviceID}&val={level}

Increase Device Brightness

{host}/api.php?fx=brightenby&type=device&uid={deviceID}&val={amount}

Decrease Device Brightness

{host}/api.php?fx=dimby&type=device&uid={deviceID}&val={amount}

Room Commands

Room OFF

{host}/api.php?fx=toggle&type=room&uid={roomID}&val=0

Room ON

{host}/api.php?fx=toggle&type=room&uid={roomID}&val=1

Room Dim To

{host}/api.php?fx=dim&type=room&uid={roomID}&val={level}

Increase Room Brightness

{host}/api.php?fx=brightenby&type=room&uid={roomID}&val={amount}

Decrease Room Brightness

{host}/api.php?fx=dimby&type=room&uid={roomID}&val={amount}

All Devices (Whole Home)

Home ON

{host}/api.php?fx=toggle&type=all&uid=ALL&val=1

Home OFF

{host}/api.php?fx=toggle&type=all&uid=ALL&val=0

Home Dim To

{host}/api.php?fx=dim&type=all&uid=all&val={level}

Home Increase Brightness

{host}/api.php?fx=brightenby&type=all&uid=all&val={amount}

Home Decrease Brightness

{host}/api.php?fx=dimby&type=all&uid=all&val={amount}

NOTE** If you want to force a password for the remote API Calls, at the end of each API Call. Enable the option in config.inc.php and append &password={yourPassword}