makegood_switch_dual_timer-energy.yaml 1.7 KB

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