Skip to content

updated codes for operation mode#6

Merged
eman merged 2 commits intomainfrom
operation_mode
Oct 10, 2025
Merged

updated codes for operation mode#6
eman merged 2 commits intomainfrom
operation_mode

Conversation

@eman
Copy link
Copy Markdown
Owner

@eman eman commented Oct 10, 2025

No description provided.

@eman eman requested a review from Copilot October 10, 2025 20:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 operation mode handling to distinguish between commanded modes (used when controlling the device) and observed status modes (received from device status messages). The changes are based on network traffic analysis that revealed different operation mode values in status responses.

Key changes:

  • Expands the OperationMode enum to include both commanded modes (0-5) and observed status modes (32, 64, 96)
  • Adds aliases for common operation modes (OFF and AWAY)
  • Documents the mapping between commanded and observed operation modes in the technical documentation

Reviewed Changes

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

File Description
src/nwp500/models.py Expands OperationMode enum with observed status modes and aliases
docs/DEVICE_STATUS_FIELDS.rst Documents the mapping between commanded and observed operation modes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@eman eman merged commit dc82ecb into main Oct 10, 2025
10 checks passed
@eman eman deleted the operation_mode branch October 10, 2025 21:50
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