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