simple_switch_timerv2.yaml 948 B

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