4
0

simple_switch_timerv2.yaml 964 B

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