smartplug_with_childlock.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. name: Initial state
  38. icon: "mdi:toggle-switch"
  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: Last state
  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