Skip to content

dorokhin/lightware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightWare DIY

API and SPA for controlling LED lamps and dimmable LED lamps (simple home automation)

[x] manage GPIO on Banana Pro board (over sysfs)
[x] send data over i2c (remote control Krida Electronics dimmer)
[x] service-worker support
[x] use semantic UI framework

Screenshot

LightWare Screenshot

Device photo

LightWare Banana Pro + solid state relay + Krida Electronics i2c dimmer

Krida dimmer Krida Electronics i2c dimmer

Links

Samsung smart things hubaction

def json = new JsonBuilder()
json.call("command":"${command}","password":"${settings.hostpassword}")

def headers = [:] 
headers.put("HOST", "$host:$port")
headers.put("Content-Type", "application/json")

log.debug "The Header is $headers"

def method = "POST"

try {
    def hubAction = new physicalgraph.device.HubAction(
        method: method,
        path: path,
        body: json,
        headers: headers,
    )
   
    log.debug hubAction
    hubAction
}
catch (Exception e) {
    log.debug "Hit Exception $e on $hubAction"
}