After IAMMETER supports modbus/tcp, you can use the Modbus/TCP sensor in Home Assistant to read the data from the Wi-Fi energy meter of IAMMETER.
It means the data can be requested more faster than the IAMMETER integration.
When you want to use the energy meter`s data as a feedback value in a control loop(Ex: control the battery charge or discharge), this fast response option will be a better choice.
The most advantage of Modbus/tcp sensor in Home Assistant is it supports requesting the data every 1 second, which can be used as a real-time sensor feedback value in a control loop. The 1-second sample interval makes it can be used in many interesting things.
A better solution is to use a meter that pushes an update to Home Assistant only when there is a significant change (local push). This way you are not flooding your network with unnecessary traffic.
No i am happy with modbus/TCP thanks - i just wanted to see what a query would look like to your unit i.e. could i make a single query to return all registers every second and then parse them on my end - or do i need to request each individual register ?
I like the unit - just gets a little expensive to replace my main IOTAWATT for my Solar monitoring as i will need two of the units - however i may look at a single unit to help me with my batteries Zero out the grid
Of course, you can query all registers (just need to change the register length in the polling command) every second, no need to query the registers one by one.
There is a total tutorial about how to use the modbus/tcp sensor in the home assistant to read the data of the Wi-Fi energy meter in the above post.
Hello,
I think I’ve done everything according to the guidelines but a strange behaviour was noticed, for house I usually only have no more that 10kWh but I export into the grid from my batteries, this energy is being added into house consumption corrupting the house consumption data,
Am I doing something wrong?
How could this be rectified?
Thanks in advance
So, please check whether the energy meter had been installed in the correct position and whether the five key parameters are measured correctly.
If you still have questions, please give us more information about how you install your energy meter and how you confirm the five parameters are measured correctly.
Thanks for your voluntary help,
Interesting, I haven’t inputed anywhere the inverter output, in fact no power measurements at all in the dashboard, all I’ve added is the energy measurements.
The import/export meter I verified with the smart meter data from my supplier and its within 0.4% accuracy, its a modbus meter, same brand of meter I use for the PV meter, (I measure energy from inverters with a meter not directly from inverters, technically more accurate) I don’t have any sensors for house loads.
Battery energy sensor is also accurate and makes logical sense although I can’t really verify
Since you mentioned power sensors where would this sensors go? In the dashboard all I can input is energy sensors?
1 :I agree withTobiasGJ`s opinion, the data you used is the total value, not the daily value.
2 if you only use the kWh data of the inverter and grid export and import ,there will be no extra computation needed.
What you need to do is calculate the periodic data(daily, monthly) from the total value. like this
I have a 13.2kW inverter with about 45kWh battery storage and yes I do charge from the grid and discharge during peak time to balance the grid, I guess something’s not right but can’t figure out what exactly.
What I can confirm for sure is:
Energy to grid
energy from grid
energy to battery
energy from battery✅
Solar generation
Home consumption this reading is not calculated correctly…
Agreed yes it’s the total value but resets every day I’ve checked for multiple days already.
This is the sensors I’m using:
I’ve noticed everything works fine until I discharge the battery in the grid, this energy is being wrongly added in the home consumption, everything else works as intended no complaints.
I wonder if the formula for calculations is easily accessible?
Think your problem is that you import/export power between your battery and the grid which is not a typical usecase.
You only have a sensor for battery discharging.
HA doesn’t know which direction you discharge the energy.
You must define new template-sensors to provide the expected data to this integration.
i would define a template-sensor to calculate the value which will be exported to the house.
… or maybe your smart meter is delivering such values…don’t now
as i can see your sensor is only delivery the total discharge value.
means with your current sensor definition HA means, all power goes to the house.
you definitely have to calculate the difference by your own or maybe your smart meter has some sensor.
the logic from my pov is….
if the power from the panels is zero and you export energy to the grid. (if this is your logic)
In this case you must substract the grid_export_value from the battery_discharge value.
is this also possible with Shelly 3EM instead of WEM3080T?
I use one 3EM for our 3 phases for the flat and have a second on in a drawer, which I can use for this project…
Hi,
Of course ,it is OK.
In fact,the key to this solution is to get such parameters below
inverter output power(w)
inverter yield energy(kwh)
feed in power(w)
import energy from grid(kwh)
export energy to grid(kwh)
In other words, this solution does not bind any brand, all you need to do is to get such parameters above from your energy meters, then you will be able to use this solution.
The reasons I use IAMMETER`s energy meter in this solution are
1 it is bi-directional, if you install one energy meter on the grid side, you can measure both import/export kWh at the same time.
2 I run IAMMETER
@iammeter great work! Few works in fact (HA, NodeRed, Grafana).
Can I know how you make it possible to have access to Grafana remotely? I was looking for that possibility but Grafana on HA card/view was possible for me only if I previously log into Grafana on the device. And from outside the LAN it was never accessible.
Hi, very interesting project and nice looking graphs. I read Your materials from the link but, unfortunately, I did not find anything about setting up Grafana with HA to have access to graphs from devices not logged previously to Grafana on its servers.
Did I miss something?