motion_sensor_light.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. name: Motion Sensor Light
  2. products:
  3. - id: oapo5mmfbcr2y7ox
  4. name: Deta 360 Motion Sensor
  5. - id: 8mrw54ape8opgl69
  6. name: Deta Light Motion Sensor
  7. - id: pxyhz90upglpoedu
  8. name: Arlec MAL315HA
  9. primary_entity:
  10. entity: light
  11. dps:
  12. - id: 101
  13. type: string
  14. name: effect
  15. mapping:
  16. - dps_val: mode_off
  17. value: "off"
  18. - dps_val: mode_auto
  19. value: auto
  20. - dps_val: mode_on
  21. value: "on"
  22. - id: 102
  23. type: boolean
  24. name: switch
  25. readonly: true
  26. secondary_entities:
  27. - entity: switch
  28. name: Auto mode
  29. icon: "mdi:motion-sensor"
  30. dps:
  31. - id: 101
  32. type: string
  33. name: switch
  34. mapping:
  35. - dps_val: mode_auto
  36. value: true
  37. - dps_val: mode_on
  38. constraint: relay
  39. conditions:
  40. - dps_val: true
  41. value: false
  42. - dps_val: mode_off
  43. constraint: relay
  44. conditions:
  45. - dps_val: false
  46. value: false
  47. - id: 102
  48. name: relay
  49. type: boolean
  50. readonly: true
  51. hidden: true
  52. - entity: number
  53. name: Sensitivity
  54. icon: "mdi:human-greeting-proximity"
  55. category: config
  56. dps:
  57. - id: 103
  58. type: integer
  59. name: value
  60. range:
  61. min: 0
  62. max: 4
  63. mapping:
  64. - invert: true
  65. - entity: number
  66. name: Duration
  67. icon: "mdi:camera-timer"
  68. category: config
  69. dps:
  70. - id: 104
  71. type: integer
  72. name: value
  73. unit: s
  74. range:
  75. min: 10
  76. max: 900
  77. mapping:
  78. - step: 10
  79. - entity: number
  80. name: Light level
  81. icon: "mdi:theme-light-dark"
  82. category: config
  83. class: illuminance
  84. dps:
  85. - id: 105
  86. type: integer
  87. name: value
  88. unit: lx
  89. range:
  90. min: 0
  91. max: 3900
  92. mapping:
  93. - invert: true
  94. - entity: switch
  95. name: Auto reset
  96. category: config
  97. dps:
  98. - id: 106
  99. type: boolean
  100. name: switch