Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED integration #230

Open
wilhel1812 opened this issue Nov 25, 2023 · 4 comments
Open

LED integration #230

wilhel1812 opened this issue Nov 25, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@wilhel1812
Copy link

I would love for the LED lights in my printer to be accessible from Home Assistant.

For now, you can control the lights to an extent using macros, but Home Assistant is so good at controlling lights, so a native integration would be much better.

Any lights in the config should be exposed to HA as a typical Light bulb. That way, you can match the colors with the other lights in your room, control them with Siri through HomeKit etc. As with anything HA, your imagination is the limit…

@marcolivierarsenault marcolivierarsenault added the enhancement New feature or request label Nov 26, 2023
@WayneManion
Copy link

FWIW the Bambu plugin does this very well.

@TheManoeuvre
Copy link

For my Creality K1, the LED is exposed as a pin output and I can control it by adjusting the number similar how I do the fans.
I'm using the below template to translate this to a light.

`light:

  • platform: template
    lights:
    k1_led:
    friendly_name: "K1 LED Strip"
    value_template: >-
    {% if states('number.creality_k1_output_pin_led')|float > 0 %}
    on
    {% else %}
    off
    {% endif %}
    icon_template: >-
    {% if states('number.creality_k1_output_pin_led')|float > 0 %}
    mdi:led-strip-variant
    {% else %}
    mdi:led-strip-variant-off
    {% endif %}
    level_template: >-
    {% if states('number.creality_k1_output_pin_led')|float > 0 %}
    {{states('number.creality_k1_output_pin_led')|float/100*255|int}}
    {% else %}
    "0"
    {% endif %}
    turn_on:
    service: number.set_value
    target:
    entity_id: number.creality_k1_output_pin_led
    data:
    value: "100"
    turn_off:
    service: number.set_value
    target:
    entity_id: number.creality_k1_output_pin_led
    data:
    value: "0"
    set_level:
    service: number.set_value
    target:
    entity_id: number.creality_k1_output_pin_led
    data:
    value: "{{ (brightness / 255 * 100)|int }}"`

@pinkfloydFR
Copy link

pinkfloydFR commented Apr 7, 2024

Personnaly i just created a boolean entity, and under nodered, when this boolean change, i call the light macro...

image

image

So you can do whatever you want, but no change color since recognazed only as button

@xtraorange
Copy link

I also would like to vote for this one: it would be great if it could be treated as a light entity for the purposes of automation of the room and such!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants