Skip to content

Commit

Permalink
Add smart Power Strip device definition
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttimmins authored and make-all committed Jul 7, 2023
1 parent 3ea0ab3 commit 268e15a
Showing 1 changed file with 116 additions and 0 deletions.
116 changes: 116 additions & 0 deletions custom_components/tuya_local/devices/smart_powerstrip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: 4 outlet + USB powerstrip
products:
- id: y7CxWXKi0EVL3cgB
name: smart Power Strip
primary_entity:
entity: switch
name: Outlet 1
class: outlet
dps:
- id: 1
type: boolean
name: switch
secondary_entities:
- entity: switch
name: Outlet 2
class: outlet
dps:
- id: 2
type: boolean
name: switch
- entity: switch
name: Outlet 3
class: outlet
dps:
- id: 3
type: boolean
name: switch
- entity: switch
name: Outlet 4
class: outlet
dps:
- id: 4
type: boolean
name: switch
- entity: switch
name: USB switch
class: switch
dps:
- id: 7
type: boolean
name: switch
- entity: number
category: config
name: Timer 1
icon: "mdi:timer"
dps:
- id: 9
name: value
type: integer
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- entity: number
category: config
name: Timer 2
icon: "mdi:timer"
dps:
- id: 10
name: value
type: integer
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- entity: number
category: config
name: Timer 3
icon: "mdi:timer"
dps:
- id: 11
name: value
type: integer
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- entity: number
category: config
name: Timer 4
icon: "mdi:timer"
dps:
- id: 12
name: value
type: integer
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- entity: number
category: config
name: USB timer
icon: "mdi:timer"
dps:
- id: 15
name: value
type: integer
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60

0 comments on commit 268e15a

Please sign in to comment.