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

Suport Fan Control #322

Closed gosoares closed 2 months ago

gosoares commented 5 months ago

Version of the moonraker integration

1.2.0

Describe your setup

Creality K1 Printer with Klipper, Moonraker, Fluidd, Mainsail

Describe the bug

I have 4 numbers in my integration, one for the light, and 3 for the fans (hotend, side and rear). The light works fine, but the fans don´t, when i set the fans to some value, they do nothing on the machine, and a few seconds later, they values are updated in home assistant to a really low value:

image

On the mainsail or fluidd interface, i can control them correctly, so it must be a problem in the integration.

Moonraker Logs

logs.log

thewolfman56 commented 4 months ago

From what I noticed on my K1Max, the printer recognizes the fan speed as a range 0-255. The integration appears to pull the data from the printer as a percentage of that range, but when you set the fan speed in Home Assistant using the integration, it sends the fan speed as a number instead of a percentage of the range. For example, if you set the fan speed at 70% in Home Assistant, it sets the fan speed in the printer as 0.70 (which is 0.70 in a range of 0-255).

The LED works correctly because the printer has a range of 0-1 for the LED, so the percentages work correctly.

marcolivierarsenault commented 4 months ago

Fan should not be controlable just yet. We thought they would be excluded. We don't have adjustable fans so we can't test it

marcolivierarsenault commented 2 months ago

suplicate of #229