timeguard_wfpir.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. name: PIR relay
  2. products:
  3. - id: i0lqhz9ejwtuykz5
  4. name: Timeguard WFPIR
  5. primary_entity:
  6. entity: switch
  7. name: Relay
  8. class: switch
  9. dps:
  10. - id: 1
  11. type: boolean
  12. name: switch
  13. - id: 107
  14. type: integer
  15. name: rd_test
  16. secondary_entities:
  17. - entity: binary_sensor
  18. class: motion
  19. dps:
  20. - id: 101
  21. type: boolean
  22. name: sensor
  23. - entity: button
  24. name: Factory reset
  25. class: restart
  26. category: config
  27. dps:
  28. - id: 102
  29. type: boolean
  30. name: button
  31. - entity: select
  32. name: Function
  33. icon: "mdi:refresh-auto"
  34. category: config
  35. dps:
  36. - id: 103
  37. type: string
  38. name: option
  39. mapping:
  40. - dps_val: Auto
  41. value: Auto
  42. - dps_val: SemiAuto
  43. value: Semi-auto
  44. - dps_val: Test
  45. value: Test
  46. - entity: number
  47. name: Duration
  48. category: config
  49. icon: "mdi:timer"
  50. dps:
  51. - id: 104
  52. type: integer
  53. name: value
  54. unit: s
  55. optional: true
  56. range:
  57. min: 30
  58. max: 1800
  59. mapping:
  60. - step: 30
  61. - entity: number
  62. class: illuminance
  63. category: config
  64. icon: "mdi:theme-light-dark"
  65. dps:
  66. - id: 105
  67. type: integer
  68. name: value
  69. unit: lx
  70. range:
  71. min: 5
  72. max: 2000
  73. mapping:
  74. - step: 5
  75. - entity: select
  76. name: Sensitivity
  77. icon: "mdi:motion-sensor"
  78. category: config
  79. dps:
  80. - id: 106
  81. type: string
  82. name: option
  83. mapping:
  84. - dps_val: Level1
  85. value: "25%"
  86. - dps_val: Level2
  87. value: "50%"
  88. - dps_val: Level3
  89. value: "75%"
  90. - dps_val: Level4
  91. value: "100%"
  92. - entity: light
  93. name: Indicator
  94. icon: "mdi:led-on"
  95. category: config
  96. dps:
  97. - id: 108
  98. type: boolean
  99. name: switch
  100. - entity: switch
  101. name: Learn light level
  102. category: config
  103. dps:
  104. - id: 109
  105. type: boolean
  106. name: switch
  107. - entity: switch
  108. name: Ignore light level
  109. category: config
  110. dps:
  111. - id: 110
  112. type: boolean
  113. name: switch
  114. - entity: switch
  115. name: Temporary disable
  116. category: config
  117. dps:
  118. - id: 117
  119. type: boolean
  120. name: switch