node-red-contrib-octopus-intelligent 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +145 -118
- package/NodeRed_Global_Setter.js +76 -0
- package/RELEASE.md +140 -0
- package/examples/basic-monitoring.json +1 -0
- package/examples/mqtt-integration.json +1 -0
- package/examples/set-preferences.json +1 -0
- package/octopus-intelligent.js +914 -861
- package/package.json +47 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,118 +1,145 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [1.0.
|
|
9
|
-
|
|
10
|
-
###
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
###
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
## [1.0.
|
|
42
|
-
|
|
43
|
-
### Added
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
- **
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
- **
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
###
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.3] - 2025-12-04
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **State reconciliation loop** for charging detection (every 10 seconds)
|
|
12
|
+
- Automatically detects charging state based on cached slot timestamps
|
|
13
|
+
- No API calls - uses local data only
|
|
14
|
+
- Handles imminent/immediate slots when car is plugged in
|
|
15
|
+
- Self-healing: corrects state if timers miss edge cases
|
|
16
|
+
- **Flow Library scorecard compliance**
|
|
17
|
+
- Added `version` field to `node-red` section in package.json (>=2.0.0)
|
|
18
|
+
- Added `examples/` folder with 3 demonstration flows
|
|
19
|
+
- Satisfies Node-RED Flow Library requirements
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- **Home Assistant sensors going "unknown"** when adjusting controls
|
|
23
|
+
- Sensors now maintain last known values while editing pending preferences
|
|
24
|
+
- Only update when fresh data arrives from API
|
|
25
|
+
- Added `lastKnownState` cache and state merging in `publishCurrentState()`
|
|
26
|
+
- **Charging state not updating** for imminent/immediate slots
|
|
27
|
+
- Fixed edge case where slots starting <30s after poll were not detected
|
|
28
|
+
- Reconciliation loop catches these within 10 seconds
|
|
29
|
+
- Ensures accurate "Charging Now" sensor in Home Assistant
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Improved charging state management with redundant detection methods
|
|
33
|
+
- Enhanced MQTT state publishing to preserve sensor data during control updates
|
|
34
|
+
|
|
35
|
+
## [1.0.2] - 2025-11-30
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- Updated flow example description in Node-RED help panel for better clarity
|
|
39
|
+
- Improved explanation of default behavior: reads by default, manually refreshable, and accepts commands
|
|
40
|
+
|
|
41
|
+
## [1.0.1] - 2025-11-30
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- **Node.js and Node-RED version requirements** in package.json engines field
|
|
45
|
+
- Minimum Node.js: >=14.0.0
|
|
46
|
+
- Minimum Node-RED: >=2.0.0
|
|
47
|
+
- Addresses Flow Library scorecard requirements
|
|
48
|
+
- **Comprehensive example flows** in Node-RED help panel
|
|
49
|
+
- Basic monitoring flow (inject every 5 min)
|
|
50
|
+
- Set preferences from flow (JSON payload with set_limit/set_time)
|
|
51
|
+
- Home Assistant MQTT integration example
|
|
52
|
+
- **Visual documentation** with screenshots
|
|
53
|
+
- Node-RED flow examples showing monitoring, preferences, and preset buttons
|
|
54
|
+
- MQTT integration flow example
|
|
55
|
+
- Home Assistant device page with all entities
|
|
56
|
+
- **Visual Examples section** in Node-RED help panel with embedded GitHub-hosted images
|
|
57
|
+
- **Screenshots section** in README.md showing real-world usage
|
|
58
|
+
|
|
59
|
+
### Changed
|
|
60
|
+
- Updated README.md with Screenshots section after Features
|
|
61
|
+
- Updated .npmignore to exclude images/ folder (keeps npm package lightweight)
|
|
62
|
+
- Updated .gitignore to exclude local documentation files
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
- Flow Library scorecard now shows supported Node-RED and Node.js versions
|
|
66
|
+
- Flow Library scorecard "Nodes have examples" requirement now satisfied
|
|
67
|
+
|
|
68
|
+
## [1.0.0] - 2025-11-30
|
|
69
|
+
|
|
70
|
+
### Added
|
|
71
|
+
- Initial public release
|
|
72
|
+
- **Octopus Energy GraphQL API integration**
|
|
73
|
+
- Authentication via API key
|
|
74
|
+
- Fetch planned charging dispatches (smart-charge and bump-charge slots)
|
|
75
|
+
- Query vehicle charging preferences (target SOC and ready time)
|
|
76
|
+
- Update charging preferences via GraphQL mutations
|
|
77
|
+
- **Home Assistant MQTT auto-discovery**
|
|
78
|
+
- Number entity: Target charge limit (50-100%)
|
|
79
|
+
- Select entity: Ready time (04:00-11:00)
|
|
80
|
+
- Button entity: Apply changes
|
|
81
|
+
- Sensor entities: Confirmed settings, next charge time, total energy, slot times
|
|
82
|
+
- Binary sensor: Charging now (ON/OFF)
|
|
83
|
+
- Organized into Controls, Sensors, and Diagnostics categories
|
|
84
|
+
- **Real-time charging slot detection**
|
|
85
|
+
- Detects currently active charging slots
|
|
86
|
+
- Calculates next charging start time
|
|
87
|
+
- Provides individual slot start/end times (up to 3 slots)
|
|
88
|
+
- Calculates overall charging window
|
|
89
|
+
- Shows charge source (smart-charge vs bump-charge)
|
|
90
|
+
- **Exponential backoff validation**
|
|
91
|
+
- Smart retry mechanism when updating preferences
|
|
92
|
+
- Prevents sensors from becoming "unavailable" during API updates
|
|
93
|
+
- Validates changes at 15s, 30s, 60s, 120s intervals
|
|
94
|
+
- **Comprehensive debugging**
|
|
95
|
+
- Full API call tracking in msg.debug
|
|
96
|
+
- Success/failure status for each operation
|
|
97
|
+
- Detailed error messages
|
|
98
|
+
- **Node-RED flow control**
|
|
99
|
+
- Accept input messages to set preferences programmatically
|
|
100
|
+
- Output payload with all charging data
|
|
101
|
+
- 5-minute default refresh interval (configurable)
|
|
102
|
+
- **Octopus Energy branding**
|
|
103
|
+
- Professional pink theme (#E8146F)
|
|
104
|
+
- Device branded as "Octopus Intelligent" in Home Assistant
|
|
105
|
+
- Suggested "Energy" area in Home Assistant
|
|
106
|
+
- **Unit test coverage**
|
|
107
|
+
- Data processing tests (10 tests)
|
|
108
|
+
- Timer management tests (10 tests)
|
|
109
|
+
- Mock API responses for consistent testing
|
|
110
|
+
|
|
111
|
+
### Security
|
|
112
|
+
- API key stored securely as Node-RED credential (not exposed in flows)
|
|
113
|
+
- Account numbers sanitized in MQTT topics and entity IDs
|
|
114
|
+
|
|
115
|
+
### Documentation
|
|
116
|
+
- Comprehensive README.md with:
|
|
117
|
+
- Feature list and capabilities
|
|
118
|
+
- Installation instructions (npm and palette manager)
|
|
119
|
+
- Configuration guide
|
|
120
|
+
- Home Assistant setup instructions
|
|
121
|
+
- Node-RED usage examples
|
|
122
|
+
- Home Assistant automation examples
|
|
123
|
+
- Troubleshooting section
|
|
124
|
+
- Support options (GitHub Star, Sponsor, PayPal donate)
|
|
125
|
+
- MIT License
|
|
126
|
+
- GitHub repository with issue tracking
|
|
127
|
+
|
|
128
|
+
## Release Notes
|
|
129
|
+
|
|
130
|
+
### Version Numbering
|
|
131
|
+
This project follows [Semantic Versioning](https://semver.org/):
|
|
132
|
+
- **MAJOR** version (X.0.0): Breaking changes
|
|
133
|
+
- **MINOR** version (1.X.0): New features (backwards compatible)
|
|
134
|
+
- **PATCH** version (1.0.X): Bug fixes (backwards compatible)
|
|
135
|
+
|
|
136
|
+
### Links
|
|
137
|
+
- [npm Package](https://www.npmjs.com/package/node-red-contrib-octopus-intelligent)
|
|
138
|
+
- [GitHub Repository](https://github.com/ASomerN/node-red-contrib-octopus-intelligent)
|
|
139
|
+
- [Node-RED Flow Library](https://flows.nodered.org/node/node-red-contrib-octopus-intelligent)
|
|
140
|
+
- [Issues & Bug Reports](https://github.com/ASomerN/node-red-contrib-octopus-intelligent/issues)
|
|
141
|
+
|
|
142
|
+
### Support
|
|
143
|
+
- ⭐ [Star on GitHub](https://github.com/ASomerN/node-red-contrib-octopus-intelligent)
|
|
144
|
+
- 💖 [Become a Sponsor](https://github.com/sponsors/ASomerN)
|
|
145
|
+
- ☕ [Donate via PayPal](https://www.paypal.com/donate?hosted_button_id=A2B8ZFEJBE2S6)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node-RED Global Context Setter for Octopus Intelligent Node
|
|
3
|
+
*
|
|
4
|
+
* This is a helper function that stores all data from the Octopus Intelligent node
|
|
5
|
+
* into Node-RED's global context for easy access across your flows.
|
|
6
|
+
*
|
|
7
|
+
* USAGE:
|
|
8
|
+
* 1. Add a Function node after your Octopus Intelligent node
|
|
9
|
+
* 2. Copy this code into the Function node
|
|
10
|
+
* 3. All data will be stored in global context with 'octopus_' prefix
|
|
11
|
+
*
|
|
12
|
+
* ACCESSING THE DATA:
|
|
13
|
+
* In any Function node:
|
|
14
|
+
* const chargingNow = global.get("octopus_charging_now");
|
|
15
|
+
* const nextStart = global.get("octopus_next_start");
|
|
16
|
+
* const allData = global.get("octopus_data"); // entire payload as object
|
|
17
|
+
*
|
|
18
|
+
* In Change nodes or templates:
|
|
19
|
+
* {{global.octopus_charging_now}}
|
|
20
|
+
* {{global.octopus_next_start}}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
// Store all payload data to global context
|
|
24
|
+
function storeOctopusDataToGlobal(payload) {
|
|
25
|
+
// Store main charging data
|
|
26
|
+
global.set("octopus_next_start", payload.next_start);
|
|
27
|
+
global.set("octopus_total_energy", payload.total_energy);
|
|
28
|
+
global.set("octopus_next_kwh", payload.next_kwh);
|
|
29
|
+
global.set("octopus_next_source", payload.next_source);
|
|
30
|
+
|
|
31
|
+
// Store preferences (confirmed from API)
|
|
32
|
+
global.set("octopus_confirmed_limit", payload.confirmed_limit);
|
|
33
|
+
global.set("octopus_confirmed_time", payload.confirmed_time);
|
|
34
|
+
|
|
35
|
+
// Store pending preferences (user selections not yet submitted)
|
|
36
|
+
global.set("octopus_pending_limit", payload.pending_limit);
|
|
37
|
+
global.set("octopus_pending_time", payload.pending_time);
|
|
38
|
+
|
|
39
|
+
// Store charging status (boolean: true/false)
|
|
40
|
+
global.set("octopus_charging_now", payload.charging_now);
|
|
41
|
+
|
|
42
|
+
// Store individual charging slots (formatted timestamps)
|
|
43
|
+
global.set("octopus_slot1_start", payload.slot1_start);
|
|
44
|
+
global.set("octopus_slot1_end", payload.slot1_end);
|
|
45
|
+
global.set("octopus_slot2_start", payload.slot2_start);
|
|
46
|
+
global.set("octopus_slot2_end", payload.slot2_end);
|
|
47
|
+
global.set("octopus_slot3_start", payload.slot3_start);
|
|
48
|
+
global.set("octopus_slot3_end", payload.slot3_end);
|
|
49
|
+
|
|
50
|
+
// Store overall charging window (first start to last end)
|
|
51
|
+
global.set("octopus_window_start", payload.window_start);
|
|
52
|
+
global.set("octopus_window_end", payload.window_end);
|
|
53
|
+
|
|
54
|
+
// Store raw timestamp strings (exact API output)
|
|
55
|
+
global.set("octopus_next_start_raw", payload.next_start_raw);
|
|
56
|
+
global.set("octopus_slot1_start_raw", payload.slot1_start_raw);
|
|
57
|
+
global.set("octopus_slot1_end_raw", payload.slot1_end_raw);
|
|
58
|
+
global.set("octopus_slot2_start_raw", payload.slot2_start_raw);
|
|
59
|
+
global.set("octopus_slot2_end_raw", payload.slot2_end_raw);
|
|
60
|
+
global.set("octopus_slot3_start_raw", payload.slot3_start_raw);
|
|
61
|
+
global.set("octopus_slot3_end_raw", payload.slot3_end_raw);
|
|
62
|
+
global.set("octopus_window_start_raw", payload.window_start_raw);
|
|
63
|
+
global.set("octopus_window_end_raw", payload.window_end_raw);
|
|
64
|
+
|
|
65
|
+
// Store entire payload as single object for convenience
|
|
66
|
+
global.set("octopus_data", payload);
|
|
67
|
+
|
|
68
|
+
// Store last update timestamp
|
|
69
|
+
global.set("octopus_last_update", new Date().toISOString());
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Call the function with the incoming payload
|
|
73
|
+
storeOctopusDataToGlobal(msg.payload);
|
|
74
|
+
|
|
75
|
+
// Pass the message through unchanged
|
|
76
|
+
return msg;
|
package/RELEASE.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# Release Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist when releasing a new version to ensure nothing is missed.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Phase 1: Development & Testing
|
|
8
|
+
|
|
9
|
+
- [ ] Create feature branch: `dev/feature-name`
|
|
10
|
+
- [ ] Make code changes and commit
|
|
11
|
+
- [ ] Update version in `package.json` (e.g., 1.0.2 → 1.0.3)
|
|
12
|
+
- [ ] Run unit tests: `npm test` - **ALL MUST PASS** ✅
|
|
13
|
+
- [ ] Build package: `npm pack`
|
|
14
|
+
- [ ] Test .tgz on Raspberry Pi Node-RED installation
|
|
15
|
+
- [ ] Verify functionality in Home Assistant
|
|
16
|
+
- [ ] Run `git status` - ensure no untracked files to commit
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Phase 2: Documentation
|
|
21
|
+
|
|
22
|
+
- [ ] Update `CHANGELOG.md` with new version section:
|
|
23
|
+
```markdown
|
|
24
|
+
## [1.0.3] - YYYY-MM-DD
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- New features listed here
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- Changes listed here
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
- Bug fixes listed here
|
|
34
|
+
```
|
|
35
|
+
- [ ] Review `README.md` for any needed updates
|
|
36
|
+
- [ ] Commit documentation updates
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Phase 3: Merge to Master
|
|
41
|
+
|
|
42
|
+
- [ ] Ensure all changes committed on dev branch
|
|
43
|
+
- [ ] Run final tests: `npm test`
|
|
44
|
+
- [ ] Switch to master: `git checkout master`
|
|
45
|
+
- [ ] Merge dev branch: `git merge dev/feature-name`
|
|
46
|
+
- [ ] Verify merged correctly: `git log --oneline -5`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Phase 4: Git Release
|
|
51
|
+
|
|
52
|
+
- [ ] Create annotated tag: `git tag -a v1.0.3 -m "Release v1.0.3 - Description"`
|
|
53
|
+
- [ ] Push master branch: `git push origin master`
|
|
54
|
+
- [ ] Push tag: `git push origin v1.0.3`
|
|
55
|
+
- [ ] Verify on GitHub: https://github.com/ASomerN/node-red-contrib-octopus-intelligent/releases
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Phase 5: npm Publication
|
|
60
|
+
|
|
61
|
+
- [ ] Verify you're on master branch: `git branch`
|
|
62
|
+
- [ ] Verify version is correct: `npm view node-red-contrib-octopus-intelligent version`
|
|
63
|
+
- [ ] Publish to npm: `npm publish`
|
|
64
|
+
- [ ] Verify publication: `npm view node-red-contrib-octopus-intelligent version`
|
|
65
|
+
- [ ] Check package page: https://www.npmjs.com/package/node-red-contrib-octopus-intelligent
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Phase 6: Flow Library Update
|
|
70
|
+
|
|
71
|
+
- [ ] Go to: https://flows.nodered.org/node/node-red-contrib-octopus-intelligent
|
|
72
|
+
- [ ] Log in to flows.nodered.org
|
|
73
|
+
- [ ] Click "request refresh" link in sidebar (or resubmit via + button)
|
|
74
|
+
- [ ] Wait for sync (can take hours)
|
|
75
|
+
- [ ] Verify version updated on Flow Library page
|
|
76
|
+
- [ ] Check scorecard: https://flows.nodered.org/node/node-red-contrib-octopus-intelligent/scorecard
|
|
77
|
+
- [ ] All items should be ✅ green
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Phase 7: GitHub Release (Optional but Recommended)
|
|
82
|
+
|
|
83
|
+
- [ ] Go to: https://github.com/ASomerN/node-red-contrib-octopus-intelligent/releases/new
|
|
84
|
+
- [ ] Select tag: `v1.0.3`
|
|
85
|
+
- [ ] Release title: `v1.0.3 - Short Description`
|
|
86
|
+
- [ ] Copy CHANGELOG.md entry for this version into description
|
|
87
|
+
- [ ] Attach the `.tgz` file (optional)
|
|
88
|
+
- [ ] Publish release
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Phase 8: Cleanup
|
|
93
|
+
|
|
94
|
+
- [ ] Delete local dev branch: `git branch -d dev/feature-name`
|
|
95
|
+
- [ ] Delete remote dev branch: `git push origin --delete dev/feature-name`
|
|
96
|
+
- [ ] Delete local `.tgz` file: `rm *.tgz`
|
|
97
|
+
- [ ] Celebrate! 🎉
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Quick Reference Commands
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Testing
|
|
105
|
+
npm test
|
|
106
|
+
|
|
107
|
+
# Build
|
|
108
|
+
npm pack
|
|
109
|
+
|
|
110
|
+
# Version check
|
|
111
|
+
npm view node-red-contrib-octopus-intelligent version
|
|
112
|
+
|
|
113
|
+
# Git workflow
|
|
114
|
+
git checkout master
|
|
115
|
+
git merge dev/feature-name
|
|
116
|
+
git tag -a v1.0.3 -m "Release v1.0.3"
|
|
117
|
+
git push origin master
|
|
118
|
+
git push origin v1.0.3
|
|
119
|
+
|
|
120
|
+
# Publish
|
|
121
|
+
npm publish
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Common Issues
|
|
127
|
+
|
|
128
|
+
### Flow Library not updating
|
|
129
|
+
- Wait 24 hours for automatic sync
|
|
130
|
+
- Try "request refresh" link when logged in
|
|
131
|
+
- If still not updating, resubmit via + button
|
|
132
|
+
|
|
133
|
+
### npm publish fails with "version already exists"
|
|
134
|
+
- Check version in package.json was bumped
|
|
135
|
+
- Verify with: `npm view node-red-contrib-octopus-intelligent version`
|
|
136
|
+
|
|
137
|
+
### Tests failing
|
|
138
|
+
- DO NOT proceed with release
|
|
139
|
+
- Fix tests first
|
|
140
|
+
- Re-test on Pi before publishing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"1","type":"inject","name":"Every 5 min","props":[{"p":"payload"}],"repeat":"300","crontab":"","once":true,"topic":"","payload":"","payloadType":"date","x":130,"y":80,"wires":[["2"]]},{"id":"2","type":"octopus-intelligent","name":"Octopus Intelligent","accountNumber":"A-XXXXXXXX","refreshInterval":"5","enableMqtt":false,"x":340,"y":80,"wires":[["3"]]},{"id":"3","type":"debug","name":"Debug Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":570,"y":80,"wires":[]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"1","type":"inject","name":"Every 5 min","props":[{"p":"payload"}],"repeat":"300","crontab":"","once":true,"topic":"","payload":"","payloadType":"date","x":130,"y":200,"wires":[["2"]]},{"id":"2","type":"octopus-intelligent","name":"Octopus Intelligent","accountNumber":"A-XXXXXXXX","refreshInterval":"5","enableMqtt":true,"broker":"mqtt-broker","x":340,"y":200,"wires":[["3"]]},{"id":"3","type":"debug","name":"Debug Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":570,"y":200,"wires":[]},{"id":"mqtt-broker","type":"mqtt-broker","name":"Home Assistant MQTT","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"1","type":"inject","name":"Set 85% by 07:30","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"topic":"","payload":"{\"set_limit\":85,\"set_time\":\"07:30\"}","payloadType":"json","x":150,"y":140,"wires":[["2"]]},{"id":"2","type":"octopus-intelligent","name":"Octopus Intelligent","accountNumber":"A-XXXXXXXX","refreshInterval":"5","enableMqtt":true,"broker":"mqtt-broker","x":380,"y":140,"wires":[["3"]]},{"id":"3","type":"debug","name":"Confirmation","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":610,"y":140,"wires":[]}]
|