cancel
Showing results for 
Search instead for 
Did you mean: 
Replies are disabled for this topic. Start a new one or visit our Help Center.

Prompting users to change batteries

GoogleFAQ
Solutions Expert
Solutions Expert

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?

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

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.

View Recommended Answer in original post

1 REPLY 1

sipriyadarshi
Solutions Expert
Solutions Expert

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.