Exemplo n.º 1
0
def create_schedule():
    h = Hue()
    body = dict(on=False)
    command = dict(address='/api/<your user name here>/lights/3/state',
                   method='PUT',
                   body=body)
    h.create_schedule('Tests', 'this is test', command)
Exemplo n.º 2
0
def create_schedule():
    h = Hue()
    body = dict(on=False)
    command = dict(address='/api/<your user name here>/lights/3/state',
            method='PUT',
            body=body)
    h.create_schedule('Tests', 'this is test', command)