Created
September 29, 2015 19:35
-
-
Save dpjanes/ecb50bbdba273518dc39 to your computer and use it in GitHub Desktop.
Netflix & Chill - IoTQL Example (1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this assumes that the TV supports Netflix (my LG does) | |
CREATE SCENE | |
NetflixChill | |
BEGIN | |
SET | |
state:on = true, | |
state:band = iot-attribute:band.service.netflix | |
WHERE | |
meta:facet & iot-facet:media.tv; | |
AND | |
meta:zone & "Living Room" | |
SET | |
state:on = false | |
WHERE | |
meta:facet & iot-facet:lighting; | |
AND | |
meta:zone & "Living Room" | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment