[boschshc] Support smoke detector (#13760)
* Add smoke detector service and add it to twinguard handler * Add handler for smoke detector * Support for smoke detector added smoke detector device with SmokeDetectorCheckService added SmokeDetectorCheckService to TwinguardHandler added tests for smoke detector code updated smoke detector code to latest boschshc version after cherry-picks of initial code from Christian Oeing * re-generate i18n file, refactoring of smoke detector code to use abstract base classes * Fix typos * Add unit test for PlayPauseType commands * Add unit test for SmokeDetectorCheckState * Re-add null annotation * Fix warning Signed-off-by: Christian Oeing <christian.oeing@slashgames.org> Signed-off-by: Gerd Zanker <gerd.zanker@web.de> Signed-off-by: David Pace <dev@davidpace.de>
This commit is contained in:
@@ -17,6 +17,7 @@ Binding for the Bosch Smart Home.
|
||||
- [Security Camera Eyes](#security-camera-eyes)
|
||||
- [Intrusion Detection System](#intrusion-detection-system)
|
||||
- [Smart Bulb](#smart-bulb)
|
||||
- [Smoke Detector](#smoke-detector)
|
||||
- [Limitations](#limitations)
|
||||
- [Discovery](#discovery)
|
||||
- [Bridge Configuration](#bridge-configuration)
|
||||
@@ -68,6 +69,7 @@ The Twinguard smoke detector warns you in case of fire and constantly monitors t
|
||||
| combined-rating | String | ☐ | Combined rating of the air quality. |
|
||||
| battery-level | Number | ☐ | Current battery level percentage as integer number. Bosch-specific battery levels are mapped to numbers as follows: `OK`: 100, `LOW_BATTERY`: 10, `CRITICAL_LOW`: 1, `CRITICALLY_LOW_BATTERY`: 1, `NOT_AVAILABLE`: `UNDEF`. |
|
||||
| low-battery | Switch | ☐ | Indicates whether the battery is low (`ON`) or OK (`OFF`). |
|
||||
| smoke-check | String | ☑ | State of the smoke check. Also used to request a new smoke check. |
|
||||
|
||||
### Door/Window Contact
|
||||
|
||||
@@ -191,6 +193,17 @@ A smart bulb connected to the bridge via Zigbee such as a Ledvance Smart+ bulb.
|
||||
| brightness | Dimmer | ☑ | Regulates the brightness on a percentage scale from 0 to 100%. |
|
||||
| color | Color | ☑ | The color of the emitted light. |
|
||||
|
||||
### Smoke detector
|
||||
|
||||
The smoke detector warns you in case of fire.
|
||||
|
||||
**Thing Type ID**: `smoke-detector`
|
||||
|
||||
| Channel Type ID | Item Type | Writable | Description |
|
||||
| ------------------ | -------------------- | :------: | ------------------------------------------------------------------------------------------------- |
|
||||
| smoke-check | String | ☑ | State of the smoke check. Also used to request a new smoke check. |
|
||||
|
||||
|
||||
## Limitations
|
||||
|
||||
- Discovery of Things
|
||||
|
||||
Reference in New Issue
Block a user