PID-Controller Enable/Disable

Hi,
actually I’m runnig the PIDController in one of my rooms.
In normal cases it runs perfect.

Actually if I’m leaving my home ( I have a presence detection), I switch of my heating setup.
For Heating Actors I sent them an off comand.
In my normal rules ( don’t use the pid) nothing happen any more, because they switched off.

In my room with the PID, I sent also an off to the actuator.
But the rule itself, with the pid inside runs continously, producing logs.
Is there a way do disable also the PID part until I’m back at home?

In general nothing happens, because the actuator is off.
But the PID permanetly produces log entries.

I think we need more details. Exactly what is generating the logs? A rule triggered by the PID, the PID add-on itself, or events.log?

If the former, add a condition to the rule (assuming UI rules, add an if if text file rules) to not do anything if presence is set to away. If it’s events.log, I don’t know. I’ve never used the PID add-on so I don’t know. Is there a Thing involved? If so you might be able to disable the Thing when you are away.

Without knowing more about how the PID addon works that’s about all I can offer.

Ok that’s clear.

Here you can see the logs from the pid controller.
It has a Loop time of 1 min, so every min the output is regenerated.
If if the HeatingActuator that is controlled by the PidController ist switched of.

2023-01-28 09:50:25.999 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'TR_HT_ActTemp' received command REFRESH

2023-01-28 09:50:26.012 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'TR_HT_PidOut' received command 109.03441369937961

2023-01-28 09:50:26.015 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_P' changed from -44.85000000000008 to 118.94999999999989

2023-01-28 09:50:26.020 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_I' changed from -9.961705733333352 to -9.96142513333335

2023-01-28 09:50:26.023 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_D' changed from -0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001082222547433798 to 0.04583883271307343

2023-01-28 09:50:26.026 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_E' changed from -0.6900000000000013 to 1.8299999999999983

2023-01-28 09:50:26.032 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_PidOut' changed from -54.81170573333343 to 109.03441369937961

2023-01-28 09:51:25.999 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'TR_HT_PidOut' received command 109.72061146666654

2023-01-28 09:51:26.005 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_I' changed from -9.96142513333335 to -9.229388533333351

2023-01-28 09:51:26.009 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_D' changed from 0.04583883271307343 to 0.00000000000000000000000000040018587174761913

2023-01-28 09:51:26.018 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_PidOut' changed from 109.03441369937961 to 109.72061146666654

2023-01-28 09:52:26.002 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'TR_HT_PidOut' received command 110.45263586666654

2023-01-28 09:52:26.007 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_I' changed from -9.229388533333351 to -8.497364133333352

2023-01-28 09:52:26.012 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_Pid_D' changed from 0.00000000000000000000000000040018587174761913 to 0.0000000000000000000000000000000000000000000000000000034972304330448455

2023-01-28 09:52:26.016 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TR_HT_PidOut' changed from 109.72061146666654 to 110.45263586666654

A mentioned before, nothing happens because the actuator is off.
The Pid is only generating logs. That’s what I may want to suppress.

From my side of view the PID controller only needs to run if i want to heat.

My hope was that one of the Maintainer
@fwolter or @Dominik_Jeziorski saw this post and can give me a hint

I answered your question here 6 days ago: New Automation: PID Controller - #154 by fwolter