pir_spotlight.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. name: PIR Spotlight
  2. products:
  3. - id: reldobj3ny6fbgvw
  4. name: WiFi Duo LED Light WFD 3050 P
  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: work_mode
  14. - id: 22
  15. name: brightness
  16. type: integer
  17. range:
  18. min: 10
  19. max: 1000
  20. mapping:
  21. - dps_val: null
  22. - scale: 3.92
  23. - id: 23
  24. name: color_temp
  25. type: integer
  26. optional: true
  27. range:
  28. min: 0
  29. max: 1000
  30. mapping:
  31. - invert: true
  32. secondary_entities:
  33. - entity: number
  34. name: Timer
  35. category: config
  36. icon: "mdi:timer"
  37. dps:
  38. - id: 26
  39. name: value
  40. type: integer
  41. optional: true
  42. range:
  43. min: 0
  44. max: 86400
  45. unit: min
  46. mapping:
  47. - scale: 60
  48. step: 60
  49. - dps_val: null
  50. - entity: switch
  51. name: Manual mode
  52. category: config
  53. dps:
  54. - id: 51
  55. type: string
  56. name: switch
  57. mapping:
  58. - dps_val: auto
  59. value: false
  60. - dps_val: manual
  61. value: true
  62. optional: true
  63. force: true
  64. - entity: switch
  65. name: PIR enabled
  66. category: config
  67. dps:
  68. - id: 56
  69. type: boolean
  70. name: switch
  71. optional: true
  72. force: true
  73. - entity: binary_sensor
  74. class: motion
  75. dps:
  76. - id: 52
  77. type: string
  78. name: sensor
  79. mapping:
  80. - dps_val: "pir"
  81. value: true
  82. - dps_val: "none"
  83. value: false
  84. optional: true
  85. force: true
  86. - entity: select
  87. name: Motion distance
  88. category: config
  89. dps:
  90. - id: 54
  91. type: string
  92. name: option
  93. mapping:
  94. - dps_val: "high"
  95. value: "Far"
  96. - dps_val: "low"
  97. value: "Near"
  98. - dps_val: "middle"
  99. value: "Medium"
  100. optional: true
  101. force: true
  102. - entity: number
  103. name: Full light duration
  104. category: config
  105. icon: "mdi:timer"
  106. dps:
  107. - id: 55
  108. name: value
  109. type: integer
  110. range:
  111. min: 5
  112. max: 3600
  113. unit: sec
  114. mapping:
  115. - scale: 1
  116. - dps_val: null
  117. optional: true
  118. force: true
  119. - entity: number
  120. name: Standby delay
  121. category: config
  122. dps:
  123. - id: 58
  124. name: value
  125. type: integer
  126. range:
  127. min: 1
  128. max: 480
  129. unit: min
  130. mapping:
  131. - scale: 1
  132. - dps_val: null
  133. optional: true
  134. force: true
  135. - entity: number
  136. name: Standby bright
  137. category: config
  138. dps:
  139. - id: 59
  140. name: value
  141. type: integer
  142. range:
  143. min: 0
  144. max: 1000
  145. unit: min
  146. mapping:
  147. - scale: 1
  148. - dps_val: null
  149. optional: true
  150. force: true
  151. - entity: select
  152. name: Ambient light sensor
  153. category: config
  154. dps:
  155. - id: 53
  156. type: string
  157. name: option
  158. mapping:
  159. - dps_val: 10lux
  160. value: 10lux
  161. - dps_val: 2000lux
  162. value: 2000lux
  163. - dps_val: 300lux
  164. value: 300lux
  165. - dps_val: 50lux
  166. value: 50lux
  167. - dps_val: 10lux
  168. value: 10lux
  169. - dps_val: 5lux
  170. value: 5lux
  171. - dps_val: now
  172. value: Now
  173. optional: true
  174. force: true