simple_switch_timerv2.yaml 1.0 KB

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