because I just received my Shelly1PM (Power Metering) shipment, I wanted to add them via MQTT to my openHAB. Unfortunately, the official API documentation is not up to date right now.
So I poked around and it took me some time but I managed to get the information through MQTTLens so that I can hopefully help someout out there who doesn’t want to dig for this information.
The Shelly1PM publishes the following information to the Broker:
Power-Reading as Number
Energy-Reading as Number
Internal Temperature as Number
Overtemperature-Warning as Number (0 and 1)
Switch-Status as String
As of now I could not properly figure out how to toggle the switch-status. The Shelly v1 requires lowercase “on” and “off” as strings published to it but this 1PM doesn’t seem to like that. Maybe someone has it working and can chime in on this one?
The overtemp-information can be redirected into a Switch-Command. You only need to add the custom_on and custom_off values in PaperUI when you set the Channel up.
Hope this helps someone out in order to get their setup working.
Edit: Corrected the temperature and overtemperature strings accordingly.