smartplug_with_childlock.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. name: Smartplug
  2. products:
  3. - id: r9xep1xwyoubglpn
  4. model: SX1
  5. name: Relay switch
  6. entities:
  7. - entity: switch
  8. class: outlet
  9. dps:
  10. - id: 1
  11. type: boolean
  12. name: switch
  13. - id: 42
  14. type: string
  15. name: cyclic_schedule
  16. - id: 43
  17. type: string
  18. name: random_schedule
  19. - id: 44
  20. type: string
  21. name: inching
  22. - entity: number
  23. category: config
  24. class: duration
  25. translation_key: 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. translation_key: initial_state
  39. category: config
  40. dps:
  41. - id: 38
  42. type: string
  43. name: option
  44. mapping:
  45. - dps_val: "off"
  46. value: "off"
  47. - dps_val: "on"
  48. value: "on"
  49. - dps_val: memory
  50. value: memory
  51. - entity: select
  52. translation_key: light_mode
  53. category: config
  54. dps:
  55. - id: 40
  56. type: string
  57. name: option
  58. mapping:
  59. - dps_val: relay
  60. value: state
  61. - dps_val: pos
  62. value: locator
  63. - dps_val: none
  64. value: "off"
  65. - entity: lock
  66. translation_key: child_lock
  67. category: config
  68. dps:
  69. - id: 41
  70. type: boolean
  71. name: lock