Tasmota → Ada P1 Meter Script Translator


What does this Tasmota Rule generator do?

This small tool automatically generates the Tasmota Rule1 code, which allows you to send the meter data (power, voltage, current, total energy and the switch state) to the ADA P1 Meter. With this, your socket appears on the HMKE.app interface, and you can control it directly from there.

You provide the Tasmota device name, the serial number (01–50), and the IP address in the form, and the generator creates the complete rule from these, which you just need to paste into the Tasmota console. You can copy the code to the clipboard with a single click on the “Copy” button.

How do you set up the Tasmota device?

  1. First, configure the Wi-Fi on the Tasmota device (SSID, password). Once connected to the network, note or check its IP address in the router settings.
  2. Open in a browser:
    http://<YOUR TASMOTA DEVICE IP>/cs
    (example: http://192.168.31.170/cs) – this is the Tasmota web console.
  3. Copy the complete Rule1 code generated by the generator using the “Copy” button, then paste it into the Tasmota console window.
  4. Press Enter to execute the command. The Rule1 1 in the code enables the rule, and the TelePeriod 9 sets it to send data approximately every 9 seconds.

Once this is done, Tasmota will automatically start sending the measured data to the ADA P1 system. 

Tasmota Rule generator

Rule1
 ON Tele-ENERGY#Power DO Var1 %value% ENDON
 ON Tele-ENERGY#Voltage DO Var2 %value% ENDON
 ON Tele-ENERGY#Current DO Var3 %value% ENDON
 ON Tele-ENERGY#Total DO WebSend [okosvillanyora.local:8989]/write_tasmota?device=plugins&Tasmota_total_01=%value%&Tasmota_voltage_01=%var2%&Tasmota_current_01=%var3%&Tasmota_power_01=%var1%&Tasmota_ip_01=192.168.31.170&Tasmota_name_01=Tasmota ENDON
 ON Power1#State DO WebSend [okosvillanyora.local:8989]/write_tasmota?device=plugins&Tasmota_status_01=%value% ENDON
Rule1 1
TelePeriod 9

Comments

No comments yet. Be the first!