pir_spotlight.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. name: PIR Spotlight
  2. products:
  3. - id: reldobj3ny6fbgvw
  4. model: Duo LED
  5. model_id: WFD 3050 P
  6. - id: 2twfjfhdvygxxqtq
  7. manufacturer: Nedis
  8. name: Outdoor floodlight
  9. - id: key3pw4guvnat9ad
  10. manufacturer: LSC
  11. name: Floodlight with sensor
  12. entities:
  13. - entity: light
  14. dps:
  15. - id: 20
  16. type: boolean
  17. name: switch
  18. - id: 21
  19. type: string
  20. name: work_mode
  21. - id: 22
  22. name: brightness
  23. type: integer
  24. range:
  25. min: 10
  26. max: 1000
  27. - id: 23
  28. name: color_temp
  29. type: integer
  30. optional: true
  31. range:
  32. min: 0
  33. max: 1000
  34. mapping:
  35. - target_range:
  36. min: 2700
  37. max: 6500
  38. - entity: number
  39. translation_key: timer
  40. class: duration
  41. category: config
  42. dps:
  43. - id: 26
  44. name: value
  45. type: integer
  46. optional: true
  47. range:
  48. min: 0
  49. max: 86400
  50. unit: min
  51. mapping:
  52. - scale: 60
  53. step: 60
  54. - dps_val: null
  55. - entity: switch
  56. name: Manual mode
  57. category: config
  58. dps:
  59. - id: 51
  60. type: string
  61. name: switch
  62. mapping:
  63. - dps_val: auto
  64. value: false
  65. - dps_val: manual
  66. value: true
  67. optional: true
  68. force: true
  69. - entity: switch
  70. name: PIR enabled
  71. category: config
  72. dps:
  73. - id: 56
  74. type: boolean
  75. name: switch
  76. optional: true
  77. force: true
  78. - entity: event
  79. class: motion
  80. dps:
  81. - id: 52
  82. type: string
  83. name: event
  84. mapping:
  85. - dps_val: pir
  86. value: detected
  87. - dps_val: none
  88. value: clear
  89. - entity: select
  90. name: Motion distance
  91. category: config
  92. dps:
  93. - id: 54
  94. type: string
  95. name: option
  96. mapping:
  97. - dps_val: "high"
  98. value: "Far"
  99. - dps_val: "low"
  100. value: "Near"
  101. - dps_val: "middle"
  102. value: "Medium"
  103. optional: true
  104. force: true
  105. - entity: number
  106. name: Full light duration
  107. category: config
  108. icon: "mdi:timer"
  109. dps:
  110. - id: 55
  111. name: value
  112. type: integer
  113. range:
  114. min: 5
  115. max: 3600
  116. unit: s
  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