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 · 15 comments
Open

LED integration #230

wilhel1812 opened this issue Nov 25, 2023 · 15 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

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!

@bmorgan99
Copy link

I use wled and an esp32. Tons of colors, and effects that can follow printer states.

@xtraorange
Copy link

I use wled and an esp32. Tons of colors, and effects that can follow printer states.

We're talking about the LEDs built into the printers, not adding extra ones.

@bmorgan99
Copy link

I got that, but I've yet to see factory lighting that was bright enough or configurable. Well I can turn mine off via a moonraker button entity, but that's it.

@marcolivierarsenault
Copy link
Owner

I personally dont have these lights, so I would need someone with the hardware to develop it

@marcolivierarsenault marcolivierarsenault added the help wanted Extra attention is needed label Aug 11, 2024
@pinkfloydFR
Copy link

a simple esp32 + led strip and your are done

https://randomnerdtutorials.com/esp32-esp8266-rgb-led-strip-web-server/

@xtraorange
Copy link

a simple esp32 + led strip and your are done

https://randomnerdtutorials.com/esp32-esp8266-rgb-led-strip-web-server/

I'm not sure why people keep posting this - that's just not the request. The question isn't "how can I light up my 3d printer" it's "how do I control the built-in lights"

@pinkfloydFR
Copy link

pinkfloydFR commented Aug 12, 2024

a simple esp32 + led strip and your are done
https://randomnerdtutorials.com/esp32-esp8266-rgb-led-strip-web-server/

I'm not sure why people keep posting this - that's just not the request. The question isn't "how can I light up my 3d printer" it's "how do I control the built-in lights"

easy :

1/ read the tuto and note you can controle the led by a simple url call
2/ read the tuto and note that you can control the led by the integrated web server
or use a software like home assitant and use a url call request nod red button, or HA action

but this is offtopic ;)

@xtraorange
Copy link

a simple esp32 + led strip and your are done
https://randomnerdtutorials.com/esp32-esp8266-rgb-led-strip-web-server/

I'm not sure why people keep posting this - that's just not the request. The question isn't "how can I light up my 3d printer" it's "how do I control the built-in lights"

easy :

1/ read the tuto and note you can controle the led by a simple url call 2/ read the tuto and note that you can control the led by the integrated web server or use a software like home assitant and use a url call request nod red button, or HA action

but this is offtopic ;)

I doubt your reply was in good faith, but let's assume it was: I should have added "via this integration".

@pinkfloydFR
Copy link

this integration is for moonracker, not another device your add to your printer. If you use this integration, you use home assistant, so you can add all you want from it ! see my comment upper about boolean entity, you can add a button to control any other device.

or my personnal setup :

image
in green, this intégration, in red my esp32 fpr temp and humidity

image

@xtraorange
Copy link

this integration is for moonracker, not another device your add to your printer. If you use this integration, you use home assistant, so you can add all you want from it ! see my comment upper about boolean entity, you can add a button to control any other device.

or my personnal setup :

image in green, this intégration, in red my esp32 fpr temp and humidity

image

I'm not really sure what you're not understanding here. The request is to control the LEDs built into the printer from the moonraker integration. Moonraker has the ability to control these LEDs. The original requestor, and I, are asking that they be added to the integration. This has nothing to do with adding devices to the printer, it's part of the printer.

@marcolivierarsenault
Copy link
Owner

Hi all,

I will be locking this conversation as it is unnecessarily heated.

I understand the ask for supporting printer that have led built-in in the unit that are natively controlled by Moonraker.

I, personally, don't have this type of printer, so I can't develop this feature. But if someone has it and wants to develop it, please do so and open a pr.

You can also join us on our Slack channel

Repository owner locked as too heated and limited conversation to collaborators Aug 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants