I have decided to replace the Shelly by a Legrand digital timer relay. It appears the Shelly is a toy and not suitable for critical applications such as heating (or hot water). If I can't trust it, it is of no use to me. Unfortunately I can't do Home Assistant integration, but such is life.
Thanks,
Peter