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

min_power and max_power from input field #32

Open
nebula7219 opened this issue May 20, 2024 · 5 comments
Open

min_power and max_power from input field #32

nebula7219 opened this issue May 20, 2024 · 5 comments

Comments

@nebula7219
Copy link

Hi
How can I get min_power and max_power from an input_number helper ? I want to change the max and min power at night
Thx
Ralph

@patrickcollins12
Copy link
Owner

Unfortunately, those variables can't be set or get in real time only on setup.

Esp32 time can be synced to home assistant. Then you can use the time of day to cap the number in a template output.

@patrickcollins12
Copy link
Owner

@nebula7219
Copy link
Author

thanks for the info, that's a good solution. is it possible to use a button for restart and the new min/max_power from an input_number helper? if that's possible, can you help me with the code? sorry for my bad English, I speak German

@patrickcollins12
Copy link
Owner

Yes you could try that. Try writing some lambdas that stitch those three concepts together

@nebula7219
Copy link
Author

I tried it but it doesn't work, I don't think my skills are good enough.
I tried this:
esphome: name: fan_pid_controller on_boot: then: - output.set_level_min_power: id: console_fan_speed level: !lambda |- return id(abluft_min.state) / 100.0;

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

No branches or pull requests

2 participants