Shelly2.5 allows control and monitoring over MQTT for both relay and roller modes. Device mode, along with other parameters need to be configured using the mobile application or web interface. In either mode, Shelly2.5 reports:
shellies/shellyswitch25-<deviceid>/input/<i> for each SW input <i>; reports the current state as 0 or 1 shellies/shellyswitch25-<deviceid>/longpush/<i> for each SW input <i>; reports a value indicating longpush state as 0 or 1 shellies/shellyswitch25-<deviceid>/temperature reports internal device temperature in °C shellies/shellyswitch25-<deviceid>/overtemperature reports 1 when device has overheated, normally 0