Skip to content

Instantly share code, notes, and snippets.

@spro
Created February 12, 2017 21:07
Show Gist options
  • Save spro/3be622a27047fbddbb73ed51e6cbd85e to your computer and use it in GitHub Desktop.
Save spro/3be622a27047fbddbb73ed51e6cbd85e to your computer and use it in GitHub Desktop.
> please if the temperature in minnesota is equal to 2 then turn the office light off thanks
( %if
( %condition
( %currentWeather
( $location minnesota ) )
( $operator equal to )
( $number 2 ) )
( %setDeviceState
( $device.name office light )
( $device.state off ) ) )
> tell me the state of the lamp switch and then what time is it in minnesota thank you
( %sequence
( %getDeviceState
( $device.name lamp switch ) )
( %getTime
( $location minnesota ) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment