brilliant_double_switch.yaml 1.7 KB

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