@avantics/node-red-home-automation 3.0.1 → 4.0.1
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/README.md +278 -13
- package/dist/lib/activity-lighting-controller.d.ts +7 -1
- package/dist/lib/activity-lighting-controller.js +37 -3
- package/dist/lib/adopted-request.d.ts +26 -0
- package/dist/lib/adopted-request.js +44 -0
- package/dist/lib/avr-controller.d.ts +8 -1
- package/dist/lib/avr-controller.js +27 -3
- package/dist/lib/avr-publishing.d.ts +24 -0
- package/dist/lib/avr-publishing.js +80 -0
- package/dist/lib/backlighting-controller.d.ts +7 -1
- package/dist/lib/backlighting-controller.js +26 -3
- package/dist/lib/circadian.d.ts +1 -0
- package/dist/lib/circadian.js +3 -0
- package/dist/lib/cover-availability.d.ts +7 -0
- package/dist/lib/cover-availability.js +24 -0
- package/dist/lib/cover-controller.d.ts +13 -1
- package/dist/lib/cover-controller.js +145 -31
- package/dist/lib/cover-group.d.ts +62 -0
- package/dist/lib/cover-group.js +125 -0
- package/dist/lib/cover-models.d.ts +37 -0
- package/dist/lib/cover-models.js +83 -0
- package/dist/lib/cover-publishing.d.ts +40 -0
- package/dist/lib/cover-publishing.js +102 -0
- package/dist/lib/cover-requests.d.ts +21 -0
- package/dist/lib/cover-requests.js +49 -0
- package/dist/lib/display-mode-controller.d.ts +4 -0
- package/dist/lib/display-mode-controller.js +26 -2
- package/dist/lib/ha-discovery.d.ts +27 -0
- package/dist/lib/ha-discovery.js +91 -0
- package/dist/lib/house-schedule-publishing.d.ts +23 -0
- package/dist/lib/house-schedule-publishing.js +71 -0
- package/dist/lib/house-schedule.d.ts +23 -0
- package/dist/lib/house-schedule.js +29 -0
- package/dist/lib/motion-policy.d.ts +9 -0
- package/dist/lib/motion-policy.js +45 -11
- package/dist/lib/motion-publishing.d.ts +28 -0
- package/dist/lib/motion-publishing.js +92 -0
- package/dist/lib/occupancy-publishing.d.ts +10 -0
- package/dist/lib/occupancy-publishing.js +45 -0
- package/dist/lib/open-close-cover.d.ts +92 -0
- package/dist/lib/open-close-cover.js +287 -0
- package/dist/lib/publishing-node.d.ts +39 -0
- package/dist/lib/publishing-node.js +72 -0
- package/dist/lib/retained-topics.d.ts +10 -0
- package/dist/lib/retained-topics.js +19 -0
- package/dist/lib/room-controller.d.ts +9 -0
- package/dist/lib/room-controller.js +47 -56
- package/dist/lib/room-lighting-discovery.d.ts +20 -1
- package/dist/lib/room-lighting-discovery.js +135 -13
- package/dist/lib/room-publishing.d.ts +42 -0
- package/dist/lib/room-publishing.js +182 -0
- package/dist/lib/room-schedule.d.ts +8 -0
- package/dist/lib/room-schedule.js +41 -0
- package/dist/lib/settings.d.ts +2 -0
- package/dist/lib/settings.js +20 -0
- package/dist/lib/source-capability-controller.d.ts +8 -1
- package/dist/lib/source-capability-controller.js +29 -3
- package/dist/lib/theatre-activity-controller.d.ts +0 -1
- package/dist/lib/theatre-activity-controller.js +27 -24
- package/dist/lib/theatre-ha-discovery.d.ts +3 -4
- package/dist/lib/theatre-ha-discovery.js +46 -36
- package/dist/lib/theatre-state-contract.d.ts +6 -0
- package/dist/lib/theatre-state-contract.js +83 -47
- package/dist/lib/theatre-state.d.ts +1 -1
- package/dist/lib/theatre-state.js +1 -1
- package/dist/lib/topic-names.d.ts +4 -0
- package/dist/lib/topic-names.js +31 -0
- package/dist/nodes/activity-lighting-controller.js +5 -3
- package/dist/nodes/adapter.d.ts +6 -1
- package/dist/nodes/adapter.js +65 -1
- package/dist/nodes/avr-controller.html +59 -5
- package/dist/nodes/avr-controller.js +74 -4
- package/dist/nodes/backlighting-controller.js +5 -3
- package/dist/nodes/cover-controller.d.ts +3 -0
- package/dist/nodes/cover-controller.html +181 -0
- package/dist/nodes/cover-controller.js +178 -0
- package/dist/nodes/cover-group.d.ts +3 -0
- package/dist/nodes/cover-group.html +89 -0
- package/dist/nodes/cover-group.js +84 -0
- package/dist/nodes/flows-started.d.ts +4 -0
- package/dist/nodes/flows-started.js +39 -0
- package/dist/nodes/house-schedule-mqtt.d.ts +3 -0
- package/dist/nodes/house-schedule-mqtt.html +61 -0
- package/dist/nodes/house-schedule-mqtt.js +80 -0
- package/dist/nodes/house-schedule.d.ts +3 -0
- package/dist/nodes/house-schedule.html +31 -0
- package/dist/nodes/house-schedule.js +51 -0
- package/dist/nodes/motion-policy.html +81 -5
- package/dist/nodes/motion-policy.js +69 -8
- package/dist/nodes/occupancy-fusion.html +69 -14
- package/dist/nodes/occupancy-fusion.js +46 -4
- package/dist/nodes/publishing-lifecycle.d.ts +25 -0
- package/dist/nodes/publishing-lifecycle.js +38 -0
- package/dist/nodes/room-controller.html +49 -5
- package/dist/nodes/room-controller.js +67 -8
- package/dist/nodes/shared-schedule.d.ts +6 -0
- package/dist/nodes/shared-schedule.js +15 -0
- package/dist/nodes/source-capability-controller.js +5 -3
- package/dist/nodes/theatre-activity-controller.html +1 -3
- package/dist/nodes/theatre-activity-controller.js +1 -2
- package/dist/nodes/theatre-state-contract.html +28 -5
- package/dist/nodes/theatre-state-contract.js +22 -4
- package/examples/Cover control.json +380 -0
- package/examples/Cover pair.json +230 -0
- package/examples/Home theatre activity.json +4 -4
- package/examples/House schedule.json +164 -0
- package/examples/Room lighting.json +4 -3
- package/package.json +6 -2
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "example-house-schedule-house-schedule-example",
|
|
4
|
+
"type": "comment",
|
|
5
|
+
"name": "House schedule example",
|
|
6
|
+
"info": "A house schedule shared by two rooms. Both room controllers choose the house schedule as their Schedule and follow it without wires. \"wake earlier\" changes the schedule through the optional MQTT node, which publishes its times (wire its output to an MQTT out node, and an MQTT in node on its set topics to its input).",
|
|
7
|
+
"x": 170,
|
|
8
|
+
"y": 40,
|
|
9
|
+
"wires": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "example-house-schedule-earlier",
|
|
13
|
+
"type": "inject",
|
|
14
|
+
"name": "wake earlier",
|
|
15
|
+
"props": [
|
|
16
|
+
{
|
|
17
|
+
"p": "lighting",
|
|
18
|
+
"v": "{\"kind\":\"schedule\",\"wakeTime\":\"06:30\"}",
|
|
19
|
+
"vt": "json"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"repeat": "",
|
|
23
|
+
"crontab": "",
|
|
24
|
+
"once": false,
|
|
25
|
+
"onceDelay": 0.1,
|
|
26
|
+
"topic": "",
|
|
27
|
+
"x": 130,
|
|
28
|
+
"y": 120,
|
|
29
|
+
"wires": [
|
|
30
|
+
[
|
|
31
|
+
"example-house-schedule-mqtt"
|
|
32
|
+
]
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "example-house-schedule-mqtt",
|
|
37
|
+
"type": "home-house-schedule-mqtt",
|
|
38
|
+
"name": "",
|
|
39
|
+
"schedule": "example-house-schedule-house",
|
|
40
|
+
"discovery": true,
|
|
41
|
+
"discoveryPrefix": "homeassistant",
|
|
42
|
+
"idScheme": "node",
|
|
43
|
+
"x": 340,
|
|
44
|
+
"y": 120,
|
|
45
|
+
"wires": [
|
|
46
|
+
[
|
|
47
|
+
"example-house-schedule-publications"
|
|
48
|
+
]
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "example-house-schedule-living",
|
|
53
|
+
"type": "home-room-lighting-controller",
|
|
54
|
+
"name": "living room",
|
|
55
|
+
"area": "",
|
|
56
|
+
"displayName": "",
|
|
57
|
+
"targets": "[{\"id\":\"main\",\"stateTopic\":\"room/light/main\",\"commandTopic\":\"room/light/main/set\"}]",
|
|
58
|
+
"maxBrightnessPct": 100,
|
|
59
|
+
"maxColorTempKelvin": 6500,
|
|
60
|
+
"sleepBrightnessPct": 1,
|
|
61
|
+
"sleepColorTempKelvin": 2200,
|
|
62
|
+
"initialTransitionSeconds": 1,
|
|
63
|
+
"refreshTransitionSeconds": 60,
|
|
64
|
+
"refreshSeconds": 60,
|
|
65
|
+
"initialSleep": false,
|
|
66
|
+
"x": 600,
|
|
67
|
+
"y": 100,
|
|
68
|
+
"wires": [
|
|
69
|
+
[
|
|
70
|
+
"example-house-schedule-living-commands"
|
|
71
|
+
]
|
|
72
|
+
],
|
|
73
|
+
"wakeTime": "07:00",
|
|
74
|
+
"bedTime": "23:00",
|
|
75
|
+
"publishState": false,
|
|
76
|
+
"discovery": false,
|
|
77
|
+
"idScheme": "node",
|
|
78
|
+
"houseSchedule": "example-house-schedule-house"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "example-house-schedule-bedroom",
|
|
82
|
+
"type": "home-room-lighting-controller",
|
|
83
|
+
"name": "bedroom",
|
|
84
|
+
"area": "",
|
|
85
|
+
"displayName": "",
|
|
86
|
+
"targets": "[{\"id\":\"main\",\"stateTopic\":\"room/light/main\",\"commandTopic\":\"room/light/main/set\"}]",
|
|
87
|
+
"maxBrightnessPct": 100,
|
|
88
|
+
"maxColorTempKelvin": 6500,
|
|
89
|
+
"sleepBrightnessPct": 1,
|
|
90
|
+
"sleepColorTempKelvin": 2200,
|
|
91
|
+
"initialTransitionSeconds": 1,
|
|
92
|
+
"refreshTransitionSeconds": 60,
|
|
93
|
+
"refreshSeconds": 60,
|
|
94
|
+
"initialSleep": false,
|
|
95
|
+
"x": 600,
|
|
96
|
+
"y": 160,
|
|
97
|
+
"wires": [
|
|
98
|
+
[
|
|
99
|
+
"example-house-schedule-bedroom-commands"
|
|
100
|
+
]
|
|
101
|
+
],
|
|
102
|
+
"wakeTime": "07:00",
|
|
103
|
+
"bedTime": "23:00",
|
|
104
|
+
"publishState": false,
|
|
105
|
+
"discovery": false,
|
|
106
|
+
"idScheme": "node",
|
|
107
|
+
"houseSchedule": "example-house-schedule-house"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "example-house-schedule-living-commands",
|
|
111
|
+
"type": "debug",
|
|
112
|
+
"name": "living room commands",
|
|
113
|
+
"active": true,
|
|
114
|
+
"tosidebar": true,
|
|
115
|
+
"console": false,
|
|
116
|
+
"tostatus": false,
|
|
117
|
+
"complete": "true",
|
|
118
|
+
"targetType": "full",
|
|
119
|
+
"statusVal": "",
|
|
120
|
+
"statusType": "auto",
|
|
121
|
+
"x": 850,
|
|
122
|
+
"y": 100,
|
|
123
|
+
"wires": []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "example-house-schedule-bedroom-commands",
|
|
127
|
+
"type": "debug",
|
|
128
|
+
"name": "bedroom commands",
|
|
129
|
+
"active": true,
|
|
130
|
+
"tosidebar": true,
|
|
131
|
+
"console": false,
|
|
132
|
+
"tostatus": false,
|
|
133
|
+
"complete": "true",
|
|
134
|
+
"targetType": "full",
|
|
135
|
+
"statusVal": "",
|
|
136
|
+
"statusType": "auto",
|
|
137
|
+
"x": 850,
|
|
138
|
+
"y": 160,
|
|
139
|
+
"wires": []
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "example-house-schedule-publications",
|
|
143
|
+
"type": "debug",
|
|
144
|
+
"name": "MQTT publications",
|
|
145
|
+
"active": true,
|
|
146
|
+
"tosidebar": true,
|
|
147
|
+
"console": false,
|
|
148
|
+
"tostatus": false,
|
|
149
|
+
"complete": "true",
|
|
150
|
+
"targetType": "full",
|
|
151
|
+
"statusVal": "",
|
|
152
|
+
"statusType": "auto",
|
|
153
|
+
"x": 560,
|
|
154
|
+
"y": 240,
|
|
155
|
+
"wires": []
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "example-house-schedule-house",
|
|
159
|
+
"type": "home-house-schedule",
|
|
160
|
+
"name": "house",
|
|
161
|
+
"wakeTime": "07:00",
|
|
162
|
+
"bedTime": "23:00"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
],
|
|
109
109
|
"repeat": "",
|
|
110
110
|
"crontab": "",
|
|
111
|
-
"once":
|
|
112
|
-
"onceDelay":
|
|
111
|
+
"once": true,
|
|
112
|
+
"onceDelay": 3,
|
|
113
113
|
"topic": "",
|
|
114
114
|
"x": 150,
|
|
115
115
|
"y": 280,
|
|
@@ -191,7 +191,8 @@
|
|
|
191
191
|
"wakeTime": "07:00",
|
|
192
192
|
"bedTime": "23:00",
|
|
193
193
|
"publishState": false,
|
|
194
|
-
"discovery": false
|
|
194
|
+
"discovery": false,
|
|
195
|
+
"idScheme": "node"
|
|
195
196
|
},
|
|
196
197
|
{
|
|
197
198
|
"id": "example-room-lighting-room-commands",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avantics/node-red-home-automation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Deterministic home automation components for Node-RED",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|
|
@@ -53,7 +53,11 @@
|
|
|
53
53
|
"home-activity-lighting-controller": "dist/nodes/activity-lighting-controller.js",
|
|
54
54
|
"home-backlighting-controller": "dist/nodes/backlighting-controller.js",
|
|
55
55
|
"home-theatre-activity-controller": "dist/nodes/theatre-activity-controller.js",
|
|
56
|
-
"home-theatre-state-contract": "dist/nodes/theatre-state-contract.js"
|
|
56
|
+
"home-theatre-state-contract": "dist/nodes/theatre-state-contract.js",
|
|
57
|
+
"home-house-schedule": "dist/nodes/house-schedule.js",
|
|
58
|
+
"home-cover-controller": "dist/nodes/cover-controller.js",
|
|
59
|
+
"home-cover-group": "dist/nodes/cover-group.js",
|
|
60
|
+
"home-house-schedule-mqtt": "dist/nodes/house-schedule-mqtt.js"
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
"devDependencies": {
|