dual_power_monitor_smartplug.yaml 1.8 KB

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