pir_spotlight.yaml 3.6 KB

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