Skip to content

Commit

Permalink
TOMPD_63WIFI: review tweaks
Browse files Browse the repository at this point in the history
- top level name should be generic
- remove names which match class, so translations are used
- restore diagnostic on secondary sensors

PR #2618
  • Loading branch information
make-all committed Dec 8, 2024
1 parent c66d6fc commit 6320fc4
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions custom_components/tuya_local/devices/tompd_63wifi_breaker.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: TOMPD-63WIFI
name: Breaker energy meter
products:
- id: wcihaluccfsoayqa
name: TOMPD-63WIFI
primary_entity:
entity: switch
icon: "mdi:fuse"
dps:
- id: 16
name: switch
Expand Down Expand Up @@ -105,18 +106,8 @@ secondary_entities:
type: bitfield
name: fault_code
optional: true
# does not work even if executed through Tuya App
# - entity: button
# name: Factory reset
# class: restart
# category: config
# dps:
# - id: 34
# type: boolean
# name: button
# optional: true
- entity: number
name: O/U Voltage Protection Time
name: Voltage protection time
category: config
icon: "mdi:timer"
dps:
Expand All @@ -128,7 +119,7 @@ secondary_entities:
min: 1
max: 30
- entity: number
name: O/U Voltage Recovery Time
name: Voltage recovery time
category: config
icon: "mdi:timer"
dps:
Expand All @@ -140,9 +131,8 @@ secondary_entities:
min: 1
max: 500
- entity: sensor
name: Voltage
class: voltage
# category: diagnostic
category: diagnostic
dps:
- id: 6
type: base64
Expand All @@ -153,9 +143,8 @@ secondary_entities:
mapping:
- scale: 10
- entity: sensor
name: Current
class: current
# category: diagnostic
category: diagnostic
dps:
- id: 6
type: base64
Expand All @@ -166,9 +155,8 @@ secondary_entities:
mapping:
- scale: 1000
- entity: sensor
name: Power
class: power
# category: diagnostic
category: diagnostic
dps:
- id: 6
type: base64
Expand Down

0 comments on commit 6320fc4

Please sign in to comment.