I received the energy meter yesterday. I understand that the meter works with a pulse rate of 1000. Printed on my Wall meter is 5000 Imp/kWh
So i used this code to correct for that.
But the fixed one still shows 720W as the fixed value. But if i look on the actual digital meter it shows P as 330W
template:
- sensor:
- name: "Instantaneous demand fixed"
unique_id: "ydwRwMattmg"
state_class: "measurement"
device_class: "power"
unit_of_measurement: "W"
state: "{{ states('sensor.frient_a_s_emizb_141_instantaneous_demand')|float / 5 }}"
availability: "{{ is_number(states('sensor.frient_a_s_emizb_141_instantaneous_demand')) }}"
- sensor:
- name: "Summation fixed"
unique_id: "aByI8S9eMlU"
device_class: "energy"
state_class: "total_increasing"
unit_of_measurement: "kWh"
state: "{{ states('sensor.frient_a_s_emizb_141_summation_delivered')|float / 5 }}"
availability: "{{ is_number(states('sensor.frient_a_s_emizb_141_summation_delivered')) }}"