linkoze_dual_button.yaml 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Dual buttons
  2. products:
  3. - id: l8yaz4um5b3pwyvf
  4. manufacturer: Linkoze
  5. model: LKWSW201
  6. entities:
  7. - entity: event
  8. name: Button 1
  9. class: button
  10. dps:
  11. - id: 1
  12. type: string
  13. name: event
  14. mapping:
  15. - dps_val: single_click
  16. value: single_click
  17. - dps_val: long_press
  18. value: long_press
  19. - dps_val: double_click
  20. value: double_click
  21. - entity: event
  22. name: Button 2
  23. class: button
  24. dps:
  25. - id: 2
  26. type: string
  27. name: event
  28. mapping:
  29. - dps_val: single_click
  30. value: single_click
  31. - dps_val: long_press
  32. value: long_press
  33. - dps_val: double_click
  34. value: double_click
  35. - entity: sensor
  36. class: battery
  37. category: diagnostic
  38. dps:
  39. - id: 10
  40. type: integer
  41. name: sensor
  42. unit: "%"
  43. optional: true