-
-
Notifications
You must be signed in to change notification settings - Fork 629
Presenting Erroneous Accessory State to the User
Andi edited this page Sep 28, 2022
·
14 revisions
This page is still in DRAFT state
TLDR: Your accessory should always be reachable and fully operational.
// general motivation to fail as gracefully as possible and to guarantee best uptime possible.
Some services expose characteristics that can be used to encode a "not-ready" state (e.g. AirQuality characteristic has a unknown
value; or e.g. of a sensor use the not-detected state).
Use the active characteristic available on most services.
In severe error cases that require user attention use HapStatusError
with values of HAPStatus
(e.g. service communication failure, most of the others have special meaning).