-
Notifications
You must be signed in to change notification settings - Fork 26
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
Disable Outputs for PID Climate Component #2491
Comments
Try https://esphome.io/components/output/template |
Here is a solution using @nagyrobi 's suggestion of using template output |
Thanks Patrick - good to know you're active on here - it was your blog that I originally used as inspiration for my bits and pieces. I'll take a look - been waylaid with real life (aren't we all), but good to know there is a solution to this. |
Describe the problem you have/What new integration you would like
I'm using the Climate PID component (https://esphome.io/components/climate/pid) to adjust the speed of a fan using the cool_output. I also have a speed fan (https://esphome.io/components/fan/speed) component. Both point to the same output (LEDC) which is wired to a PWM fan.
Both components work as expected independently, but when both components are enabled (i.e. present in the YAML), they conflict - as you might expect. The climate PID component eventually wins in all arguments (I assume because it is constantly sending signals to the output, whereas the fan component does not seem to be).
What I need to be able to do, is switch between which component controls the output. Turning the climate control OFF doesn't make any difference, I think because it continues to send on_state events, and (I expect) sends 0 signals to the output?
I thought I might be able to proxy the output to another component (like a templated number with an on_value event that sets the output level based on what it receives), and have both the fan and PID components optionally send to that (or have it control which signal it reacts to based on other settings), but it doesn't seem possible.
Please describe your use case for this integration and alternatives you've tried:
In this example, I am using two identical controllers to control two different banks of fans based on two different input temperatures. The fan banks are located at the top and bottom of a enclosed cabinet, which generates varying levels of heat depending what device inside the cabinet is on.
Additional context
Interestingly, I have observed the following behaviour (which I find odd, but I'm no expert):
I appreciate that HASS doesn't directly have any control over what the PID controller is doing, but I don't seem to be able to disable the PID Controller completely inside ESPHome, or at least stop it emitting a signal to the PWM output.
The text was updated successfully, but these errors were encountered: