pir_spotlight.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. name: PIR Spotlight
  2. products:
  3. - id: reldobj3ny6fbgvw
  4. name: WiFi Duo LED Light WFD 3050 P
  5. - id: 2twfjfhdvygxxqtq
  6. name: Nedis SmartLife Outdoor Floodlight
  7. primary_entity:
  8. entity: light
  9. dps:
  10. - id: 20
  11. type: boolean
  12. name: switch
  13. - id: 21
  14. type: string
  15. name: work_mode
  16. - id: 22
  17. name: brightness
  18. type: integer
  19. range:
  20. min: 10
  21. max: 1000
  22. - id: 23
  23. name: color_temp
  24. type: integer
  25. optional: true
  26. range:
  27. min: 0
  28. max: 1000
  29. mapping:
  30. - target_range:
  31. min: 2700
  32. max: 6500
  33. secondary_entities:
  34. - entity: number
  35. translation_key: timer
  36. category: config
  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: event
  74. class: motion
  75. dps:
  76. - id: 52
  77. type: string
  78. name: event
  79. mapping:
  80. - dps_val: pir
  81. value: detected
  82. - dps_val: none
  83. value: clear
  84. - entity: binary_sensor
  85. class: motion
  86. deprecated: event_motion
  87. dps:
  88. - id: 52
  89. type: string
  90. name: sensor
  91. mapping:
  92. - dps_val: "pir"
  93. value: true
  94. - value: false
  95. optional: true
  96. - entity: select
  97. name: Motion distance
  98. category: config
  99. dps:
  100. - id: 54
  101. type: string
  102. name: option
  103. mapping:
  104. - dps_val: "high"
  105. value: "Far"
  106. - dps_val: "low"
  107. value: "Near"
  108. - dps_val: "middle"
  109. value: "Medium"
  110. optional: true
  111. force: true
  112. - entity: number
  113. name: Full light duration
  114. category: config
  115. icon: "mdi:timer"
  116. dps:
  117. - id: 55
  118. name: value
  119. type: integer
  120. range:
  121. min: 5
  122. max: 3600
  123. unit: sec
  124. mapping:
  125. - scale: 1
  126. - dps_val: null
  127. optional: true
  128. force: true
  129. - entity: number
  130. name: Standby delay
  131. category: config
  132. dps:
  133. - id: 58
  134. name: value
  135. type: integer
  136. range:
  137. min: 1
  138. max: 480
  139. unit: min
  140. mapping:
  141. - scale: 1
  142. - dps_val: null
  143. optional: true
  144. force: true
  145. - entity: number
  146. name: Standby bright
  147. category: config
  148. dps:
  149. - id: 59
  150. name: value
  151. type: integer
  152. range:
  153. min: 0
  154. max: 1000
  155. unit: min
  156. mapping:
  157. - scale: 1
  158. - dps_val: null
  159. optional: true
  160. force: true
  161. - entity: select
  162. name: Ambient light sensor
  163. category: config
  164. dps:
  165. - id: 53
  166. type: string
  167. name: option
  168. mapping:
  169. - dps_val: 10lux
  170. value: 10lux
  171. - dps_val: 2000lux
  172. value: 2000lux
  173. - dps_val: 300lux
  174. value: 300lux
  175. - dps_val: 50lux
  176. value: 50lux
  177. - dps_val: 10lux
  178. value: 10lux
  179. - dps_val: 5lux
  180. value: 5lux
  181. - dps_val: now
  182. value: Now
  183. optional: true
  184. force: true