treatlife_dual_plugin_dimmer.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. name: Dual dimmer
  2. products:
  3. - id: qga0e955v5hmg21x
  4. manufacturer: Treatlife
  5. name: Dimmer with two sockets
  6. entities:
  7. - entity: light
  8. name: Light 1
  9. category: config
  10. dps:
  11. - id: 1
  12. type: boolean
  13. name: switch
  14. - id: 2
  15. name: brightness
  16. type: integer
  17. range:
  18. min: 10
  19. max: 1000
  20. - id: 3
  21. name: min_brightness
  22. type: integer
  23. - id: 101
  24. name: away_program
  25. type: string
  26. optional: true
  27. - id: 102
  28. name: sleep_program
  29. type: string
  30. optional: true
  31. - id: 103
  32. name: awake_program
  33. type: string
  34. optional: true
  35. - entity: light
  36. name: Light 2
  37. dps:
  38. - id: 7
  39. type: boolean
  40. name: switch
  41. - id: 8
  42. name: brightness
  43. type: integer
  44. range:
  45. min: 0
  46. max: 1000
  47. - id: 9
  48. name: min_brightness
  49. type: integer
  50. - entity: select
  51. name: Light 1 type
  52. icon: "mdi:lightbulb"
  53. category: config
  54. dps:
  55. - id: 4
  56. type: string
  57. name: option
  58. mapping:
  59. - dps_val: led
  60. value: LED
  61. - dps_val: incandescent
  62. value: Incandescent
  63. - dps_val: halogen
  64. value: Halogen
  65. - entity: select
  66. name: Light 2 type
  67. icon: "mdi:lightbulb"
  68. category: config
  69. dps:
  70. - id: 10
  71. type: string
  72. name: option
  73. mapping:
  74. - dps_val: led
  75. value: LED
  76. - dps_val: incandescent
  77. value: Incandescent
  78. - dps_val: halogen
  79. value: Halogen
  80. - entity: number
  81. category: config
  82. class: duration
  83. translation_key: timer_x
  84. translation_placeholders:
  85. x: "1"
  86. dps:
  87. - id: 6
  88. type: integer
  89. name: value
  90. unit: min
  91. range:
  92. min: 0
  93. max: 86400
  94. mapping:
  95. - scale: 60
  96. step: 60
  97. - entity: number
  98. category: config
  99. class: duration
  100. translation_key: timer_x
  101. translation_placeholders:
  102. x: "2"
  103. dps:
  104. - id: 12
  105. type: integer
  106. name: value
  107. unit: min
  108. range:
  109. min: 0
  110. max: 86400
  111. mapping:
  112. - scale: 60
  113. step: 60
  114. - entity: select
  115. name: Indicator
  116. icon: "mdi:led-on"
  117. category: config
  118. dps:
  119. - id: 21
  120. type: string
  121. name: option
  122. mapping:
  123. - dps_val: none
  124. value: "Off"
  125. - dps_val: relay
  126. value: Status
  127. - dps_val: pos
  128. value: "On"