Exemple #1
0
def status(dev: mirobo.PhilipsEyecare):
    """Returns the state information."""
    res = dev.status()
    if not res:
        return  # bail out

    click.echo(click.style("Power: %s" % res.power, bold=True))
    click.echo("Brightness: %s" % res.bright)
    click.echo("Eye Fatigue Reminder: %s" % res.notifystatus)
    click.echo("Ambient Light: %s" % res.ambstatus)
    click.echo("Ambient Light Brightness: %s" % res.ambvalue)
    click.echo("Eyecare Mode: %s" % res.eyecare)
    click.echo("Eyecare Scene: %s" % res.scene_num)
    click.echo("Night Light: %s " % res.bls)
    click.echo("Delay Off: %s minutes" % res.dvalue)
Exemple #2
0
def status(dev: mirobo.PhilipsEyecare):
    """Returns the state information."""
    res = dev.status()
    if not res:
        return  # bail out

    click.echo(click.style("Power: %s" % res.power, bold=True))
    click.echo("Brightness: %s" % res.brightness)
    click.echo("Eye Fatigue Reminder: %s" % res.reminder)
    click.echo("Ambient Light: %s" % res.ambient)
    click.echo("Ambient Light Brightness: %s" % res.ambient_brightness)
    click.echo("Eyecare Mode: %s" % res.eyecare)
    click.echo("Eyecare Scene: %s" % res.scene)
    click.echo("Night Light: %s " % res.smart_night_light)
    click.echo("Countdown of the delayed turn off: %s minutes" %
               res.delay_off_countdown)
Exemple #3
0
def set_amb_bright(dev: mirobo.PhilipsEyecare, level):
    """Set Ambient Light brightness level."""
    click.echo("Ambient Light Brightness: %s" % dev.set_amb_bright(level))
Exemple #4
0
def ambient_off(dev: mirobo.PhilipsEyecare):
    """Ambient Light off."""
    click.echo("Ambient Light Off: %s" % dev.amb_off())
Exemple #5
0
def ambient_on(dev: mirobo.PhilipsEyecare):
    """Ambient Light on."""
    click.echo("Ambient Light On: %s" % dev.amb_on())
Exemple #6
0
def notify_off(dev: mirobo.PhilipsEyecare):
    """Eye Fatigue Reminder off."""
    click.echo("Eye Fatigue Reminder Off: %s" % dev.notify_user_off())
Exemple #7
0
def notify_on(dev: mirobo.PhilipsEyecare):
    """Eye Fatigue Reminder On."""
    click.echo("Eye Fatigue Reminder On: %s" % dev.notify_user_on())
Exemple #8
0
def bl_off(dev: mirobo.PhilipsEyecare):
    """Night Light off."""
    click.echo("Night Light off: %s" % dev.bl_off())
Exemple #9
0
def bl_on(dev: mirobo.PhilipsEyecare):
    """Night Light on."""
    click.echo("Night Light On: %s" % dev.bl_on())
Exemple #10
0
def delay_off(dev: mirobo.PhilipsEyecare, minutes):
    """Set delay off in minutes."""
    click.echo("Delay off: %s" % dev.delay_off(minutes))
Exemple #11
0
def set_scene(dev: mirobo.PhilipsEyecare, scene):
    """Set eyecare scene number."""
    click.echo("Eyecare Scene: %s" % dev.set_user_scene(scene))
Exemple #12
0
def set_bright(dev: mirobo.PhilipsEyecare, level):
    """Set brightness level."""
    click.echo("Brightness: %s" % dev.set_bright(level))
Exemple #13
0
def off(dev: mirobo.PhilipsEyecare):
    """Power off."""
    click.echo("Power off: %s" % dev.off())
Exemple #14
0
def on(dev: mirobo.PhilipsEyecare):
    """Power on."""
    click.echo("Power on: %s" % dev.on())