Skip to content

[Bug] Lego Remote Light not working on latest Prime Hub update #2497

@johnscary-ev3

Description

@johnscary-ev3

Describe the bug
The lights on the Lego Remote do not work correctly after I updated the Prime Hub firmware.
Firmware Version: ('primehub', '4.0.0b3', 'ci-release-88-v4.0.0b3 on 2025-12-05')

The light.on(color) statement does not set the light on or change color now. Also does not blink white for start up.
I am using this test program below which is a combination of two examples from the documentation in latest Pybricks Beta environment.
While the program runs and senses the buttons fine, the remote light either is dark or sometimes turns orange,
In my main application I use the remote light color to inform the user about what "mode" I am using. The mode redefines the use of the buttons to get more functionality. So it is important to me
Thanks.

To reproduce
Steps to reproduce the behavior:

from pybricks.pupdevices import Remote
from pybricks.parameters import Button, Color

def button_to_color(buttons):
    # Return a color depending on the button.
    if Button.LEFT_PLUS in buttons:
        return Color.RED
    if Button.LEFT_MINUS in buttons:
        return Color.GREEN
    if Button.LEFT in buttons:
        return Color.ORANGE
    if Button.RIGHT_PLUS in buttons:
        return Color.BLUE
    if Button.RIGHT_MINUS in buttons:
        return Color.YELLOW
    if Button.RIGHT in buttons:
        return Color.CYAN
    if Button.CENTER in buttons:
        return Color.VIOLET
    # Return no color by default.
    return Color.NONE


try:
    # Connect to the remote.
    print('Try to Connect to Remote')
    # Search for a remote for 10 seconds.
    remote = Remote(timeout=10000)
    print("Connected!")

    while True:
        # Wait until a button is pressed.
        pressed = ()
        while not pressed:
            pressed = remote.buttons.pressed()

        print('button=', pressed)
        # Convert button code to color.
        color = button_to_color(pressed)
        print('color=', color)

        # Set the remote light color.
        remote.light.on(color)

        # Wait until all buttons are released.
        while pressed:
            pressed = remote.buttons.pressed()

except OSError:
    print("Could not find the remote.")

Expected behavior
Remote light should change color and also blink white during initial connection.

Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hub: handsetIssues related to the LEGO Powered Up Handset (remote control)software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)topic: bluetoothIssues involving bluetooth

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions