soloam / ha-pid-controller

PID Controller to Home Assistant
MIT License
98 stars 12 forks source link

Example config: Values will reset on HA restart #3

Closed RubenKelevra closed 2 years ago

RubenKelevra commented 2 years ago

I set some values in Lovelace and restarted HA.

All values were reset to their initial/default values.

I don't think that's supposed to be this way?

soloam commented 2 years ago

I don't understand what you mean! The component will get the value's Home Assistant supplies, if they are reset on restart nothing can be supplied.

RubenKelevra commented 2 years ago

Well I've added the values via configuration.yaml and rebooted HA.

Then I configured your component by changing the values.

After a while I rebooted HA again, and all values changed back to their default value - as if HA won't store them permanently.

soloam commented 2 years ago

To edit the value's and keep them between restarts you need to work with input_numbers and you have to configure the Home Assistant recorder. . This is not related with this component.

RubenKelevra commented 2 years ago

Not sure how the default config is not related to the component 🤔

I wasn't expecting that the default config requires me to reenter the settings on each HA restart.

That might be okay for testing or something like that, but shouldn't be the recommended installation.

soloam commented 2 years ago

I guess I can't understand what you mean by default config! It would be better to Post your config to see what's the problem

soloam commented 2 years ago

I think I've seen your problem, did you set the initial in the input_number like I had in my example?

input_number:
  sample_time:
    name: Sample Time
    initial: 0 # <---- Remove
    min: 0
    max: 30
    step: 1

You should remove the initial:

input_number:
  sample_time:
    name: Sample Time
    min: 0
    max: 30
    step: 1