|
42 | 42 | "!doc": "Gets the tags from this item",
|
43 | 43 | "!type": "[string]"
|
44 | 44 | },
|
| 45 | + "groupNames": { |
| 46 | + "!doc": "Gets the groups for this item", |
| 47 | + "!type": "[string]" |
| 48 | + }, |
45 | 49 | "getMetadataValue": {
|
46 | 50 | "!doc": "Gets metadata values for this item.",
|
47 | 51 | "!type": "fn(namespace: string) -> string"
|
|
154 | 158 | "!doc": "This method retrieves a single item from the registry.",
|
155 | 159 | "!type": "fn(name: string) -> Item"
|
156 | 160 | },
|
| 161 | + "getItems": { |
| 162 | + "!doc": "Returns all items.", |
| 163 | + "!type": "fn() -> [Item]" |
| 164 | + }, |
157 | 165 | "getItemsByTag": {
|
158 | 166 | "!doc": "Returns a list of items containing all of the given tags.",
|
159 | 167 | "!type": "fn(tag?: [string]) -> [Item]"
|
|
273 | 281 | "!type": "fn() -> string"
|
274 | 282 | }
|
275 | 283 | },
|
| 284 | + "TriggerType": { |
| 285 | + "cronExpression": { |
| 286 | + "!doc": "The cron expression for the event (timer.GenericCronTrigger)", |
| 287 | + "!type": "string" |
| 288 | + }, |
| 289 | + "time": { |
| 290 | + "!doc": "The time of the event in \"hh:mm\" format (timer.TimeOfDayTrigger)", |
| 291 | + "!type": "string" |
| 292 | + }, |
| 293 | + "itemName": { |
| 294 | + "!doc": "The name of the item that triggered the event (core.ItemStateUpdateTrigger, core.ItemStateChangeTrigger, core.ItemCommandTrigger)", |
| 295 | + "!type": "string" |
| 296 | + }, |
| 297 | + "state": { |
| 298 | + "!doc": "The state of the item that triggered the event (core.ItemStateUpdateTrigger, core.ItemStateChangeTrigger)", |
| 299 | + "!type": "string" |
| 300 | + }, |
| 301 | + "previousState": { |
| 302 | + "!doc": "The previous state of the item that triggered the event (core.ItemStateChangeTrigger)", |
| 303 | + "!type": "string" |
| 304 | + }, |
| 305 | + "command": { |
| 306 | + "!doc": "The command of the item that triggered the event (core.ItemCommandTrigger)", |
| 307 | + "!type": "string" |
| 308 | + }, |
| 309 | + "channelUID": { |
| 310 | + "!doc": "The channelUID of the channel that triggered the event (core.ChannelEventTrigger)", |
| 311 | + "!type": "string" |
| 312 | + }, |
| 313 | + "event": { |
| 314 | + "!doc": "The event of the channel that triggered the event (core.ChannelEventTrigger)", |
| 315 | + "!type": "string" |
| 316 | + }, |
| 317 | + "eventTopic": { |
| 318 | + "!doc": "The topic of the event (core.GenericEventTrigger)", |
| 319 | + "!type": "string" |
| 320 | + }, |
| 321 | + "eventSource": { |
| 322 | + "!doc": "The Item name, ChannelUID, ThingUID, etc (core.GenericEventTrigger)", |
| 323 | + "!type": "string" |
| 324 | + }, |
| 325 | + "eventTypes": { |
| 326 | + "!doc": "The event type (core.GenericEventTrigger)", |
| 327 | + "!type": "string" |
| 328 | + } |
| 329 | + }, |
276 | 330 |
|
277 | 331 | "AudioActions": {
|
278 | 332 | "decreaseMasterVolume": { "!type": "fn(percent: float)" },
|
|
430 | 484 | "require": {
|
431 | 485 | "!doc": "Scripts may include standard NPM based libraries by using CommonJS require. The library search path will look in automation/js/node_modules in the user configuration directory.",
|
432 | 486 | "!type": "fn(module: string) -> ?"
|
| 487 | + }, |
| 488 | + "event": { |
| 489 | + "!doc": "Data passed from triggers.", |
| 490 | + "!type": "TriggerType" |
433 | 491 | }
|
434 | 492 | }
|
0 commit comments