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?
I read it again and found it is not very specified indeed.(the quickstart is write several years ago) .
I will let my colleague to prepare a step-by-step solution ,with regard to
1 use the Home assistant to get the data
2 use the influxDB to store the data that get from the home assistant
3 use the Grafana to display as the dashboard
In my opinion , we just make a simple port mapping in the router so that you can visit the grafana server by the port of 13000