Shelly TRV mqtt configuration and lovelace configuration

As this topic is still very frequently viewed: Best way to autodiscover Gen1 Shelly Devices is: