CJNE / ha-myenergi

Home Assistant integration for MyEnergi devices
MIT License
147 stars 33 forks source link

Change configuration of sensors for live import and export data to use in Energy dashboard #180

Open jacopobac opened 2 years ago

jacopobac commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I would like to see on the Energy dashboard the actual generation, import and export of my home and PV system using the CT clamps of MyEnergi devices

Describe the solution you'd like A clear and concise description of what you want to happen. I'd like to use the sensors "sensor.myenergi_my_home_power_generation" and "sensor.myenergi_my_home_power_grid" in the energy hub in Home Assistant, but I can only select for import and export the sensors regarding total amount of energy imported and exported, not live data.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. I am currently using the total amount, but the data is all messy.

Additional context Add any other context or screenshots about the feature request here. Here are the sensors I can choose from and the energy dashboard:

image

image

image

Thank you so much! I love this project!

G6EJD commented 2 years ago

I do this, no change needed, I kept the HA Energy dashboard, copied it to one called MyEnergi then changed the energy display entities to those from MyEnergy, it’s really simple to do.

G6EJD commented 2 years ago

3ECB17F2-9344-4CE6-B436-398F9E868B95

whistlebare commented 1 year ago

I too would like to be able to see an entity for my Solar live generation rather than just a total of today

LeiChat commented 1 year ago

I too would like to be able to see an entity for my Solar live generation rather than just a total of today

Unless I am mistaken, this is already included in the integration. sensor.myenergi_home_power_generation

image

Does your master myenergi device have a CT connected and configured to measure PV generation? Without that, myenergi won't be capturing the power to their cloud and the ha-myenergi integration would not be able to extract the data using the myenergi API.

whistlebare commented 1 year ago

I too would like to be able to see an entity for my Solar live generation rather than just a total of today

Unless I am mistaken, this is already included in the integration. sensor.myenergi_home_power_generation

image

Does your master myenergi device have a CT connected and configured to measure PV generation? Without that, myenergi won't be capturing the power to their cloud and the ha-myenergi integration would not be able to extract the data using the myenergi API.

My issue is that I can't choose that entity within the 'Energy' tab in HA. So when I go the the Add solar generation, I can't choose that entity

G6EJD commented 1 year ago

But that’s a HA issue not for this Integration.

whistlebare commented 1 year ago

But it says that if the entity is not there then contact the developer of the integration and ask them if they can implement it... I have two entities in the myenergy integration but can't choose either of them within the 'energy' solar generation section

On 19 Aug 2023 at 14:54, G6EJD @.***> wrote:

But that’s a HA issue not for this Integration.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

whistlebare commented 1 year ago

Screenshot_2023-08-19-15-22-11-38_c3a231c25ed346e59462e84656a70e50

whistlebare commented 1 year ago

Screenshot_2023-08-19-15-21-57-70_c3a231c25ed346e59462e84656a70e50

whistlebare commented 1 year ago

Screenshot_2023-08-19-15-30-00-49_e4424258c8b8649f6e67d283a50a2cbc

whistlebare commented 1 year ago

https://developers.home-assistant.io/docs/core/entity/sensor#long-term-statistics

G6EJD commented 1 year ago

I can choose my equivalent of myenergi harvi-10643677 power ct generation in HA.

Have you checked your HA versions and if the ME integration is the latest.

whistlebare commented 1 year ago

Yes I keep my Hacs integrations up to date constantly as well as the HA system...

G6EJD commented 1 year ago

You can’t add an entity twice, have you copied the energy flow diagram and then added in just the ME entity needed.

whistlebare commented 1 year ago

I'm not trying to add it twice as far as I know, I've just listed the two generation entities I have bit neither of these are available to choose from within the solar generation section of the energy tab....only the generated today appears. My harvi hold that info but it's not able to be chosen in the energy section

G6EJD commented 1 year ago

You can only add an entity with units of kWh (Energy) not power, so an instantaneous reading in power is of no use in that design of energy display.

whistlebare commented 1 year ago

Well I'm confused then as every other app I have reads live production from solar in kWh...I give up

LeiChat commented 1 year ago

Power is Watts and Kilowatts. (kW) Energy (stored/consumed) is Watt-hours and Kilowatt-hours. (kWh)

(Electric car motor power is kW. The EV battery capacity is kWh.)

There are a couple of power flow cards available via HACS. https://github.com/flixlix/power-flow-card-plus https://github.com/ulic75/power-flow-card

Screenshot of the "power flow card plus" on my dashboard. image

heikone commented 1 year ago

I was also confused, but this example from setup should help to get kW from Myenergi measured values: df_myenergi_kW['Solar'] = df_myenergi_sql['gep'] * df_myenergi_sql['v1']/10 /15 / 1000 / 1000

Measured unit is 15As for 'gep' and 'v1' is V*10 - whyever. I think it's used to keep precision without using decimation.

whistlebare commented 1 year ago

Power is Watts and Kilowatts. (kW) Energy (stored/consumed) is Watt-hours and Kilowatt-hours. (kWh)

(Electric car motor power is kW. The EV battery capacity is kWh.)

There are a couple of power flow cards available via HACS. https://github.com/flixlix/power-flow-card-plus https://github.com/ulic75/power-flow-card

Screenshot of the "power flow card plus" on my dashboard. image

Cool that looks like what I'm after, I'll check that out tomorrow

whistlebare commented 1 year ago

I was also confused, but this example from setup should help to get kW from Myenergi measured values: df_myenergi_kW['Solar'] = df_myenergi_sql['gep'] * df_myenergi_sql['v1']/10 /15 / 1000 / 1000

Measured unit is 15As for 'gep' and 'v1' is V*10 - whyever. I think it's used to keep precision without using decimation.

I'm still confused...lol but thanks for trying to explain it