smartplug_with_childlock.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. name: Smartplug
  2. products:
  3. - id: r9xep1xwyoubglpn
  4. name: SX1 reelay switch
  5. primary_entity:
  6. entity: switch
  7. class: outlet
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 42
  13. type: string
  14. name: cyclic_schedule
  15. - id: 43
  16. type: string
  17. name: random_schedule
  18. - id: 44
  19. type: string
  20. name: inching
  21. secondary_entities:
  22. - entity: number
  23. category: config
  24. icon: "mdi:timer"
  25. name: Timer
  26. dps:
  27. - id: 9
  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: select
  38. name: Initial state
  39. icon: "mdi:toggle-switch"
  40. category: config
  41. dps:
  42. - id: 38
  43. type: string
  44. name: option
  45. mapping:
  46. - dps_val: "off"
  47. value: "Off"
  48. - dps_val: "on"
  49. value: "On"
  50. - dps_val: memory
  51. value: Last state
  52. - entity: select
  53. name: Light mode
  54. icon: "mdi:television-ambient-light"
  55. category: config
  56. dps:
  57. - id: 40
  58. type: string
  59. name: option
  60. mapping:
  61. - dps_val: relay
  62. value: State
  63. - dps_val: pos
  64. value: Position
  65. - dps_val: none
  66. value: "Off"
  67. - entity: lock
  68. name: Child lock
  69. icon: "mdi:hand-back-right-off"
  70. category: config
  71. dps:
  72. - id: 41
  73. type: boolean
  74. name: lock