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

Peak Shaving | Sensors return "unknown" instead of current data #51

Closed
io-debug opened this issue Dec 9, 2023 · 1 comment
Closed

Comments

@io-debug
Copy link

io-debug commented Dec 9, 2023

Description of the issue
The Sensors that show data for

  • peakshaving mode
  • peakshaving gridexport limit
  • peakshaving capacitylimit
  • peakshaving enddate

return "unknown" instad of the current data.

Result of Analysis
The root of the issue can be found in the file /custom_components/senec/pysenec_ha/init.py
Starting with line 2437 the respective properties check "if hasattr(self, "_peakShaving_entities")".
The correct if-statement is: "if hasattr(self, "_peak_shaving_entities")".

I'll provide an PR to solve this issue.

io-debug added a commit to io-debug/ha-senec-v3 that referenced this issue Dec 9, 2023
io-debug added a commit to io-debug/ha-senec-v3 that referenced this issue Dec 9, 2023
marq24 pushed a commit that referenced this issue Dec 9, 2023
* Fix for Issue #51

* Fir for  Issue #51
@io-debug
Copy link
Author

io-debug commented Dec 9, 2023

Fixed with the latest release.

@io-debug io-debug closed this as completed Dec 9, 2023
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

1 participant