Repeat command when ERROR -100 --> No answer from device

From time to time setting a value for my MAX! or homematic components fails.

21927 2021-11-17 21:10:29.108 [ERROR] [ternal.handler.HomematicThingHandler]
--100 No answer from device. (sending setValue()
21928 NEQ0933794:1
21929 SET_TEMPERATURE 
21930 10.0 
21931 )
21932 java.io.IOException: -100 No answer from device. (sending setValue() 
21933 NEQ0933794:1 
21934 SET_TEMPERATURE
21935 10.0 
21936 )

Is there any way to catch this kind of exceptions or errors and repeat the last set value command?

Regards
Christian

If the binding/protocol does not implement a retry strategy, you can construct your own. Some ideas here -