Repository navigation
Add a glass_break binary sensor device class #1455
ProblemHome Assistant has no semantic binary-sensor device class for glass-break detectors. Integrations therefore have to classify them as something broader, commonly This loses important meaning. A vibration sensor may monitor an appliance, bed, package, machine, or subtle movement and is not inherently security-related. Likewise, One concrete example is the Alarm.com integration. It distinguishes:
However, all three currently map to This also affects automatic dashboard grouping. A genuine glass-break detector may appear outside the Security group because the frontend cannot identify its security purpose. ProposalAdd: BinarySensorDeviceClass.GLASS_BREAK = "glass_break"Suggested presentation:
The frontend should treat this class as security-related, including it in the Security group of automatic Areas dashboards. Integrations could then map dedicated acoustic or shock-based glass-break detectors to Why a dedicated class?Adding every This is also relevant beyond Alarm.com; glass-break detectors exist in Z-Wave and other security ecosystems. |
Replies: 5 comments 4 replies
|
Please list the existing core integrations that could leverage the new device class. We need about a handful of integrations before we add a new device class. We don't count integrations that can do anything, like template, MQTT, esphome, etc. We also don't count custom integrations. |
|
Ubiquity has sensors and sound detection events for breaking glass. |
|
Thanks — UniFi Protect is indeed one example. I found four additional existing core integrations with explicit glass-break semantics:
Together with UniFi Protect, that gives five existing core integrations which could use the proposed class. They also demonstrate the present inconsistency: the same security condition is represented as generic, sound, problem, or safety depending on the integration. Links: Best / Jonas |
|
We've discussed this proposal in the architecture meeting and decided to approve it. Please go ahead and make the needed PRs. |
|
Here are the followups for core to make use if it: And Alarm.com pyalarmdotcom/alarmdotcom#551 |
We've discussed this proposal in the architecture meeting and decided to approve it. Please go ahead and make the needed PRs.