Repository navigation
feat(node-red): choose the energy command route: automatic, local only or cloud only - #198
Conversation
|
Warning Review limit reachedYour organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Next included review available in 41 minutes. View limit details
|
e83c5ba to
77b4665
Compare
08a3f05 to
71f5595
Compare
77b4665 to
382f71a
Compare
71f5595 to
b7dd532
Compare
382f71a to
56753e8
Compare
b7dd532 to
b168488
Compare
b168488 to
7f345da
Compare
7f345da to
b24dd0d
Compare
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Adding Local-only and Cloud-only routing for energy commands could send site controls over an unintended path or cause commands to fail. Adds a Route setting to the Energy Command node (Automatic, Local only, Cloud only) that controls whether commands go through the Local gateway, cloud, or both, with editor and label updates to match. No issues found. ✅ 1 closedClosed: Bug: Local only greys out earlier-name commands that the gateway does run
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Adds a Route setting to the Energy Command node. Automatic is today's behaviour and what a node saved without the setting gets. Local only sends through the Local gateway with no cloud fallback: it errors when the node has no gateway for the site, when the gateway gives no answer, or when the gateway does not take the command (earlier names hit a cloud stand-in that refuses instead of reaching the cloud). Cloud only ignores the gateway, so signed commands need the site paired. In the editor the gateway row is hidden for Cloud only, Local only greys out every command the gateway does not take (from the endpoint's
localflag), Cloud only no longer lets the gateway unlock paired commands, and the node label shows a non-automatic route. Checked in a local Node-RED 4.1 with a stubbed paired site; no Powerwall was contacted, and the local, no-answer and refusal paths are covered by tests against the fake gateway.