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

feed_through_consumed_energy is total_increasing but negative #11

Open
gdgib opened this issue Apr 13, 2023 · 6 comments
Open

feed_through_consumed_energy is total_increasing but negative #11

gdgib opened this issue Apr 13, 2023 · 6 comments
Assignees
Milestone

Comments

@gdgib
Copy link
Owner

gdgib commented Apr 13, 2023

2023-04-12 18:26:42.646 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.feed_through_consumed_energy from integration span_panel has state class total_increasing, but its state is negative. Triggered by state -54967.208492206 with last_updated set to 2023-04-13T01:19:59.004244+00:00. Please report it to the custom integration author.

Honestly not sure whether this is due to solar causing negative energy consumption, or maybe just a silly sign error (e.g. a negative number needs to be inverted before passing it to HA).

@etmelvin
Copy link

etmelvin commented Apr 15, 2023

Honesty, I don’t really know what feedthrough means and have never really tried to use it for anything; I mainly stick with the Main Meter entities for my energy dashboard. I’ve seen this behavior on the previous integration versions too.

Reading existing posts about feedthrough seems to indicate it is used when multiple (sub)panels are installed? I only have 1 single panel with solar and am getting negative reading on those entities too.

Like the changes made to the relay switch toggle controls and the priority selector controls API are undocumented and I only stumbled upon them the right configuration to pass to the API by luck.

It’ll be nice if we have some documentations on these exposed properties from the API, maybe we can ask the SPAN employees on the forum but I doubt they will commit to anything about the local API at this time. :P

@gdgib
Copy link
Owner Author

gdgib commented May 4, 2023

Agreed, that makes sense. I'll try and do a little detective work, myself on the values and docs, maybe get a little lucky.

I'll also try the span folks. I got some good responses from them in DMs, but then they dropped off the HA forums.

@gdgib gdgib self-assigned this May 9, 2023
@tylas13
Copy link

tylas13 commented May 11, 2023

My feed-through consumed energy is also negative and I think I know why. I have my solar inverter system hooked up to the downstream lugs, or "downstream loads" on the Span app, and the wattage closely follows my dual SolarEdge inverter output. The frustrating thing is the Span app is not set up to do this so it doesn't actually capture my solar power. Fortunately this integration shows the raw numbers so I can measure it more accurately.

I'll watch at night when the optimizers are using electricity at night to see if it switches over to positive. If I get time I'll set up a db to compare the power output of inverters compared to the downstream output.

@gdgib
Copy link
Owner Author

gdgib commented May 11, 2023

Thanks @tylas13. That matches my suspicions, so I wouldn't be surprised. Let me know if I can help in any way.

I do plan to sort this out, but I admit it's not yet the top of my SmartHome development priorities.

@mbbush
Copy link

mbbush commented May 25, 2023

There's definitely something goofy about the feedthrough energy numbers reported by the span local api. If I had to bet, I'd say there's a bug somewhere related to signed/unsigned integers and over/underflow, but I haven't been able to find it yet, and it is also not yet on the top of my list of development priorities.

What does feed through mean?

These numbers represent the energy transferred through the feed-through lugs attached to the bottom of the panel. These lugs are designed for attaching another panel (smart or otherwise) downstream, and providing up to a 200A connection. If you don't have anything connected to them, you can just ignore these values.

@gdgib gdgib added this to the 0.0.10 milestone Feb 9, 2024
@gdgib
Copy link
Owner Author

gdgib commented Feb 9, 2024

I'm going to leave this out of 0.0.9, where I want to focus on control & connection issues. 0.0.10 is where I'm planning to look at the sensors in more detail.

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

No branches or pull requests

4 participants