Skip to content

Commit

Permalink
8.0.0 (#243)
Browse files Browse the repository at this point in the history
* check content type for modal prompt

* Bump deps

* Fix Setpoint type in buildNormalized

* Association changes and node ready alert message

* FWUS and associations cleanup

* Initial FWUS draft

* Fix require

* Fix html escape alert (well try at least)

* Surely this is it?

* Update package.json

* Wake up wait

* Wake up wait logic

* Change log and ignore controller in node event subscription

* Update CHANGELOG.md

* correct event names

* Double check Thermostat Setpoint

* Nodes Listed Check

* FWF Wake wait

* FWUS Files

* Update client.js

* Update client.js

* Update client.js

* Update package.json

* Check value type

* Update CHANGELOG.md

* Fix UI data types

* Add color chooser

* Reference color files

* Add the color pallet

* implement name & location export

* catch export errors

* implement name & location import

* Node version

* Passthrough msg in CMD Factory

* Change log

* Align with V10

* FWUS, Fix alerts, title style

* Set NON-COMMERCIAL as default

* Add Scales to UI

* Add Log entries

* Fix Scale defaults

* Edit License description

* Fix BETA version of driver in package

* Set current value for editor text boxes

* fix typo

* Small clean up

* More clean up

* Typo

* Slight type clean up in UI

* More UI type fixes

* Move to BETA

* Small CL edit

* Beta 2

* Beta 3

* Retain last set value in editor (hopefully)

* Allow sleep wait cancel (hopefully)

* Fix wait in if statement

* fix val and cancel button object

* remove uneeded destroy (it already gets deestroyed)

* Update CHANGELOG.md

* Update CHANGELOG.md

* v10 Stable

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update package.json

* Add last seen timestamps

* Update CHANGELOG.md

* This one is  a B**ch to get right

* Destroy wait handle

* Clear up some mess

* don't think we need think

* Don't be silly now!

* destroy on catch

* Update client.js

* Almost there!

* Update client.js

* Optimise UI: 1# Add metadata to ValueDB dump

* Fix typo

* Improve getLastSeenTimestamps

* Further improve getLastSeenTimestamps

* Optimise UI: 2# Use ValueDB for everything (now with meta)

* Strip some properties

* was it this?

* This got to be it?

* Getting close!

* Lets try this

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Update client.js

* Small updates

* Some initial cleanup

* Add timestamp to node list

* Beta 5

* Update styles.css

* Fix CSS (NR < 3)

* Swop order of FW update method

* Add timestamp to map

* Exclude controller from timestamps report

* MR check lastSeen > 0

* Tab CSS Fix (last one wasn't right)

* Update CL

* V8 Baby!
  • Loading branch information
marcus-j-davies authored Sep 23, 2022
1 parent b21cf7a commit e9bf169
Show file tree
Hide file tree
Showing 14 changed files with 1,658 additions and 342 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# node-red-contrib-zwave-js Change Log

- 8.0.0

**Breaking Changes**
- Dropped support for Node 12 (min required is now 14.13.0)
- If you use the **set** method of the **Configuration** CC in **CCAPI** mode, the arguments must now have one object (detailed below)
```javascript
[
{"parameter": <number>, "value": <Desired Value>, "valueSize": <Number>}
]
```
previously this was ```[<number>, <Desired Value>, <Number>]```
- **ValueAPI** is now default on the CMD Factory node.
If you have problems with this node after the update, please open it up, and select your API, then save.

**New Features**
- Default scales can now be applied inside the controller config
- Added ability to export/import node name & location maps
- Implemented a Firmware Update Service, that allows to install Firmware on devices that have known updates - Please double click controller!
- 2 new event types have been added : **ALIVE**, **DEAD** - these allow you to monitor if a device has been marked dead
or alive accordingly.
- Added a color chooser for color input types in the UI
- Added a new **Driver** function **getLastEvents**
- Device last seen timestamp is now shown in the UI
- Node list now contains the date when the device was last seen.

**Bug Fixes**
- Modal alerts are now rendering HTML content once again
- Missing `normalizedObject.label` for Thermostat devices
- Fix some data type odities in the UI editor
- `msg` properties are now carried through the CMD Factory node

**Changes**
- Current Value(s) who's type is an object have been changed to prompt for a double click in the UI
- Association Management has been updated, and changes are now applied in batch.
- For battery operated devices, certain UI actions now ask you to wake up said device before anything is comitted.
- Various performance boosts in the UI
- Bump ZWave JS to V10
- Bump Winston
- Bump ESlint

- 7.1.2

**Changes**
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "node-red-contrib-zwave-js",
"version": "7.1.2",
"version": "8.0.0",
"license": "MIT",
"description": "The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.",
"dependencies": {
"limiter": "^2.1.0",
"lodash": "^4.17.21",
"serialport": "^10.4.0",
"winston": "^3.7.2",
"winston": "^3.8.2",
"winston-transport": "^4.5.0",
"zwave-js": "^9.4.0"
"zwave-js": "^10.2.0"
},
"devDependencies": {
"eslint": "^8.18.0",
"eslint": "^8.23.1",
"prettier": "^2.7.1"
},
"scripts": {
"validate": "node-red-dev validate -o validation_result.json"
},
"engines": {
"node": ">=12.22.2"
"node": ">=14.13.0"
},
"keywords": [
"node-red",
Expand Down
10 changes: 10 additions & 0 deletions resources/MeshMap/maprender.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function Render(Base) {
name: 'Controller',
nameOnly: `Controller`,
location: `Hopefully away from interference.`,
lastSeen: '0',
fontSize: '12px',
icon: `${Base}/Stick.png`,
powerSource: { type: 'bus' },
Expand All @@ -52,6 +53,12 @@ function Render(Base) {
path: []
}
};
if(N.lastSeen > 0){
EL.data.lastSeen = new Date(N.lastSeen).toLocaleString();
}
else{
EL.data.lastSeen = 'Never';
}

Elements.push(EL);

Expand Down Expand Up @@ -308,6 +315,9 @@ function LoadData() {
$(`<li>Timeouts: ${this.data('statistics').timeoutResponse}</li>`).appendTo(
NetStatsDetails
);

// Node details addition
$(`<li>Last Seen: ${this.data('lastSeen')}</li>`).appendTo(NodeDetails);
}

$('#Details').html(Data);
Expand Down
Loading

0 comments on commit e9bf169

Please sign in to comment.