marcolivierarsenault / moonraker-home-assistant

Home Assistant integration for Moonraker, Klipper and Mainsail
https://moonraker-home-assistant.readthedocs.io
MIT License
235 stars 26 forks source link

LED integration #230

Open wilhel1812 opened 10 months ago

wilhel1812 commented 10 months ago

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…

WayneManion commented 9 months ago

FWIW the Bambu plugin does this very well.

TheManoeuvre commented 8 months ago

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:

pinkfloydFR commented 6 months ago

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 commented 3 months ago

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 commented 2 months ago

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

xtraorange commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

pinkfloydFR commented 1 month ago

a simple esp32 + led strip and your are done

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

xtraorange commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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