nooie_nsp21_smartplug.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: SmartPlug
  2. products:
  3. - id: e8dqdqxjgmilloml
  4. name: Nooie NSP21
  5. primary_entity:
  6. entity: switch
  7. class: outlet
  8. dps:
  9. - id: 1
  10. name: switch
  11. type: boolean
  12. secondary_entities:
  13. - entity: number
  14. translation_key: timer
  15. category: config
  16. dps:
  17. - id: 9
  18. type: integer
  19. name: value
  20. unit: min
  21. range:
  22. min: 0
  23. max: 86400
  24. mapping:
  25. - scale: 60
  26. step: 60
  27. - entity: select
  28. name: "Light Mode"
  29. icon: "mdi:television-ambient-light"
  30. category: config
  31. dps:
  32. - id: 40
  33. type: string
  34. name: option
  35. mapping:
  36. - dps_val: "relay"
  37. value: "State"
  38. - dps_val: "pos"
  39. value: "Position"
  40. - dps_val: "none"
  41. value: "Off"
  42. - entity: lock
  43. translation_key: child_lock
  44. category: config
  45. dps:
  46. - id: 41
  47. type: boolean
  48. name: lock
  49. - entity: select
  50. name: "Power on state"
  51. icon: "mdi:toggle-switch"
  52. category: config
  53. dps:
  54. - id: 38
  55. type: string
  56. name: option
  57. mapping:
  58. - dps_val: "on"
  59. value: "On"
  60. - dps_val: "off"
  61. value: "Off"
  62. - dps_val: "memory"
  63. value: "Last state"