simple_dual_switch_timer.yaml 1.0 KB

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