Tuya iOS Smart Life App SDK 5.15.0
ThingSmartHomeKitDevice Class Reference

HMAccessory's wrapped classes, defined some Thing Inc HomeKit Device properties More...

#import <ThingSmartHomeKitDevice.h>

Inheritance diagram for ThingSmartHomeKitDevice:

Instance Methods

(instancetype) - initWithAccessory:
 
(void) - updateWithCompletionHandler:
 
(BOOL) - isBLELinkType
 
(instancetype) - initWithAccessory:
 
(void) - updateWithCompletionHandler:
 
(BOOL) - isBLELinkType
 

Properties

BOOL reachable
 A Boolean value indicating whether the accessory can be communicated with in the current network environment. More...
 
BOOL bridged
 This property indicates whether this accessory is behind a bridge. If it is TRUE, the accessory cannot be removed from the home directly. Only the bridge that owns this accessory can be removed and removing the bridge will remove this accessory from the home. More...
 
BOOL isThingDevice
 A Boolean value indicating whether the device is Thing Inc Device. More...
 
HMCharacteristic * devId
 
HMCharacteristic * productID
 
HMCharacteristic * UUID
 
HMCharacteristic * token
 
HMCharacteristic * active
 
HMCharacteristic * mac
 The BLE device mac address. More...
 
HMCharacteristic * linkType
 The BLE device link type value is "BLE". More...
 
HMCharacteristic * bleAdv
 The BLE Adv. More...
 
BOOL isMatterDevice
 A Boolean value indicating whether the device is Matter Device. More...
 
NSNumber * matterNodeID
 The node identifier used to identify the device on Apple’s Matter fabric. More...
 
HMAccessory * accessory
 Accessory is passed in through the initWithAccessory: More...
 

Detailed Description

HMAccessory's wrapped classes, defined some Thing Inc HomeKit Device properties

Definition at line 15 of file ThingSmartHomeKitDevice.h.

Method Documentation

◆ initWithAccessory: [1/2]

- (instancetype) initWithAccessory: (HMAccessory *)  accessory

Wrapped with HMAccessory object, init Tuy Inc Device characteristics

Parameters
accessoryA home automation accessory, like a garage door opener or a thermostat.

◆ initWithAccessory: [2/2]

- (instancetype) initWithAccessory: (HMAccessory *)  accessory

Wrapped with HMAccessory object, init Tuy Inc Device characteristics

Parameters
accessoryA home automation accessory, like a garage door opener or a thermostat.

◆ isBLELinkType [1/2]

- (BOOL) isBLELinkType

◆ isBLELinkType [2/2]

- (BOOL) isBLELinkType

◆ updateWithCompletionHandler: [1/2]

- (void) updateWithCompletionHandler: (void(^)(NSError *_Nullable error))  handler

Update all HMCharacteristic propertys.

Parameters
handlerAll update completed.
Note
HMCharacteristic property should update to get the latest values.

◆ updateWithCompletionHandler: [2/2]

- (void) updateWithCompletionHandler: (void(^)(NSError *_Nullable error))  handler

Update all HMCharacteristic propertys.

Parameters
handlerAll update completed.
Note
HMCharacteristic property should update to get the latest values.

Property Documentation

◆ accessory

- (HMAccessory *) accessory
readnonatomicstrong

Accessory is passed in through the initWithAccessory:

Definition at line 66 of file ThingSmartHomeKitDevice.h.

◆ active

- (HMCharacteristic *) active
readnonatomicstrong

Status for configuring the device to connect to the cloud.

Note
Int Value. 0 is device not configured, 1 is device is start configuring. Invoke readValueWithCompletionHandler: get the latest value.

Definition at line 48 of file ThingSmartHomeKitDevice.h.

◆ bleAdv

- (HMCharacteristic *) bleAdv
readnonatomicstrong

The BLE Adv.

Definition at line 57 of file ThingSmartHomeKitDevice.h.

◆ bridged

- (BOOL) bridged
readnonatomicassign

This property indicates whether this accessory is behind a bridge. If it is TRUE, the accessory cannot be removed from the home directly. Only the bridge that owns this accessory can be removed and removing the bridge will remove this accessory from the home.

Definition at line 25 of file ThingSmartHomeKitDevice.h.

◆ devId

- (HMCharacteristic *) devId
readnonatomicstrong

Device id, only generated after the cloud binding

Note
Invoke readValueWithCompletionHandler: get the latest value.

Definition at line 32 of file ThingSmartHomeKitDevice.h.

◆ isMatterDevice

- (BOOL) isMatterDevice
readnonatomicassign

A Boolean value indicating whether the device is Matter Device.

Definition at line 60 of file ThingSmartHomeKitDevice.h.

◆ isThingDevice

- (BOOL) isThingDevice
readnonatomicassign

A Boolean value indicating whether the device is Thing Inc Device.

Definition at line 28 of file ThingSmartHomeKitDevice.h.

◆ linkType

- (HMCharacteristic *) linkType
readnonatomicstrong

The BLE device link type value is "BLE".

Definition at line 54 of file ThingSmartHomeKitDevice.h.

◆ mac

- (HMCharacteristic *) mac
readnonatomicstrong

The BLE device mac address.

Definition at line 51 of file ThingSmartHomeKitDevice.h.

◆ matterNodeID

- (NSNumber *) matterNodeID
readnonatomiccopy

The node identifier used to identify the device on Apple’s Matter fabric.

Definition at line 63 of file ThingSmartHomeKitDevice.h.

◆ productID

- (HMCharacteristic *) productID
readnonatomicstrong

Identification of equipment categories.

Note
Invoke readValueWithCompletionHandler: get the latest value.

Definition at line 36 of file ThingSmartHomeKitDevice.h.

◆ reachable

- (BOOL) reachable
readnonatomicassign

A Boolean value indicating whether the accessory can be communicated with in the current network environment.

Definition at line 18 of file ThingSmartHomeKitDevice.h.

◆ token

- (HMCharacteristic *) token
readnonatomicstrong

Token for configuring the device to connect to the cloud.

Note
String value. If not confige to the cloud will nil. Invoke readValueWithCompletionHandler: get the latest value. Invoke writeValue:completionHandler: to start configuring.

Definition at line 44 of file ThingSmartHomeKitDevice.h.

◆ UUID

- (HMCharacteristic *) UUID
readnonatomicstrong

Unique identification of the device.

Note
Invoke readValueWithCompletionHandler: get the latest value.

Definition at line 40 of file ThingSmartHomeKitDevice.h.


The documentation for this class was generated from the following files: