brilliant_double_switch.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. name: Double wall switch
  2. products:
  3. - id: 5pyb1usxij5kzs47
  4. name: Briliiant Smart glass wall switch 2-gang
  5. primary_entity:
  6. entity: switch
  7. class: switch
  8. translation_key: switch_x
  9. translation_placeholders:
  10. x: 1
  11. dps:
  12. - id: 1
  13. type: boolean
  14. name: switch
  15. secondary_entities:
  16. - entity: switch
  17. class: switch
  18. translation_key: switch_x
  19. translation_placeholders:
  20. x: 2
  21. dps:
  22. - id: 2
  23. type: boolean
  24. name: switch
  25. - entity: number
  26. category: config
  27. translation_key: timer_x
  28. translation_placeholders:
  29. x: "1"
  30. class: duration
  31. dps:
  32. - id: 7
  33. type: integer
  34. name: value
  35. unit: min
  36. range:
  37. min: 0
  38. max: 86400
  39. mapping:
  40. - scale: 60
  41. step: 60
  42. - entity: number
  43. category: config
  44. translation_key: timer_x
  45. translation_placeholders:
  46. x: "2"
  47. class: duration
  48. dps:
  49. - id: 8
  50. type: integer
  51. name: value
  52. unit: min
  53. range:
  54. min: 0
  55. max: 86400
  56. mapping:
  57. - scale: 60
  58. step: 60
  59. - entity: sensor
  60. name: Energy
  61. category: diagnostic
  62. dps:
  63. - id: 101
  64. type: integer
  65. name: sensor
  66. unit: kWh
  67. mapping:
  68. - scale: 1000
  69. - entity: sensor
  70. class: current
  71. category: diagnostic
  72. dps:
  73. - id: 102
  74. type: integer
  75. name: sensor
  76. unit: mA
  77. class: measurement
  78. - entity: sensor
  79. class: power
  80. category: diagnostic
  81. dps:
  82. - id: 103
  83. type: integer
  84. name: sensor
  85. unit: W
  86. class: measurement
  87. mapping:
  88. - scale: 10
  89. - entity: sensor
  90. class: voltage
  91. category: diagnostic
  92. dps:
  93. - id: 104
  94. type: integer
  95. name: sensor
  96. unit: V
  97. class: measurement
  98. mapping:
  99. - scale: 10