| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- name: Smartplug with USB
- products:
- - id: zmql6aexy8ua5rox
- manufacturer: Gosund
- model: SP112
- - id: re5wqraswcozglky
- manufacturer: Gosund
- model: SP6
- entities:
- - entity: switch
- class: outlet
- dps:
- - id: 1
- type: boolean
- name: switch
- - id: 21
- type: bitfield
- name: factory_test
- optional: true
- - entity: switch
- name: USB
- icon: "mdi:usb"
- dps:
- - id: 7
- type: boolean
- name: switch
- - entity: sensor
- category: diagnostic
- class: voltage
- hidden: unavailable
- dps:
- - id: 20
- name: sensor
- type: integer
- class: measurement
- optional: true
- force: true
- unit: V
- mapping:
- - scale: 10
- - id: 22
- type: integer
- name: calibration
- optional: true
- - id: 20
- type: integer
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: sensor
- category: diagnostic
- class: current
- hidden: unavailable
- dps:
- - id: 18
- name: sensor
- type: integer
- class: measurement
- force: true
- optional: true
- unit: mA
- - id: 23
- type: integer
- name: calibration
- optional: true
- - id: 18
- type: integer
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: sensor
- category: diagnostic
- class: power
- hidden: unavailable
- dps:
- - id: 19
- name: sensor
- type: integer
- class: measurement
- force: true
- optional: true
- unit: W
- mapping:
- - scale: 10
- - id: 24
- type: integer
- name: calibration
- optional: true
- - id: 19
- type: integer
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: sensor
- class: energy
- category: diagnostic
- dps:
- - id: 17
- type: integer
- name: sensor
- unit: kWh
- class: total_increasing
- mapping:
- - scale: 1000
- - entity: time
- category: config
- translation_key: timer
- hidden: unavailable
- dps:
- - id: 9
- type: integer
- optional: true
- name: second
- range:
- min: 0
- max: 86400
- - id: 9
- type: integer
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: time
- category: config
- translation_key: timer_x
- translation_placeholders:
- x: USB
- hidden: unavailable
- dps:
- - id: 15
- type: integer
- optional: true
- name: second
- range:
- min: 0
- max: 86400
- - id: 15
- type: integer
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: select
- translation_key: initial_state
- category: config
- hidden: unavailable
- dps:
- - id: 38
- type: string
- optional: true
- name: option
- mapping:
- - dps_val: power_on
- value: "on"
- available: alternate
- - dps_val: power_off
- value: "off"
- available: alternate
- - dps_val: last
- value: memory
- available: alternate
- - dps_val: "on"
- value: "on"
- available: standard
- - dps_val: "off"
- value: "off"
- available: standard
- - dps_val: memory
- value: memory
- available: standard
- - dps_val: "0"
- value: "off"
- available: numeric
- - dps_val: "1"
- value: "on"
- available: numeric
- - dps_val: "2"
- value: memory
- available: numeric
- - id: 38
- type: string
- optional: true
- name: standard
- mapping:
- - value: false
- conditions:
- - dps_val: ["on", "off", memory]
- value: true
- - dps_val: null
- value: true # allow options to populate at init
- - id: 38
- type: string
- optional: true
- name: alternate
- mapping:
- - value: false
- conditions:
- - dps_val: [power_on, power_off, last]
- value: true
- - id: 38
- type: string
- optional: true
- name: numeric
- mapping:
- - value: false
- conditions:
- - dps_val: ["0", "1", "2"]
- value: true
- - id: 38
- type: string
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: select
- translation_key: light_mode
- category: config
- hidden: unavailable
- dps:
- - id: 39
- type: string
- name: option
- optional: true
- mapping:
- - dps_val: relay
- value: state
- - dps_val: pos
- value: locator
- - dps_val: none
- value: "off"
- - id: 39
- type: string
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: lock
- translation_key: child_lock
- category: config
- hidden: unavailable
- dps:
- - id: 40
- type: boolean
- optional: true
- name: lock
- - id: 40
- type: boolean
- optional: true
- name: available
- mapping:
- - dps_val: null
- value: false
- - value: true
- - entity: binary_sensor
- class: problem
- category: diagnostic
- dps:
- - id: 26
- type: bitfield
- name: sensor
- optional: true
- mapping:
- - dps_val: 0
- value: false
- - value: true
- - id: 26
- type: bitfield
- name: fault_code
- optional: true
- - entity: text
- translation_key: schedule
- category: config
- hidden: true
- dps:
- - id: 41
- type: base64
- optional: true
- name: value
- - entity: text
- name: Randomized schedule
- category: config
- icon: "mdi:island"
- hidden: true
- dps:
- - id: 42
- type: base64
- optional: true
- name: value
- - entity: text
- name: Inching
- category: config
- icon: "mdi:toggle-switch"
- hidden: true
- dps:
- - id: 43
- type: string
- optional: true
- name: value
|