simple_switch_timerv2.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. category: config
  40. dps:
  41. - id: 38
  42. type: string
  43. name: option
  44. optional: true
  45. mapping:
  46. - dps_val: "on"
  47. value: "on"
  48. - dps_val: "off"
  49. value: "off"
  50. - dps_val: memory
  51. value: memory
  52. - id: 38
  53. type: string
  54. name: available
  55. optional: true
  56. mapping:
  57. - dps_val: null
  58. value: false
  59. - value: true