def main():
    hc2 = Client(
        'v3',
        'http://192.168.1.230/api/',
        'admin',
        'admin'
    )

    info = hc2.info.get()
    print info

    weather = hc2.weather.get()
    print weather

    login = hc2.login.get()
    print login

    devices = hc2.devices.get(1)
    print devices

    devices = hc2.devices.list(name='Ceiling Lamp')
    print devices
    print type(devices)

    for device in devices:
        print device.name

    devices = hc2.devices.list(id=1)
    for device in devices:
        print device.name