feat(cli): Add control commands (set temperature, on/off, speed)
評価
調査の方向性
OmniLogic がインスタンス化され、refresh() が呼び出される CLI エントリポイントから開始し、提案された set グループと既存の get グループを比較します。列挙されたライブラリプリミティブと機器検索を omni.backyard.bow 経由で追跡します。提案されたヒーター、ソーラー、機器、速度、ライトの各コマンドが、文書化された引数で対応するコントロールを呼び出せば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The CLI currently only exposes read-only commands (get and debug subgroups). The library itself fully supports equipment control via methods like heater.set_temperature(), pump.set_speed(), light.turn_on(), etc., but there is no way to invoke these operations from the command line.
Motivation
Users who want to script pool control (e.g., cron jobs, home automation integrations, or wrapping the CLI in an HTTP API) currently have to write Python code using the library directly. Adding a set command group to the CLI would make equipment control accessible without any custom code.
Use cases
- Scripting:
omnilogic --host 192.168.1.100 set heater-temp 1 4 82to set pool heater to 82°F from a shell script - HTTP wrappers: Lightweight API services that shell out to the CLI for control commands
- Debugging/testing: Quickly toggle equipment during development without writing async Python
Proposed CLI interface
# Heater temperature control
omnilogic set heater-temp <bow_id> <equip_id> <temperature>
omnilogic set solar-temp <bow_id> <equip_id> <temperature>
# Equipment on/off
omnilogic set equipment-on <bow_id> <equip_id>
omnilogic set equipment-off <bow_id> <equip_id>
# Pump/filter speed
omnilogic set speed <bow_id> <equip_id> <percent>
# Light control
omnilogic set light-show <bow_id> <equip_id> <show_id> [--brightness N] [--speed N]
Implementation notes
- The high-level library already has all the primitives:
heater.set_temperature(),pump.set_speed(),light.turn_on(),light.set_show(), etc. - The CLI already instantiates
OmniLogicand callsrefresh()in the entrypoint, so adding asetcommand group would follow the same pattern as the existinggetgroup. - Equipment lookup by
bow_id/system_idcan useomni.backyard.bowand iterate equipment collections.
Context
I ran into this gap while building a containerized HTTP API wrapper for my OmniLogic system. I ended up importing pyomnilogic_local directly to get temperature control since the CLI had no way to set heater temperatures. Happy to contribute a PR if this aligns with the project direction.
- 主要言語
- Python
- スター
- 10
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cryptk/python-omnilogic-local のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
cryptk/python-omnilogic-local#156 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cryptk/python-omnilogic-local#150 ·
-
Pumps can be VSPs as well as features対応中かも @tonyfruzza が 143 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
cryptk/python-omnilogic-local#99 · コメント 8 件 ·
cryptk/python-omnilogic-local の issue をすべて見る
似ている issue
-
request-theme
難易度 2/5 1時間未満 初心者へのやさしさ 70/100
LizardByte/ThemerrDB#8877 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/install-update comp/gateway P0 sweeper:risk-compatibility type/bug
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
NousResearch/hermes-agent#135997 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
deepset-ai/haystack#13199 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] JSONLoader rejects valid UTF-8 BOM files対応中かも @zouyonghe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anthropics/knowledge-work-plugins#1298 ·
メンテナーはふだん 1 日以内に返信