simple_switch_timerv2.yaml 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. primary_entity:
  8. entity: switch
  9. dps:
  10. - id: 1
  11. name: switch
  12. type: boolean
  13. secondary_entities:
  14. - entity: number
  15. category: config
  16. translation_key: timer
  17. dps:
  18. - id: 9
  19. name: value
  20. type: integer
  21. unit: min
  22. range:
  23. min: 0
  24. max: 86400
  25. mapping:
  26. - scale: 60
  27. step: 60
  28. - entity: select
  29. name: Power on state
  30. icon: "mdi:toggle-switch"
  31. category: config
  32. dps:
  33. - id: 38
  34. type: string
  35. name: option
  36. optional: true
  37. mapping:
  38. - dps_val: "on"
  39. value: "On"
  40. - dps_val: "off"
  41. value: "Off"
  42. - dps_val: memory
  43. value: Last state
  44. - dps_val: null
  45. invalid: true