Adding services.yaml to change config values without reboot

I am trying to implement something from a HACS integration that lets me change config values without restarting but I cant get it to work.

This is from their documentation:

Services

Services can be used in Home Assistant to configure the thermostat.
The following services are available:

Set PID gains: smart_thermostat.set_pid_gain
Use this service to adjust the PID gains without requiring a restart of Home Assistant. Values are saved to Home Assistant database and restored after a restart.
Please consider saving the final gain parameters in YAML configuration file when satisfied to keep it safe in case of database corruption.
Optional parameters : kp, ki and kd, as float.
Example:

service: smart_thermostat.set_pid_gain
data:
  kp: 11.8
  ki: 0.00878
target:
  entity_id: climate.smart_thermostat_example

I made a services.yaml and added services: !include services.yaml to my config (also tried “service:”)

In the services.yaml I added:


smart_thermostat.set_pid_gain_schlaf:
  data:
    kp: 20
    ki: 0.001
    kd: 1000
  target:
    entity_id: climate.thermostatschlafzimmer
  
 

smart_thermostat.set_pid_gain_wohn:
  data:
    kp: 20
    ki: 0.001
    kd: 1000
  target:
    entity_id: climate.thermostatwohnzimmer

and so on

but when I restart HA I get an error that the services integration is not available. I guess I am doing this totally wrong but google was no help.

OK freaked1234,

So HACS is an integration that makes it easy to load other Custom Integrations, Themes, custom_templates, etc from GitHub and keep them updated on your system. It doesn’t do anything else.

I’m assuming you are working with a custom Integration called ‘service’? I’ve never heard of that, but OK, it could be there. Or you might be mixing thing up with the service: key in Home Assistant, Don’t know for sure.

You may have installed this using HACS, but the custom integration comes from a GitHub repository created and maintained by someone else. If you have a problem with a specific custom integration, your first step should be to check the original GitHub post where you found it. The people there know the product and use the software, so they can give you better help with your issue. You might find someone here who can help, but it’s not guaranteed.

In the end, what you describe in your Original Post is something that generally doesn’t need a custom integration. Reloading internal integration without restarting is easy.