4
0

pir_spotlight.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. mapping:
  23. - scale: 3.92
  24. - id: 23
  25. name: color_temp
  26. type: integer
  27. optional: true
  28. range:
  29. min: 0
  30. max: 1000
  31. mapping:
  32. - target_range:
  33. min: 2700
  34. max: 6500
  35. secondary_entities:
  36. - entity: number
  37. name: Timer
  38. category: config
  39. icon: "mdi:timer"
  40. dps:
  41. - id: 26
  42. name: value
  43. type: integer
  44. optional: true
  45. range:
  46. min: 0
  47. max: 86400
  48. unit: min
  49. mapping:
  50. - scale: 60
  51. step: 60
  52. - dps_val: null
  53. - entity: switch
  54. name: Manual mode
  55. category: config
  56. dps:
  57. - id: 51
  58. type: string
  59. name: switch
  60. mapping:
  61. - dps_val: auto
  62. value: false
  63. - dps_val: manual
  64. value: true
  65. optional: true
  66. force: true
  67. - entity: switch
  68. name: PIR enabled
  69. category: config
  70. dps:
  71. - id: 56
  72. type: boolean
  73. name: switch
  74. optional: true
  75. force: true
  76. - entity: binary_sensor
  77. class: motion
  78. dps:
  79. - id: 52
  80. type: string
  81. name: sensor
  82. mapping:
  83. - dps_val: "pir"
  84. value: true
  85. - dps_val: "none"
  86. value: false
  87. optional: true
  88. force: true
  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: sec
  117. mapping:
  118. - scale: 1
  119. - dps_val: null
  120. optional: true
  121. force: true
  122. - entity: number
  123. name: Standby delay
  124. category: config
  125. dps:
  126. - id: 58
  127. name: value
  128. type: integer
  129. range:
  130. min: 1
  131. max: 480
  132. unit: min
  133. mapping:
  134. - scale: 1
  135. - dps_val: null
  136. optional: true
  137. force: true
  138. - entity: number
  139. name: Standby bright
  140. category: config
  141. dps:
  142. - id: 59
  143. name: value
  144. type: integer
  145. range:
  146. min: 0
  147. max: 1000
  148. unit: min
  149. mapping:
  150. - scale: 1
  151. - dps_val: null
  152. optional: true
  153. force: true
  154. - entity: select
  155. name: Ambient light sensor
  156. category: config
  157. dps:
  158. - id: 53
  159. type: string
  160. name: option
  161. mapping:
  162. - dps_val: 10lux
  163. value: 10lux
  164. - dps_val: 2000lux
  165. value: 2000lux
  166. - dps_val: 300lux
  167. value: 300lux
  168. - dps_val: 50lux
  169. value: 50lux
  170. - dps_val: 10lux
  171. value: 10lux
  172. - dps_val: 5lux
  173. value: 5lux
  174. - dps_val: now
  175. value: Now
  176. optional: true
  177. force: true