Skip to content

Instantly share code, notes, and snippets.

View nampereira's full-sized avatar

Nuno Pereira nampereira

View GitHub Profile
@nampereira
nampereira / arenademo.py
Last active December 9, 2020 04:10
Create a demo wall in the ARENA
# demo wall placement
#
import argparse
import time
import arena
import random
import os
import json
def createDemoWall(dname, location, rotation):
@nampereira
nampereira / lutron.py
Last active December 10, 2020 16:20
Simple light app example
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import json
import arena # arena python library
from pylutron_wrapper.smartbridge import SmartBridgeWrapper # wrapper to https://github.com/gurumitts/pylutron-caseta
def light_toggle(light_sw_obj, light_sw_state, device_id):
"""toggles the lutron device"""