Skip to content

Instantly share code, notes, and snippets.

@dpjanes
Created September 29, 2015 19:35
Show Gist options
  • Save dpjanes/ecb50bbdba273518dc39 to your computer and use it in GitHub Desktop.
Save dpjanes/ecb50bbdba273518dc39 to your computer and use it in GitHub Desktop.
Netflix & Chill - IoTQL Example (1)
-- 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