diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index d8b602a9c..d88664405 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -15,6 +15,7 @@ Update codebase to use ES6 - Fix or disable eslint errors Add prettier code formatting Add husky and lint-staged +Fix: Add support for lazy and internal_attributes in service notifications to Manager (#768) Fix: combine multi-entity and expressions with duplicate attribute name, by enabling expression over object_id (which are not duplicated in a attribute mapping contrary to name) (#941) Fix: bug in legacy and JEXL expression that was not converting "0" to 0 -Fix: support for mapping different attributes to the same entity_name +Fix: support for mapping different attributes to the same entity_name \ No newline at end of file diff --git a/lib/services/common/iotManagerService.js b/lib/services/common/iotManagerService.js index c39acd721..7d8e9ef24 100644 --- a/lib/services/common/iotManagerService.js +++ b/lib/services/common/iotManagerService.js @@ -50,6 +50,8 @@ function register(callback) { service_path: service.subservice, attributes: service.attributes, static_attributes: service.staticAttributes, + internal_attributes: service.internalAttributes, + lazy: service.lazy, commands: service.commands, description: service.description, timezone: service.timezone, diff --git a/test/unit/examples/iotamRequests/registrationWithGroups.json b/test/unit/examples/iotamRequests/registrationWithGroups.json index 9fd0a7a29..97804d160 100644 --- a/test/unit/examples/iotamRequests/registrationWithGroups.json +++ b/test/unit/examples/iotamRequests/registrationWithGroups.json @@ -18,7 +18,18 @@ "type": "Boolean" } ], - "commands":[{"name":"wheel1","type":"Wheel"}] + "lazy": [ + { + "name": "luminescence", + "type": "Lumens" + } + ], + "commands":[ + { + "name": "wheel1", + "type": "Wheel" + } + ] } ] } diff --git a/test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json b/test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json index c0afb7fd7..75957ea55 100644 --- a/test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json +++ b/test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json @@ -17,7 +17,18 @@ "type": "Boolean" } ], - "commands":[{"name":"wheel1","type":"Wheel"}] + "commands": [ + { + "name": "wheel1", + "type": "Wheel" + } + ], + "lazy": [ + { + "name": "luminescence", + "type": "Lumens" + } + ] } ] } diff --git a/test/unit/examples/iotamRequests/registrationWithStaticGroups.json b/test/unit/examples/iotamRequests/registrationWithStaticGroups.json index 4baaf459b..e135b54a8 100644 --- a/test/unit/examples/iotamRequests/registrationWithStaticGroups.json +++ b/test/unit/examples/iotamRequests/registrationWithStaticGroups.json @@ -25,7 +25,12 @@ "values": "123,12" } ], - "commands":[{"name":"wheel1","type":"Wheel"}] + "commands": [ + { + "name": "wheel1", + "type": "Wheel" + } + ] } ] }