Device Cloud Settings
Pre-requisite The user has to be signed in to perform the following operations.
Get Cloud settings for a device
To get the cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
Factory.deviceService.getDeviceCloudSettings(spaceId: String, deviceId: String) -> IVPublisher<DeviceCloudSettings>
Update AI cloud settings for a device
To update the AI cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional): The request object containing the AI cloud settings to be updated.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceCloudAISettings(spaceId: String, deviceId: String, wakeup: Bool, request: EventDetectionSettingsRequest?) -> IVPublisher<DeviceCloudSettings>
Update Notification cloud Settings for a Device
To update the notification cloud settings for a device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(optional): The request object containing the notification cloud settings to be updated.wakeup(required): Bool(If device is battery operated)
Factory.deviceService.updateDeviceCloudNotificationsSettings(spaceId: String, deviceId: String, wakeup: Bool, request: NotificationSettingsRequest?) -> IVPublisher<DeviceCloudSettings>
EventDetectionSettingsRequest carries motion, coolDown and two CloudAiDetections blocks — cloudAi and edgeAi — whose per-type flags are listed below. NotificationSettingsRequest carries one mute per notification type. Which flags a camera honours depends on its product line:
| Product | Detection flags (CloudAiDetections) | Notification flags |
|---|---|---|
| All | person, vehicle, animal (plus motion on the request itself) | mute, cameraOfflineMute, callMute |
| Home Security | person | doorbellMute |
| Baby | cry, temperature, humidity | cryMute, temperatureMute, humidityMute |
| Pet | pet | — |
| Bird | bird | birdNotification.birdDetectionMute / .birdIdentificationMute |
| Trail | wildlife | wildlifeNotification.wildlifeDetectionMute / .wildlifeIdentificationMute |
Activity zones for the monitored devices of a space are read from the Home Security → Alarm & Deterrence page.