fineemb / Xiaomi-Smart-Multipurpose-Kettle

小米养生壶
7 stars 7 forks source link

add to hassio #1

Open djmalin opened 4 years ago

djmalin commented 4 years ago

Hello @fineemb , you can help with this integration, all I was able to get is only the data in the picture, and how to turn it on using hassio? czajnik

GenoMXXX commented 3 years ago

You should creatre scripts, like in description. For example:

boiled_water:
  sequence:
    service: health_pot.set_work
    data:
      entity_id: health_pot.xiaomi_40313cca037b
      status: 2
      id: 18
      keep_temp: 95
      keep_time: 1
maximatchev commented 3 years ago

Hi @fineemb I can't stop boiling by script

stop_work:
  sequence:
    service: health_pot.set_work
    data:
      entity_id: health_pot.xiaomi_40313ce00458
      status: 5
      id: 18

It doesn't work ((

fixsssator commented 2 years ago

Hi @maximatchev. I found solution. You have to change this line "vol.Required(ATTR_WORK_STATUS): vol.All(vol.Coerce(int), vol.Range(min=1, max=5))," in this file Xiaomi-Smart-Multipurpose-Kettle/custom_components/xiaomi_miio_health_pot/init.py to "vol.Required(ATTR_WORK_STATUS): vol.All(vol.Coerce(int), vol.Range(min=0, max=5))," And use status 0 - to stop cooking. I hope i help you.