Shelly → Ada P1 Meter Script Translator
What does this Shelly Plug Script generator do?
This little tool automatically generates the Shelly Plug Script code, which allows you to send the consumption meter data (power, voltage, current, total energy, and the switch state) to the ADA P1 Meter / hmke.app system. This way, your Shelly socket will appear on the HMKE.app interface and can be controlled from there directly.

You provide the Shelly device name, the index (01–50) and the IP address in the form, and the generator creates the complete script from these, which you only need to paste into the Shelly browser Script interface. You can copy the code to the clipboard with one click on the "Copy" button.
How to configure the Shelly Plug device?
- First, set up Wi-Fi on the Shelly device (SSID, password). Once it connects to the network, note or check its IP address in the router.
- Open its IP address in the browser (e.g. http://192.168.31.185), and update the Shelly firmware to the latest official version (in the web interface under settings / firmware update). The script function only works reliably with updated firmware.
-
Then open the Shelly Script interface in the browser:
http://<SHELLY IP ADDRESS>/#/script/1
Example: http://192.168.31.185/#/script/1 - Copy the full script generated by the generator below using the "Copy" button, then paste it into the Shelly script editor. Name it as you like, then enable it and save it.
- The script requests the measured data from the Shelly Plug every 10 seconds and sends it to the http://okosvillanyora.local:8989/write endpoint. If everything is fine, the Shelly plugin fields (power, voltage, current, total energy, status) will show up in the ADA P1 system and the HMKE.app interface.