af3w_petfeeder.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: Pet feeder
  2. # products:
  3. # - id: UNKNOWN
  4. # name: TY-AF3W
  5. entities:
  6. - entity: number
  7. name: Servings
  8. icon: "mdi:chicken-drumstick"
  9. dps:
  10. - id: 101
  11. type: integer
  12. optional: true
  13. name: value
  14. unit: portions
  15. range:
  16. min: 1
  17. max: 10
  18. - id: 104
  19. type: string
  20. optional: true
  21. name: schedule
  22. - entity: binary_sensor
  23. class: problem
  24. category: diagnostic
  25. dps:
  26. - id: 102
  27. type: bitfield
  28. optional: true
  29. name: sensor
  30. mapping:
  31. - dps_val: 0
  32. value: true
  33. constraint: feeding_fault
  34. conditions:
  35. - dps_val: 0
  36. value: false
  37. - dps_val: null
  38. value: false
  39. - dps_val: null
  40. value: true
  41. constraint: feeding_fault
  42. conditions:
  43. - dps_val: 0
  44. value: false
  45. - dps_val: null
  46. value: false
  47. - value: true
  48. - id: 102
  49. type: bitfield
  50. optional: true
  51. name: fault_code
  52. - id: 103
  53. type: bitfield
  54. optional: true
  55. name: feeding_fault
  56. - entity: sensor
  57. name: Last feed
  58. category: diagnostic
  59. dps:
  60. - id: 105
  61. type: integer
  62. name: sensor
  63. unit: portions
  64. class: measurement