Add support for Shelly1/PM Addon

Hi, I’ve a Shelly 1 with addon in order to see door status using a magnetic contact.

Unfortunately using official Shelly HA integration allow to use only switch.
Attribute missed in HA: ext_switch

Unfortunately last version doesn’t include this feature.
I will back to mqtt :frowning:

+1. I also need this feature…