simple_dual_switch_timer.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Dual switch with timers
  2. products:
  3. - id: key9nfnyp89j4esc
  4. entities:
  5. - entity: switch
  6. translation_key: switch_x
  7. translation_placeholders:
  8. x: "1"
  9. dps:
  10. - id: 1
  11. type: boolean
  12. name: switch
  13. - entity: switch
  14. translation_key: switch_x
  15. translation_placeholders:
  16. x: "2"
  17. dps:
  18. - id: 2
  19. type: boolean
  20. name: switch
  21. - entity: number
  22. class: duration
  23. translation_key: timer_x
  24. translation_placeholders:
  25. x: "1"
  26. category: config
  27. dps:
  28. - id: 7
  29. type: integer
  30. name: value
  31. range:
  32. min: 0
  33. max: 86400
  34. mapping:
  35. - scale: 60
  36. step: 60
  37. unit: min
  38. - entity: number
  39. class: duration
  40. translation_key: timer_x
  41. translation_placeholders:
  42. x: "2"
  43. category: config
  44. dps:
  45. - id: 8
  46. type: integer
  47. name: value
  48. range:
  49. min: 0
  50. max: 86400
  51. mapping:
  52. - scale: 60
  53. step: 60
  54. unit: min