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)
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)
def set_amb_bright(dev: mirobo.PhilipsEyecare, level): """Set Ambient Light brightness level.""" click.echo("Ambient Light Brightness: %s" % dev.set_amb_bright(level))
def ambient_off(dev: mirobo.PhilipsEyecare): """Ambient Light off.""" click.echo("Ambient Light Off: %s" % dev.amb_off())
def ambient_on(dev: mirobo.PhilipsEyecare): """Ambient Light on.""" click.echo("Ambient Light On: %s" % dev.amb_on())
def notify_off(dev: mirobo.PhilipsEyecare): """Eye Fatigue Reminder off.""" click.echo("Eye Fatigue Reminder Off: %s" % dev.notify_user_off())
def notify_on(dev: mirobo.PhilipsEyecare): """Eye Fatigue Reminder On.""" click.echo("Eye Fatigue Reminder On: %s" % dev.notify_user_on())
def bl_off(dev: mirobo.PhilipsEyecare): """Night Light off.""" click.echo("Night Light off: %s" % dev.bl_off())
def bl_on(dev: mirobo.PhilipsEyecare): """Night Light on.""" click.echo("Night Light On: %s" % dev.bl_on())
def delay_off(dev: mirobo.PhilipsEyecare, minutes): """Set delay off in minutes.""" click.echo("Delay off: %s" % dev.delay_off(minutes))
def set_scene(dev: mirobo.PhilipsEyecare, scene): """Set eyecare scene number.""" click.echo("Eyecare Scene: %s" % dev.set_user_scene(scene))
def set_bright(dev: mirobo.PhilipsEyecare, level): """Set brightness level.""" click.echo("Brightness: %s" % dev.set_bright(level))
def off(dev: mirobo.PhilipsEyecare): """Power off.""" click.echo("Power off: %s" % dev.off())
def on(dev: mirobo.PhilipsEyecare): """Power on.""" click.echo("Power on: %s" % dev.on())