|  Developer
Updated on November 21, 2021

hub.modes.notifications.set

  • Version: 2.0
  • Classes: UI
  • Title: House modes
  • Description: Set user IDs that will receive notifications
Edit
Field Type Required Description
modeId string + Id of the mode
all bool + enable/disable send notifications to all
userIds Array of string + List of user Ids that will receive notification

If all field is userIds field is ignored

Edit
  • Empty result or error
Edit
BroadcastDescription
Edit
Edit
				
					{
    "method": "hub.modes.notifications.set",
    "id": "_ID_",
    "params": {
        "modeId": "<modeId>",
        "all": false,
        "userIds": ["<userIdA>", "<userIdB>"]
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}