Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To many routes for the power..... #22

Closed
B-Hartley opened this issue Dec 9, 2020 · 3 comments
Closed

To many routes for the power..... #22

B-Hartley opened this issue Dec 9, 2020 · 3 comments
Labels
question Further information is requested

Comments

@B-Hartley
Copy link

Hi,

In my setup, I have.....

Grid
Solar
Battery
Car1
Car2

But The battery can charge from the grid or from solar.
Solar could go to the battery, to the car, to the grid.

It's too complex to work out what is going where.

The only way I could do it really would be to just have a star with a central hub.
Each device (battery, solar, house, car etc.) is a spoke on the wheel and gives or receives power.

This is how myEnergi show it in their app and it makes sense.
For me to calculate sensors for solar to house, solar to grid, solar to battery would be too complex.

It's a shame, as I like the presentation of your card, but I can't make it work in my setup.

Thanks anyway.

@reptilex
Copy link
Owner

reptilex commented Dec 9, 2020

well if you place the car behind the home you can deal with your problem rather easily. How I would use it with this card would be:

  1. Create a new sensor that sums car battery + car battery2 + home usage = home_consumption_entity (you already can setup 2 cars)
  2. Use the car battery sensors separately for each car from the home.
  3. All other lines are there already. In the newest version you can find the battery can charge from the grid too.

Normaly you don't need to calculate those sensors since most inverters have either an API or a Modbus port that gives you all this data. And for the cars they should do it themselves via their APIs, Tesla at least does I believe Hyundai does too. Otherwise you can get this from the wall connectors.

@reptilex
Copy link
Owner

reptilex commented Dec 9, 2020

Another thing to keep in mind is that you might be having sensors with negative values, you just need to create template sensors with positive values that are for other stuff. Say positive value on the battery loads it and negative value unloads it. With a template sensor like the one I describe in the readme you should be able to divide these kind of sensors.

@reptilex reptilex added the question Further information is requested label Dec 9, 2020
@B-Hartley
Copy link
Author

I'll have another go at juggling the sensors and post back how I get it done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants