smartplugv2_childlock.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. name: Smartplug
  2. entities:
  3. - entity: switch
  4. dps:
  5. - id: 1
  6. type: boolean
  7. name: switch
  8. - id: 41
  9. type: string
  10. name: cycle_timer
  11. optional: true
  12. - id: 42
  13. type: string
  14. name: random_timer
  15. optional: true
  16. - id: 43
  17. type: string
  18. name: inching
  19. - entity: number
  20. class: duration
  21. translation_key: timer
  22. category: config
  23. dps:
  24. - id: 9
  25. type: integer
  26. name: value
  27. unit: min
  28. range:
  29. min: 0
  30. max: 86400
  31. mapping:
  32. - scale: 60
  33. step: 60
  34. - entity: sensor
  35. name: Energy
  36. category: diagnostic
  37. hidden: true
  38. dps:
  39. - id: 17
  40. type: integer
  41. name: sensor
  42. unit: Wh
  43. optional: true
  44. class: measurement
  45. - entity: sensor
  46. class: current
  47. category: diagnostic
  48. dps:
  49. - id: 18
  50. type: integer
  51. name: sensor
  52. unit: mA
  53. class: measurement
  54. - entity: sensor
  55. class: power
  56. category: diagnostic
  57. dps:
  58. - id: 19
  59. type: integer
  60. name: sensor
  61. unit: W
  62. class: measurement
  63. mapping:
  64. - scale: 10
  65. - entity: sensor
  66. class: voltage
  67. category: diagnostic
  68. dps:
  69. - id: 20
  70. type: integer
  71. name: sensor
  72. unit: V
  73. class: measurement
  74. mapping:
  75. - scale: 10
  76. - entity: select
  77. translation_key: initial_state
  78. category: config
  79. dps:
  80. - id: 38
  81. type: string
  82. name: option
  83. mapping:
  84. - dps_val: power_off
  85. value: "off"
  86. - dps_val: power_on
  87. value: "on"
  88. - dps_val: last
  89. value: memory
  90. - entity: select
  91. translation_key: light_mode
  92. category: config
  93. dps:
  94. - id: 39
  95. type: string
  96. name: option
  97. mapping:
  98. - dps_val: relay
  99. value: state
  100. - dps_val: pos
  101. value: locator
  102. - dps_val: none
  103. value: "off"
  104. - entity: lock
  105. translation_key: child_lock
  106. category: config
  107. dps:
  108. - id: 40
  109. type: boolean
  110. name: lock