The current value of the characteristic.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
This is the last value that the system saw for the characteristic. Because multiple apps can access a given home, this value may change without your app changing it. To be sure you have the current value, call
read and wait for the response before checking the
You can also learn about external changes to the
value when they happen by adopting the
HMAccessory protocol. Call the
enable method to enable updates for a particular characteristic. Then implement the
accessory(_: method to receive the updates. You only receive updates for changes made outside your app, for example by Apple’s Home app, or by the accessory itself.
How you interpret the value depends on the
characteristic. From this, you can tell what the value represents, and infer whether the value contain a string, integer, floating point number, or Boolean. The characteristic’s
metadata gives you additional information about how to interpret and present the