Skip to content

GECloud: Fix to avoid turning on real time mode for EMS as its not supported#4143

Merged
springfall2008 merged 1 commit into
mainfrom
fix/ge_cloud_rtm
Jul 2, 2026
Merged

GECloud: Fix to avoid turning on real time mode for EMS as its not supported#4143
springfall2008 merged 1 commit into
mainfrom
fix/ge_cloud_rtm

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 28, 2026 18:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GECloud default-settings logic to avoid attempting to enable “Real Time Control” when an EMS device is detected, and adds regression coverage to ensure no RTC write is attempted in that scenario.

Changes:

  • Skip RTC enablement in GECloud.enable_default_options() when ems_device is present.
  • Add a unit test case ensuring RTC is not written (and returns False) when an EMS device exists.
  • Renumber subsequent test labels accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
apps/predbat/gecloud.py Skips enabling real-time control when an EMS device is present.
apps/predbat/tests/test_ge_cloud.py Adds regression test coverage for EMS-present RTC skip behavior.

Comment thread apps/predbat/gecloud.py
self.log("GECloud: Warn: Failed to set {} for {}".format(ha_name, device))
if "real_time_control" in ha_name:
if self.ems_device:
# RTC is on the EMS, not the individual inverters — skip
@springfall2008 springfall2008 merged commit f41de23 into main Jul 2, 2026
2 checks passed
@springfall2008 springfall2008 deleted the fix/ge_cloud_rtm branch July 2, 2026 13:23
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

Successfully merging this pull request may close these issues.

2 participants