smartplug_with_childlock.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. translation_key: timer
  25. dps:
  26. - id: 9
  27. type: integer
  28. name: value
  29. unit: min
  30. range:
  31. min: 0
  32. max: 86400
  33. mapping:
  34. - scale: 60
  35. step: 60
  36. - entity: select
  37. translation_key: initial_state
  38. category: config
  39. dps:
  40. - id: 38
  41. type: string
  42. name: option
  43. mapping:
  44. - dps_val: "off"
  45. value: "off"
  46. - dps_val: "on"
  47. value: "on"
  48. - dps_val: memory
  49. value: memory
  50. - entity: select
  51. name: Light mode
  52. icon: "mdi:television-ambient-light"
  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: Position
  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