ZG-204L is a similar device, with the illuminance on a different dp. - make dp 6 optional, and redirect to dp 12 when missing. Issue #3019
@@ -3,6 +3,8 @@ products:
- id: vwqnz1sn
manufacturer: Moes
model: XZ-CGV3
+ - id: 3towulqd
+ model: ZG-204L
entities:
- entity: binary_sensor
name: Motion detected
@@ -22,11 +24,20 @@ entities:
dps:
- id: 6
type: integer
+ optional: true
name: sensor
unit: lx
class: measurement
+ mapping:
+ - dps_val: null
+ value_redirect: alt
+ - id: 12
+ type: integer
+ name: alt
+ hidden: true
- entity: sensor
- name: Battery Level
+ name: Battery level
class: battery
- id: 4