|  Developer
Updated on December 5, 2022

hub.item.dictionary.updated

  • Broadcast sent when some changes happened to an dictionary item. This broadcast is sent instead of hub.item.updated broadcast.
Initiators
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.item.dictionary.updated",
    "result": {
        "_id": "588b7eb528b12d03be86f36f",
        "fwTimestampMs": 16300011122244,
        "deviceId": "5df0b9e4dfdabe58a5a60020",
        "deviceName": "Touchscreen Deadbolt",
        "deviceCategory" : "door_lock",
        "deviceSubcategory" : "",
        "roomName" : "",
        "userNotification": false,
        "serviceNotification":false,
        "notifications": [ "12314324", "978343" ],
        "deviceArmed": false,
        "name": "user_codes",
        "operation":"added",
        "element": {
            "1": {
                "value": {
                    "code": "Alex",
                    "name": "1234"
                }
            }
        }
    }
}				
			
Edit
Field Type Required Description
_id string + an id of the item
deviceId string + related device._id
deviceName string + related device.name
deviceCategory string + a device category
deviceSubcategory string + a device subcategory
roomName string + a room name
userNotification bool + Special flag for Cloud for converting this broadcast to User Notification
notifications JsonArray + List of user ids for sending broadcast notification to users( null – all users / – no one )
name string + see item.name(type)
deviceArmed bool related device.armed state
serviceNotification bool + Special mark from related device
fwTimestampMs int64 + A timestamp in milliseconds when the event has happened.
elementsMaxNumber int + max allowed elements of a dictionary value
stringRestriction string Regexp restriction for a value in item of value type
userCodeRestriction string Regexp restriction for a field in any value of value type. E.g. it’s used in item .
userCodeModes JsonArray List of available pin code modes. It’s used in item.
operation string + The operation field defines the initiator of this broadcast:
hub.item.dictionary.value.add
hub.item.dictionary.value.set
hub.item.dictionary.value.remove
element JsonObject + The element what was updated. It contains element number and element value.
element.N.value any + The element value.