# Path: cozify/hub.py
# def devices(*, capabilities=None, and_filter=False, **kwargs):
# def device_reachable(device_id, **kwargs):
# def device_exists(device_id, devs=None, state=None, **kwargs):
# def device_eligible(device_id, capability_filter, devs=None, state=None, **kwargs):
# def device_toggle(device_id, **kwargs):
# def device_state_replace(device_id, state, **kwargs):
# def device_on(device_id, **kwargs):
# def device_off(device_id, **kwargs):
# def light_temperature(device_id, temperature=2700, transition=0, **kwargs):
# def light_color(device_id, hue, saturation=1.0, transition=0, **kwargs):
# def light_brightness(device_id, brightness, transition=0, **kwargs):
# def remote(hub_id, new_state=None):
# def autoremote(hub_id, new_state=None):
# def tz(**kwargs):
# def ping(autorefresh=True, **kwargs):
# def name(hub_id):
# def host(hub_id):
# def token(hub_id, new_token=None):
# def hub_id(hub_name):
# def exists(hub_id):
# def default():
# def _getAttr(hub_id, attr, default=None, boolean=False):
# def _setAttr(hub_id, attr, value, commit=True):
# def _get_id(**kwargs):
# def _fill_kwargs(kwargs):
# def _clean_state(state):
# def _in_range(value, low, high, description='undefined'):
# def getDevices(**kwargs):  # pragma: no cover
# def getDefaultHub():  # pragma: no cover
# def getHubId(hub_name):  # pragma: no cover
# 
# Path: cozify/cloud.py
# def authenticate(trustCloud=True, trustHub=True, remote=False, autoremote=True):
# def resetState():
# def update_hubs():
# def ping(autorefresh=True, expiry=None):
# def refresh(force=False, expiry=datetime.timedelta(days=1)):
# def _need_refresh(force, expiry):
# def _need_cloud_token(trust=True):
# def _need_hub_token(trust=True):
# def _getotp():
# def _getEmail():  # pragma: no cover
# def _getAttr(attr):
# def _setAttr(attr, value, commit=True):
# def _isAttr(attr):
# def token(new_token=None):
# def email(new_email=None):  # pragma: no cover
# 
# Path: cozify/hub_api.py
# def _getBase(host, port=8893, **kwargs):
# def get(call, hub_token_header=True, base=apiPath, **kwargs):
# def put(call, data, hub_token_header=True, base=apiPath, **kwargs):
# def _call(*, call, method, hub_token_header, data=None, **kwargs):
# def hub(**kwargs):
# def tz(**kwargs):
# def devices(**kwargs):
# def devices_command(command, **kwargs):
# def devices_command_generic(*, device_id, command=None, request_type, **kwargs):
# def devices_command_state(*, device_id, state, **kwargs):
# def devices_command_on(device_id, **kwargs):
# def devices_command_off(device_id, **kwargs):
# 
# Path: cozify/test/debug.py



from cozify import hub, cloud, hub_api
from cozify.test import debug
#!/usr/bin/env python3



def main():
    hub_id = hub.default()

    print(
        hub_api.tz(
            host=hub.host(hub_id),

# Path: cozify/hub.py
# def devices(*, capabilities=None, and_filter=False, **kwargs):
# def device_reachable(device_id, **kwargs):
# def device_exists(device_id, devs=None, state=None, **kwargs):
# def device_eligible(device_id, capability_filter, devs=None, state=None, **kwargs):
# def device_toggle(device_id, **kwargs):
# def device_state_replace(device_id, state, **kwargs):
# def device_on(device_id, **kwargs):
# def device_off(device_id, **kwargs):
# def light_temperature(device_id, temperature=2700, transition=0, **kwargs):
# def light_color(device_id, hue, saturation=1.0, transition=0, **kwargs):
# def light_brightness(device_id, brightness, transition=0, **kwargs):
# def remote(hub_id, new_state=None):
# def autoremote(hub_id, new_state=None):
# def tz(**kwargs):
# def ping(autorefresh=True, **kwargs):
# def name(hub_id):
# def host(hub_id):
# def token(hub_id, new_token=None):
# def hub_id(hub_name):
# def exists(hub_id):
# def default():
# def _getAttr(hub_id, attr, default=None, boolean=False):
# def _setAttr(hub_id, attr, value, commit=True):
# def _get_id(**kwargs):
# def _fill_kwargs(kwargs):
# def _clean_state(state):
# def _in_range(value, low, high, description='undefined'):
# def getDevices(**kwargs):  # pragma: no cover
# def getDefaultHub():  # pragma: no cover
# def getHubId(hub_name):  # pragma: no cover
# 
# Path: cozify/cloud.py
# def authenticate(trustCloud=True, trustHub=True, remote=False, autoremote=True):
# def resetState():
# def update_hubs():
# def ping(autorefresh=True, expiry=None):
# def refresh(force=False, expiry=datetime.timedelta(days=1)):
# def _need_refresh(force, expiry):
# def _need_cloud_token(trust=True):
# def _need_hub_token(trust=True):
# def _getotp():
# def _getEmail():  # pragma: no cover
# def _getAttr(attr):
# def _setAttr(attr, value, commit=True):
# def _isAttr(attr):
# def token(new_token=None):
# def email(new_email=None):  # pragma: no cover
# 
# Path: cozify/hub_api.py
# def _getBase(host, port=8893, **kwargs):
# def get(call, hub_token_header=True, base=apiPath, **kwargs):
# def put(call, data, hub_token_header=True, base=apiPath, **kwargs):
# def _call(*, call, method, hub_token_header, data=None, **kwargs):
# def hub(**kwargs):
# def tz(**kwargs):
# def devices(**kwargs):
# def devices_command(command, **kwargs):
# def devices_command_generic(*, device_id, command=None, request_type, **kwargs):
# def devices_command_state(*, device_id, state, **kwargs):
# def devices_command_on(device_id, **kwargs):
# def devices_command_off(device_id, **kwargs):
# 
# Path: cozify/test/debug.py



# Path: util/remoter.py
from cozify import hub, cloud, hub_api
from cozify.test import debug

#!/usr/bin/env python3



def main():
    hub_id = hub.default()

    print(
        hub_api.tz(
            host=hub.host(hub_id),

            cloud_token=cloud.token(),