romedtino / simple-wyze-vac

Home Assistant Custom Component for Wyze Vacuum
48 stars 8 forks source link

Provide error state #13

Open tensiondriven opened 2 years ago

tensiondriven commented 2 years ago

Hi – I love the integration, thanks so much for making it.

A feature I am sorely missing is the ability to notify Home Assistant when the device encounters an error, such as being stuck on a sock (which happens far too often).

For the Shark integration, the integration returns some extra state info: (example state from my Shark vaccum)

fan_speed_list:
  - Eco
  - Normal
  - Max
battery_level: 100
battery_icon: mdi:battery-charging-100
fan_speed: Normal
last_error_code: 0
last_error_message: null
low_light: false
recharge_and_resume: true
friendly_name: Sharkie
supported_features: 13052

It would be fantastic if this integration could also expose the error information. Once there's an attribute in HA, the user can write an automation to detect state changes and do notifications that way, so no additional events are needed.

romedtino commented 2 years ago

I'm a bit in the mercy of the underlying API - https://github.com/shauntarves/wyze-sdk . So it might be better to request these features there