simple_switch_timerv2.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Simple switch with timer
  2. products:
  3. - id: eetmtcempdyxgpx5
  4. manufacturer: Nexxt
  5. model: 220v smartplug
  6. - id: 45gg9a0jfyzj1z1d
  7. name: Mini smart switch
  8. - id: qlrnevw57ezct7ta
  9. name: Wall switch
  10. - id: flcvzjtnkhsreazp
  11. manufacturer: GIRIER
  12. name: USB adaptor
  13. - id: lbqau5negh2zizit
  14. manufacturer: Kruidvat
  15. name: Outdoor smartplug
  16. entities:
  17. - entity: switch
  18. dps:
  19. - id: 1
  20. name: switch
  21. type: boolean
  22. - entity: number
  23. category: config
  24. class: duration
  25. translation_key: timer
  26. dps:
  27. - id: 9
  28. name: value
  29. type: integer
  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. hidden: unavailable
  40. category: config
  41. dps:
  42. - id: 38
  43. type: string
  44. name: option
  45. optional: true
  46. mapping:
  47. - dps_val: "on"
  48. value: "on"
  49. - dps_val: "off"
  50. value: "off"
  51. - dps_val: memory
  52. value: memory
  53. - id: 38
  54. type: string
  55. name: available
  56. optional: true
  57. mapping:
  58. - dps_val: null
  59. value: false
  60. - value: true