Problem with modbus binding with dynamic on/off

See

which describes how to automatically disable TCP/Serial bridge Thing temporarily in a fault situation.
You should be able to extract just the sendHttpPutRequest() bit you need to do that under control of your timed rules instead.

You might prefer to disable poller Things only, since you’ll only have one/few, which should allow the serial Thing to keep hold of the serial port.