Skip to content

Set IsActive to false when received limit duration is 0#172

Merged
DerAndereAndi merged 2 commits intodevfrom
fix/cs-lpc-lpp-0-duration
Jan 23, 2026
Merged

Set IsActive to false when received limit duration is 0#172
DerAndereAndi merged 2 commits intodevfrom
fix/cs-lpc-lpp-0-duration

Conversation

@sthelen-enqs
Copy link
Copy Markdown
Contributor

According to the EEBus UC Implementation Guideline for LPC v1.0.0 section 2.2 1):
If Actor Controllable System receives an Active Power Consumption Limit with a duration set to "0", the limit SHALL immediately be deactivated by the Controllable System (see [LPC-007]). If the received write command contains a duration set to "0" AND also a request to set the Active Power Consumption Limit to "activated", the Actor Controllable System SHALL ignore the request

This has the added effect for us, that previously in the CS-LPC/CS-LPP API it was next to impossible to differentiate between a limit without a duration (active forever), and a limit with a 0 duration.

According to the EEBus UC Implementation Guideline for LPC v1.0.0
section 2.2 1):
If Actor Controllable System receives an Active Power Consumption Limit
with a duration set to "0", the limit SHALL immediately be deactivated
by the Controllable System (see [LPC-007]). If the received write
command contains a duration set to "0" AND also a request to set the
Active Power Consumption Limit to "activated", the Actor Controllable
System SHALL ignore the request

This has the added effect for us, that previously in the CS-LPC/CS-LPP
API it was next to impossible to differentiate between a limit without a
duration (active forever), and a limit with a 0 duration.
@sthelen-enqs sthelen-enqs self-assigned this Apr 9, 2025
@kirollosnct kirollosnct self-requested a review October 22, 2025 12:56
Copy link
Copy Markdown
Member

@DerAndereAndi DerAndereAndi left a comment

Choose a reason for hiding this comment

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

With the already mentioned review comment to add a spec reference, this looks good.

@DerAndereAndi DerAndereAndi merged commit beb3a8e into dev Jan 23, 2026
7 checks passed
@DerAndereAndi DerAndereAndi deleted the fix/cs-lpc-lpp-0-duration branch January 23, 2026 11:11
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.

3 participants