simple_switch_timerv2.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Simple switch with timer
  2. products:
  3. - id: eetmtcempdyxgpx5
  4. name: Nexxt 220v smartplug
  5. - id: 45gg9a0jfyzj1z1d
  6. name: Mini smart switch
  7. - id: qlrnevw57ezct7ta
  8. name: On Wall WiFi Switch
  9. - id: flcvzjtnkhsreazp
  10. name: GIRIER USB adaptor
  11. - id: lbqau5negh2zizit
  12. name: Kruidvat outdoor smartplug
  13. entities:
  14. - entity: switch
  15. dps:
  16. - id: 1
  17. name: switch
  18. type: boolean
  19. - entity: number
  20. category: config
  21. class: duration
  22. translation_key: timer
  23. dps:
  24. - id: 9
  25. name: value
  26. type: integer
  27. unit: min
  28. range:
  29. min: 0
  30. max: 86400
  31. mapping:
  32. - scale: 60
  33. step: 60
  34. - entity: select
  35. translation_key: initial_state
  36. category: config
  37. dps:
  38. - id: 38
  39. type: string
  40. name: option
  41. optional: true
  42. mapping:
  43. - dps_val: "on"
  44. value: "on"
  45. - dps_val: "off"
  46. value: "off"
  47. - dps_val: memory
  48. value: memory
  49. - id: 38
  50. type: string
  51. name: available
  52. optional: true
  53. mapping:
  54. - dps_val: null
  55. value: false
  56. - value: true