Skip to content

Latest commit

 

History

History
executable file
·
54 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

executable file
·
54 lines (37 loc) · 1.25 KB

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"
}