Skip to content

P/I/D contribution diagnostic sensors are Unknown #41

Description

@anssih

For some reason the P/I/D contribution diagnostics sensors show all Unknown for me, despite the PID controller seemingly working properly. The Error diagnostic is populated normally. The P/I/D contributions show up normally in the debug log.

Image

I'm currently running version v1.3.0-beta2.

Here is what the control loop debug output looks like:

2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(kp) → number.living_room_cooling_kp = 0.05
2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(ki) → number.living_room_cooling_ki = 0.1
2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(kd) → number.living_room_cooling_kd = 0.5
2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(setpoint) → number.living_room_cooling_setpoint = 23.5
2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(sample_time) → number.living_room_cooling_sample_time = 60.0
2025-06-17 09:51:05.272 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(output_min) → number.living_room_cooling_output_min = 18.0
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(output_max) → number.living_room_cooling_output_max = 26.0
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller] get_switch(auto_mode) → switch.living_room_cooling_auto_mode = on
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller] get_switch(proportional_on_measurement) → switch.living_room_cooling_proportional_on_measurement = off
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller] get_switch(windup_protection) → switch.living_room_cooling_windup_protection = on
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller.sensor] PID input=22.72 setpoint=23.50 kp=0.05 ki=0.10 kd=0.50 => output=26.00 [P=0.04, I=2.60, D=0.00]
2025-06-17 09:51:05.273 DEBUG (MainThread) [custom_components.simple_pid_controller.coordinator] Finished fetching simple_pid_controller_Living room cooling_coordinator data in 0.002 seconds (success: True)
2025-06-17 09:51:05.274 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(setpoint) → number.living_room_cooling_setpoint = 23.5
2025-06-17 09:51:05.274 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(setpoint) → number.living_room_cooling_setpoint = 23.5
2025-06-17 09:51:05.274 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(setpoint) → number.living_room_cooling_setpoint = 23.5
2025-06-17 09:51:05.274 DEBUG (MainThread) [custom_components.simple_pid_controller] get_number(setpoint) → number.living_room_cooling_setpoint = 23.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions