loratap_dual_switch.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. name: Dual switch
  2. products:
  3. - id: keyjnuy4s3kre7m7
  4. manufacturer: LoraTap
  5. model: RR620W-JL
  6. entities:
  7. - entity: switch
  8. translation_key: switch_x
  9. translation_placeholders:
  10. x: "1"
  11. dps:
  12. - id: 1
  13. name: switch
  14. type: boolean
  15. - entity: switch
  16. translation_key: switch_x
  17. translation_placeholders:
  18. x: "2"
  19. dps:
  20. - id: 2
  21. name: switch
  22. type: boolean
  23. - entity: number
  24. class: duration
  25. translation_key: timer_x
  26. translation_placeholders:
  27. x: "1"
  28. category: config
  29. dps:
  30. - id: 9
  31. name: value
  32. type: integer
  33. unit: min
  34. range:
  35. min: 0
  36. max: 86400
  37. mapping:
  38. - scale: 60
  39. step: 60
  40. - id: 42
  41. name: random_time
  42. type: string
  43. - id: 43
  44. name: cycle_time
  45. type: string
  46. - entity: number
  47. class: duration
  48. translation_key: timer_x
  49. translation_placeholders:
  50. x: "2"
  51. category: config
  52. dps:
  53. - id: 10
  54. type: integer
  55. name: value
  56. unit: min
  57. range:
  58. min: 0
  59. max: 86400
  60. mapping:
  61. - scale: 60
  62. step: 60
  63. - entity: select
  64. translation_key: initial_state
  65. category: config
  66. dps:
  67. - id: 38
  68. type: string
  69. name: option
  70. mapping:
  71. - dps_val: "0"
  72. value: "off"
  73. - dps_val: "1"
  74. value: "on"
  75. - dps_val: "2"
  76. value: memory
  77. - entity: select
  78. name: Switch type
  79. icon: "mdi:toggle-switch"
  80. category: config
  81. dps:
  82. - id: 47
  83. type: string
  84. name: option
  85. mapping:
  86. - dps_val: flip
  87. value: Flip
  88. - dps_val: sync
  89. value: Synchronized
  90. - dps_val: button
  91. value: Button
  92. - entity: sensor
  93. name: Energy
  94. category: diagnostic
  95. hidden: true
  96. dps:
  97. - id: 20
  98. name: sensor
  99. type: integer
  100. optional: true
  101. class: measurement
  102. unit: kWh
  103. mapping:
  104. - scale: 1000
  105. - entity: sensor
  106. class: current
  107. category: diagnostic
  108. dps:
  109. - id: 21
  110. name: sensor
  111. type: integer
  112. class: measurement
  113. optional: true
  114. force: true
  115. unit: mA
  116. - entity: sensor
  117. class: power
  118. category: diagnostic
  119. dps:
  120. - id: 22
  121. name: sensor
  122. type: integer
  123. class: measurement
  124. optional: true
  125. force: true
  126. unit: W
  127. mapping:
  128. - scale: 10
  129. - entity: sensor
  130. class: voltage
  131. category: diagnostic
  132. dps:
  133. - id: 23
  134. name: sensor
  135. type: integer
  136. optional: true
  137. force: true
  138. class: measurement
  139. unit: V
  140. mapping:
  141. - scale: 10