dual_power_monitor_smartplug.yaml 1.8 KB

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