04-19-2022 02:17 PM - edited 04-22-2022 04:51 PM
I am developing a door sensor that runs on batteries. When it is close to running out, or fully depleted, how can I trigger a voice response to prompt the user to change the batteries?
Answered! Go to the Recommended Answer.
04-25-2022 07:59 AM
For door sensor device type we can make use of the EnergyStorage trait for knowing the status of the battery. From the information provided in the question it’s clear that the sensor runs on a non-rechargeable battery hence, we would need to enable the “queryOnlyEnergyStorage” to “TRUE” and “isRechargeable” to “FALSE” as part of the SYNC. For knowing the level of battery capacity we would need to provide the state or level charge through the “descriptiveCapacityRemaining” as part of the QUERY. More information in regards to this can be here.
04-25-2022 07:59 AM
For door sensor device type we can make use of the EnergyStorage trait for knowing the status of the battery. From the information provided in the question it’s clear that the sensor runs on a non-rechargeable battery hence, we would need to enable the “queryOnlyEnergyStorage” to “TRUE” and “isRechargeable” to “FALSE” as part of the SYNC. For knowing the level of battery capacity we would need to provide the state or level charge through the “descriptiveCapacityRemaining” as part of the QUERY. More information in regards to this can be here.