smartplug_with_childlock.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. name: Light mode
  53. icon: "mdi:television-ambient-light"
  54. category: config
  55. dps:
  56. - id: 40
  57. type: string
  58. name: option
  59. mapping:
  60. - dps_val: relay
  61. value: State
  62. - dps_val: pos
  63. value: Position
  64. - dps_val: none
  65. value: "Off"
  66. - entity: lock
  67. translation_key: child_lock
  68. category: config
  69. dps:
  70. - id: 41
  71. type: boolean
  72. name: lock