DavidConnack/xiaomi_vacuum

Feature Request: Water Level Settings

htmltiger opened this issue · 3 comments

Hi,

Just like the fan speed, is it possible to add water level settings?

"siid":18
"piid":20
"value": [1/2/3]

Thanks.

LOW
2021-03-19 21:43:10 -> {"id":1428,"method":"set_properties","params":[{"did":"332951724","siid":18,"piid":20,"value":1}]}
2021-03-19 21:43:10 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":20,"code":0}],"id":1428}
2021-03-19 21:43:10 -> {"id":1429,"method":"get_properties","params":[{"did":"332951724","siid":18,"piid":6},{"did":"332951724","siid":18,"piid":20}]}
2021-03-19 21:43:10 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":6,"value":1,"code":0},{"siid":18,"did":"332951724","piid":20,"value":1,"code":0}],"id":1429}

MEDIUM
2021-03-19 21:43:15 -> {"id":1430,"method":"set_properties","params":[{"did":"332951724","siid":18,"piid":20,"value":2}]}
2021-03-19 21:43:15 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":20,"code":0}],"id":1430}
2021-03-19 21:43:15 -> {"id":1432,"method":"get_properties","params":[{"did":"332951724","siid":18,"piid":6},{"did":"332951724","siid":18,"piid":20}]}
2021-03-19 21:43:15 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":6,"value":1,"code":0},{"siid":18,"did":"332951724","piid":20,"value":2,"code":0}],"id":1432}

HIGH
2021-03-19 21:43:18 -> {"id":1433,"method":"set_properties","params":[{"did":"332951724","siid":18,"piid":20,"value":3}]}
2021-03-19 21:43:18 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":20,"code":0}],"id":1433}
2021-03-19 21:43:18 -> {"id":1434,"method":"get_properties","params":[{"did":"332951724","siid":18,"piid":6},{"did":"332951724","siid":18,"piid":20}]}
2021-03-19 21:43:18 <- {"code":0,"message":"ok","result":[{"siid":18,"did":"332951724","piid":6,"value":1,"code":0},{"siid":18,"did":"332951724","piid":20,"value":3,"code":0}],"id":1434}

I have created 2 pull requests with the addition,
will need to find a way to change using
https://github.com/benct/lovelace-xiaomi-vacuum-card

Checked and works fine

service: xiaomi_vacuum.set_water_level
data: 
  entity_id: vacuum.robin
  water_level: 2

Thanks for the contribution.
Merged!