Skip to content

Instantly share code, notes, and snippets.

module.exports =
rules: [
{
function: (obj) ->
if obj.type == 'rf12button' && obj.mcu_id == 1 && obj.button_id == 2
console.info "YOOOOOOOOOOOOOOOOOOOOOOOOOOOO RIGHT BUTTON!!!!!!!!!!!!!!1111"
->
console.info "OIOIOIOIOIOI RETURN!"
@sendRF12 "5,1,2,0,8s"
condition: "foo"