Question about TRV temporary offline

Options

I am in trouble, so I ask this question to be sure.

Randomly my TRVs notify battery problems or go offline, but after (max) a couple of hours are again OK.

Assume a TRV is offline at the moment something is happening such as a change in the scheduling, from ON to OFF or OFF to ON.

What is going to happen once the TRV goes online again? will the TRV get the correct status ON\OFF based on the scheduling? Or it will loose the switch since the switch was going to happen when was offline?