File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,11 @@ const position = val => {
166
166
//---DECORATORS---
167
167
168
168
const defaultDecorator = localState => {
169
+ localState . name = localState . friendlyName
170
+ localState . type = localState . template
169
171
delete localState . friendlyName
170
172
delete localState . template
173
+
171
174
return localState
172
175
}
173
176
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ The _virtual smart home_ skill is available in the Amazon skill stores in the fo
28
28
- Blinds
29
29
- Garage Door Opener
30
30
- no separate account needed. Just link your existing Amazon account.
31
- - new virtual devices can simply be draged onto the Node-RED canvas and will
31
+ - new virtual devices can simply be dragged onto the Node-RED canvas and will
32
32
proactively be discovered by Alexa. No need to ask Alexa to discover devices.
33
33
- devices that are no longer needed can be removed from Alexa via the Node-RED
34
34
editor.
Original file line number Diff line number Diff line change @@ -157,6 +157,39 @@ <h3>Payload attributes</h3>
157
157
can be found in the 'import nodes' section underneath the 'import' menu.
158
158
</ p >
159
159
160
+ < h4 > General Attributes (always present)</ h4 >
161
+ < dl class = "message-properties" >
162
+ < dt
163
+ > payload.name
164
+ < span class = "property-type" > string</ span >
165
+ </ dt >
166
+ < dd > Name of the virtual device</ dd >
167
+ </ dl >
168
+
169
+ < dl class = "message-properties" >
170
+ < dt
171
+ > payload.type
172
+ < span class = "property-type" > string</ span >
173
+ </ dt >
174
+ < dd > Type of the virtual device</ dd >
175
+ </ dl >
176
+
177
+ < dl class = "message-properties" >
178
+ < dt
179
+ > payload.source
180
+ < span class = "property-type" > string</ span >
181
+ </ dt >
182
+ < dd
183
+ > < ul
184
+ > < li > 'alexa' if the device update was triggered by Alexa</ li >
185
+ < li
186
+ > 'device' if the device update was triggered by an incoming
187
+ message.</ li
188
+ >
189
+ </ ul > </ dd
190
+ >
191
+ </ dl >
192
+
160
193
< h4 > Switch</ h4 >
161
194
< dl class = "message-properties" >
162
195
< dt
You can’t perform that action at this time.
0 commit comments