Lights spec example Pub   Share

The specification for turning on the lights... the actual "implementation" or algorithm, to turn the lights on:

$when:: home.guest_arrived (name)
   lights.on

If we had a REST API to turn the lights on, we'd be doing just that, right about now!


Was this useful?  

By: Razie | 2018-03-11 | Tags: spec , dsl


Viewed 358 times ( | History | Print ) this page.

You need to log in to post a comment!