Issue #336 comment from @Cook23 - added product id - made some dps optional as they are not appearing Product is using protocol version 3.4, so may not be fully working yet.
@@ -1,4 +1,6 @@
name: PJ-1103 clamp power meter
+product:
+ - id: djfep9s6s3b2qk89
primary_entity:
entity: sensor
name: Power
@@ -9,12 +11,15 @@ primary_entity:
type: integer
unit: W
class: measurement
+ mapping:
+ - scale: 10
- id: 52
name: maximum
- id: 21
type: bitfield
name: test
+ optional: true
secondary_entities:
- entity: sensor
name: Current
@@ -41,6 +46,7 @@ secondary_entities:
- id: 22
name: calibration
- entity: number
name: Maximum Standby Power
category: config
@@ -48,6 +54,7 @@ secondary_entities:
- id: 51
name: value
range:
min: 0