You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add schema 47 state properties, events, and infrastructure (1/4)
Add schema version 47 with new state properties for driver, controller,
and node dumps. Add event forwarding for driver lifecycle events and
controller network events. Include shared helpers, dependency updates,
and documentation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+132-1Lines changed: 132 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1651,6 +1651,55 @@ interface {
1651
1651
}
1652
1652
```
1653
1653
1654
+
#### `all nodes ready`
1655
+
1656
+
[compatible with schema version: 47+]
1657
+
1658
+
This event is sent when all nodes have been interviewed and are ready.
1659
+
1660
+
```ts
1661
+
interface {
1662
+
type:"event";
1663
+
event: {
1664
+
source:"driver";
1665
+
event:"all nodes ready";
1666
+
}
1667
+
}
1668
+
```
1669
+
1670
+
#### `error`
1671
+
1672
+
[compatible with schema version: 47+]
1673
+
1674
+
This event is sent when a driver error occurs.
1675
+
1676
+
```ts
1677
+
interface {
1678
+
type:"event";
1679
+
event: {
1680
+
source:"driver";
1681
+
event:"error";
1682
+
error:string;
1683
+
}
1684
+
}
1685
+
```
1686
+
1687
+
#### `bootloader ready`
1688
+
1689
+
[compatible with schema version: 47+]
1690
+
1691
+
This event is sent when the controller enters bootloader mode.
1692
+
1693
+
```ts
1694
+
interface {
1695
+
type:"event";
1696
+
event: {
1697
+
source:"driver";
1698
+
event:"bootloader ready";
1699
+
}
1700
+
}
1701
+
```
1702
+
1654
1703
#### `log config updated`
1655
1704
1656
1705
This event is sent whenever a client issues the `driver.update_log_config` command with the updated log config.
@@ -1769,7 +1818,7 @@ interface {
1769
1818
1770
1819
#### `nvm restore progress`
1771
1820
1772
-
This event is sent on progress updates to the NVM restoration process when the [`controller.restore_nvm`](https://zwave-js.github.io/node-zwave-js/#/api/controller?id=nvm-backup-and-restore) command is issued by a client to the server and the NVM data is being restored to the controller.
1821
+
This event is sent on progress updates to the NVM restoration process when the [`controller.restore_nvm`](https://zwave-js.github.io/node-zwave-js/#/api/controller?id=nvm-backup-and-restore)or `controller.restore_nvm_raw`command is issued by a client to the server and the NVM data is being restored to the controller.
1773
1822
1774
1823
```ts
1775
1824
interface {
@@ -1783,6 +1832,88 @@ interface {
1783
1832
}
1784
1833
```
1785
1834
1835
+
#### `network found`
1836
+
1837
+
[compatible with schema version: 47+]
1838
+
1839
+
This event is sent when a new network is found during the join process (learn mode).
1840
+
1841
+
```ts
1842
+
interface {
1843
+
type:"event";
1844
+
event: {
1845
+
source:"controller";
1846
+
event:"network found";
1847
+
homeId:number;
1848
+
ownNodeId:number;
1849
+
}
1850
+
}
1851
+
```
1852
+
1853
+
#### `network joined`
1854
+
1855
+
[compatible with schema version: 47+]
1856
+
1857
+
This event is sent when the controller successfully joins a network.
1858
+
1859
+
```ts
1860
+
interface {
1861
+
type:"event";
1862
+
event: {
1863
+
source:"controller";
1864
+
event:"network joined";
1865
+
}
1866
+
}
1867
+
```
1868
+
1869
+
#### `network left`
1870
+
1871
+
[compatible with schema version: 47+]
1872
+
1873
+
This event is sent when the controller leaves the current network.
1874
+
1875
+
```ts
1876
+
interface {
1877
+
type:"event";
1878
+
event: {
1879
+
source:"controller";
1880
+
event:"network left";
1881
+
}
1882
+
}
1883
+
```
1884
+
1885
+
#### `joining network failed`
1886
+
1887
+
[compatible with schema version: 47+]
1888
+
1889
+
This event is sent when joining a network fails.
1890
+
1891
+
```ts
1892
+
interface {
1893
+
type:"event";
1894
+
event: {
1895
+
source:"controller";
1896
+
event:"joining network failed";
1897
+
}
1898
+
}
1899
+
```
1900
+
1901
+
#### `leaving network failed`
1902
+
1903
+
[compatible with schema version: 47+]
1904
+
1905
+
This event is sent when leaving a network fails.
1906
+
1907
+
```ts
1908
+
interface {
1909
+
type:"event";
1910
+
event: {
1911
+
source:"controller";
1912
+
event:"leaving network failed";
1913
+
}
1914
+
}
1915
+
```
1916
+
1786
1917
## Schema Version
1787
1918
1788
1919
In an attempt to keep compatibility between different server and client versions, we've introduced a (basic) API Schema Version.
0 commit comments