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.