Skip to content

Commit

Permalink
Add support for A03 siren.
Browse files Browse the repository at this point in the history
Issue #2635
  • Loading branch information
make-all committed Jan 11, 2025
1 parent 630696b commit 9e96108
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -802,3 +802,4 @@ Further device support has been made with the assistance of users. Please consid
- [akop](https://github.com/akop) for contributing support for Ledvance Smart+ Planon plus backlight.
- [vytux-com](https://github.com/vytux-com) for contributing support for 3A Nue 3 speed fan and light controller.
- [nicolas-sora](https://github.com/nicolas-sora) for assisting with support for Wasserstein AquaPal water monitor.
- [theqz](https://github.com/theqz) for assisting with support for A03 siren.
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ work reliably, even if listed below.

### Sirens

- A03 siren
- Neo Coolcam Siren with temperature and humidity alert (NAS-AB02W)
- Orion Grid Connect SWS07HA indoor siren
- Orion Grid Connect outdoor siren (also Elesion NX-4980)
Expand Down
97 changes: 97 additions & 0 deletions custom_components/tuya_local/devices/a03_siren.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Siren
products:
- id: ztoh9ka787lzjkpy
model: A03
entities:
- entity: siren
dps:
- id: 5
type: string
name: volume_level
mapping:
- dps_val: mute
value: 0.0
- dps_val: low
value: 0.33
- dps_val: middle
value: 0.67
- dps_val: high
value: 1.0
- id: 7
type: integer
name: duration
unit: s
range:
min: 1
max: 380
- id: 13
type: boolean
name: switch
- id: 21
type: string
name: tone
mapping:
- dps_val: mode_1
value: Mode 1
- dps_val: mode_2
value: Mode 2
- dps_val: mode_3
value: Mode 3
- dps_val: mode_4
value: Mode 4
- dps_val: mode_5
value: Mode 5
- dps_val: mode_6
value: Mode 6
- dps_val: mode_7
value: Mode 7
- dps_val: mode_8
value: Mode 8
- dps_val: mode_9
value: Mode 9
- dps_val: mode_10
value: Mode 10
- dps_val: mode_11
value: Mode 11
- dps_val: mode_12
value: Mode 12
- dps_val: mode_13
value: Mode 13
- dps_val: mode_14
value: Mode 14
- dps_val: mode_15
value: Mode 15
- dps_val: mode_16
value: Mode 16
- dps_val: mode_17
value: Mode 17
- dps_val: mode_18
value: Mode 18
- dps_val: mode_19
value: Mode 19
- dps_val: mode_20
value: Mode 20
- dps_val: mode_21
value: Mode 21
- dps_val: mode_22
value: Mode 22
- dps_val: mode_23
value: Mode 23
- dps_val: mode_24
value: Mode 24
- dps_val: mode_25
value: Mode 25
- dps_val: mode_26
value: Mode 26
- dps_val: mode_27
value: Mode 27
- dps_val: mode_28
value: Mode 28
- dps_val: mode_29
value: Mode 29
- dps_val: mode_30
value: Mode 30
- dps_val: mode_31
value: Mode 31
- dps_val: mode_32
value: Mode 32

0 comments on commit 9e96108

Please sign in to comment.