makegood_switch_dual_timer-energy.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. name: Dual switch
  2. products:
  3. - id: XdGCESvXTI5Mvfx2
  4. manufacturer: MakeGood
  5. model: MG-MD04W
  6. entities:
  7. - entity: switch
  8. translation_key: switch_x
  9. translation_placeholders:
  10. x: "1"
  11. dps:
  12. - id: 1
  13. type: boolean
  14. name: switch
  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. unit: s
  37. - entity: number
  38. class: duration
  39. translation_key: timer_x
  40. translation_placeholders:
  41. x: "2"
  42. category: config
  43. dps:
  44. - id: 8
  45. type: integer
  46. name: value
  47. range:
  48. min: 0
  49. max: 86400
  50. unit: s
  51. - entity: sensor
  52. class: current
  53. category: diagnostic
  54. dps:
  55. - id: 102
  56. type: integer
  57. name: sensor
  58. unit: A
  59. class: measurement
  60. force: true
  61. mapping:
  62. - scale: 1000
  63. - entity: sensor
  64. class: power
  65. category: diagnostic
  66. dps:
  67. - id: 103
  68. type: integer
  69. name: sensor
  70. unit: W
  71. class: measurement
  72. force: true
  73. mapping:
  74. - scale: 10
  75. - entity: sensor
  76. class: voltage
  77. category: diagnostic
  78. dps:
  79. - id: 104
  80. type: integer
  81. name: sensor
  82. unit: V
  83. class: measurement
  84. force: true
  85. mapping:
  86. - scale: 10