Skip to content

Commit

Permalink
Bcom intercom camera: add product id, and doorbell event
Browse files Browse the repository at this point in the history
- add proper product id (previous one looked like a device id)
- mark most dps optional. Original report had no dps logged, new issue
  has only dp 101.
- use dp 154 for doorbell pic, and make new doorbell event for dp 136.

Issue #2835
  • Loading branch information
make-all committed Feb 1, 2025
1 parent 2f05cd7 commit d98aea8
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions custom_components/tuya_local/devices/bcom_intercom_camera.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Doorbell
products:
- id: bf71b225dc6dd70835wlbt
- id: h3bhzu9m0ig80rdu
manufacturer: Bcom
model: Majic IPBox
entities:
Expand All @@ -10,7 +10,7 @@ entities:
name: record
type: boolean
optional: true
- id: 136
- id: 154
name: snapshot
type: base64
persist: false
Expand All @@ -24,12 +24,14 @@ entities:
- id: 115
name: motion_detected
type: base64
optional: true
sensitive: true
- entity: lock
name: Door lock
dps:
- id: 232
type: boolean
optional: true
name: lock
- entity: light
translation_key: indicator
Expand All @@ -45,6 +47,7 @@ entities:
dps:
- id: 103
type: boolean
optional: true
name: switch
- entity: switch
name: Watermark
Expand All @@ -53,6 +56,7 @@ entities:
dps:
- id: 104
type: boolean
optional: true
name: switch
- entity: select
name: Motion Detection
Expand All @@ -61,6 +65,7 @@ entities:
dps:
- id: 106
type: string
optional: true
name: option
mapping:
- dps_val: "0"
Expand All @@ -76,6 +81,7 @@ entities:
dps:
- id: 108
type: string
optional: true
name: option
mapping:
- dps_val: "0"
Expand All @@ -90,13 +96,15 @@ entities:
dps:
- id: 109
type: string
optional: true
name: sensor
- entity: sensor
name: SD status
category: diagnostic
dps:
- id: 110
type: integer
optional: true
name: sensor
- entity: button
name: SD format
Expand All @@ -105,13 +113,15 @@ entities:
dps:
- id: 111
type: boolean
optional: true
name: button
- entity: sensor
name: SD format state
category: diagnostic
dps:
- id: 117
type: integer
optional: true
name: sensor
- entity: select
name: Recording mode
Expand All @@ -120,6 +130,7 @@ entities:
dps:
- id: 151
type: string
optional: true
name: option
mapping:
- dps_val: "1"
Expand All @@ -132,6 +143,7 @@ entities:
dps:
- id: 162
type: boolean
optional: true
name: button
- entity: sensor
name: Channel
Expand All @@ -140,4 +152,20 @@ entities:
dps:
- id: 231
type: string
optional: true
name: sensor
- entity: event
class: doorbell
dps:
- id: 136
type: string
name: event
optional: true
mapping:
- dps_val: null
value: null
- value: ring
- id: 136
type: string
optional: true
name: message

0 comments on commit d98aea8

Please sign in to comment.