Skip to content

cli fix and documentation updates#7

Merged
eman merged 6 commits intomainfrom
cli
Oct 11, 2025
Merged

cli fix and documentation updates#7
eman merged 6 commits intomainfrom
cli

Conversation

@eman
Copy link
Copy Markdown
Owner

@eman eman commented Oct 11, 2025

No description provided.

@eman eman requested a review from Copilot October 11, 2025 16:36
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 implements a comprehensive CLI interface and updates device model operation mode mappings based on the MQTT protocol. It includes removing the skeleton template file, adding extensive documentation for device features, and correcting temperature conversion formulas.

Key changes:

  • Added a full-featured CLI with authentication, device monitoring, and control capabilities
  • Corrected OperationMode enum values to match MQTT protocol (swapped ENERGY_SAVER from 2→3 and HIGH_DEMAND from 3→4)
  • Updated temperature conversion formulas for ambient and tank temperatures based on observed data
  • Added comprehensive device feature documentation with hardware specifications

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/nwp500/skeleton.py Removed template skeleton file (entire file deleted)
src/nwp500/models.py Updated OperationMode enum values and temperature conversion formulas
src/nwp500/cli.py Added comprehensive CLI with authentication, monitoring, and device control
setup.cfg Enabled console script entry point for CLI
examples/set_mode_example.py Added example demonstrating mode setting functionality
docs/index.rst Added reference to new device feature fields documentation
docs/DEVICE_STATUS_FIELDS.rst Updated temperature conversion formulas for tank and ambient temperatures
docs/DEVICE_FEATURE_FIELDS.rst Added comprehensive documentation for device capabilities and features
README.rst Added CLI usage documentation and device feature model reference

eman and others added 5 commits October 11, 2025 10:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@eman eman merged commit 1ae9205 into main Oct 11, 2025
10 checks passed
@eman eman deleted the cli branch October 11, 2025 17:38
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