Works for me. Just tested it
Please note that you have two conditions:
[idle_timeout]
timeout: 1
and
[controller_fan my_controller_fan]
pin: P1.26
stepper: stepper_x,stepper_y,stepper_z
fan_speed: 0.6
idle_timeout: 30
idle_speed: 0.4
-
[idle_timeout]
→timeout: 1
here means that after 1 second of no activity the idle condition is reached. -
[controller_fan my_controller_fan]
→idle_speed: 0.4
means that when idle condition is reached, then set the fan speed to 40% -
[controller_fan my_controller_fan]
→idle_timeout: 30
means that 30 seconds after idle condition is reached the fan is turned off