rgbcw_lightbulb.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. name: RGBCW Lightbulb
  2. products:
  3. - id: aok3caeleulg1neh
  4. name: Lijun smart bulb RGBCW
  5. primary_entity:
  6. entity: light
  7. dps:
  8. - id: 20
  9. type: boolean
  10. name: switch
  11. - id: 21
  12. type: string
  13. name: color_mode
  14. mapping:
  15. - dps_val: white
  16. value: color_temp
  17. - dps_val: colour
  18. value: rgbw
  19. - dps_val: scene
  20. value: Scene
  21. - dps_val: music
  22. value: Music
  23. - id: 22
  24. name: brightness
  25. type: integer
  26. range:
  27. min: 10
  28. max: 1000
  29. mapping:
  30. - scale: 3.92
  31. - id: 23
  32. name: color_temp
  33. type: integer
  34. optional: true
  35. range:
  36. min: 0
  37. max: 1000
  38. mapping:
  39. - invert: true
  40. - id: 24
  41. name: rgbhsv
  42. type: hex
  43. optional: true
  44. format:
  45. - name: h
  46. bytes: 2
  47. range:
  48. min: 0
  49. max: 360
  50. - name: s
  51. bytes: 2
  52. range:
  53. min: 0
  54. max: 1000
  55. - name: v
  56. bytes: 2
  57. range:
  58. min: 0
  59. max: 1000
  60. - id: 25
  61. name: scene_data
  62. type: hex
  63. optional: true
  64. - id: 27
  65. name: music_data
  66. type: hex
  67. optional: true
  68. - id: 28
  69. name: control_data
  70. type: hex
  71. optional: true
  72. - id: 30
  73. name: rhythm_mode
  74. type: hex
  75. optional: true
  76. - id: 31
  77. name: sleep_mode
  78. type: hex
  79. optional: true
  80. - id: 32
  81. name: wakeup_mode
  82. type: hex
  83. optional: true
  84. secondary_entities:
  85. - entity: number
  86. name: Timer
  87. category: config
  88. icon: "mdi:timer"
  89. dps:
  90. - id: 26
  91. name: value
  92. type: integer
  93. range:
  94. min: 0
  95. max: 86400
  96. unit: min
  97. mapping:
  98. - scale: 60
  99. step: 60
  100. - entity: select
  101. name: Scene
  102. icon: "mdi:palette"
  103. category: config
  104. dps:
  105. - id: 25
  106. type: string
  107. name: option
  108. optional: true
  109. mapping:
  110. - dps_val: "000c0d0000000000000000c80000"
  111. # color: brown, static
  112. value: Night
  113. - dps_val: "010e0d0000840000000003e801f4"
  114. # color: white, static
  115. value: Read
  116. - dps_val: "020e0d0000e80383000003e803e8"
  117. # color: lt cyan, static
  118. value: Working
  119. - dps_val: "030e0d00001403e8000001f401f4"
  120. # color: grey, static
  121. value: Leisure
  122. - dps_val: "04464602007803e803e800000000464602007803e8000a00000000"
  123. # color: G+DkG, Breath, Mid speed
  124. value: Soft
  125. - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000"
  126. # color* R+G+B+Y+C+V, Flash, Mid speed
  127. value: Colorful
  128. - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000"
  129. # color* R+G+B, Flash, Mid speed
  130. value: Dazzling
  131. - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000"
  132. # color* R+G+B+Y+C+V, Breath, Mid speed
  133. value: Gorgeous