xiaomi_cooker icon indicating copy to clipboard operation
xiaomi_cooker copied to clipboard

Error with self._state = temperature_history.temperatures.pop() in sensor.py

Open zaywalker opened this issue 3 years ago • 13 comments

And unable to track the temperature.

Hello! I'm very happy to use this cooker sensor and I've got a error message from sensor.py.

My cooker is chunmi.cooker.press2.

Here is the error message.

Logger: homeassistant.util.logging
Source: util/logging.py:106
First occurred: 오후 4:13:37 (40 occurrences)
Last logged: 오후 4:33:07

Exception in async_update_callback when dispatching 'xiaomi_miio_cooker_updated': ('192.168.10.202',) Traceback (most recent call last): File "/config/custom_components/xiaomi_miio_cooker/sensor.py", line 112, in async_update_callback self._state = temperature_history.temperatures.pop() IndexError: pop from empty list

zaywalker avatar Feb 25 '21 07:02 zaywalker

hello model your xiaomi cooker ?? Xiaomi YLIH02CM IH 1S 3L chunmi.cooker.k1pro1 ???

tieppm avatar Mar 12 '21 18:03 tieppm

hello model your xiaomi cooker ? Xiaomi YLIH02CM IH 1S 3L chunmi.cooker.k1pro1 ?

tieppm avatar Mar 12 '21 18:03 tieppm

hello model your xiaomi cooker ? Xiaomi YLIH02CM IH 1S 3L chunmi.cooker.k1pro1 ?

My model is chunmi.cooker.press2. I'm not sure the product code name, I guess my cooker is YLIH01CM which is 1st model from xiaomi(mijia) as a pressure cooker.

zaywalker avatar Mar 13 '21 16:03 zaywalker

oh. YLIH01CM is chunmi.cooker.press1 my model is YLIH02CM or IH 1S 3L or chunmi.cooker.k1pro1 image image image

IMG_20210314_000043.jpg

tieppm avatar Mar 13 '21 17:03 tieppm

Yup. I see. As I mentioned, I'm not sure about the product name. :) Just I know model code that I can check with mi home app.

H0c4c5f655aeb4e4eab454f7f89cd1d55r

zaywalker avatar Mar 13 '21 17:03 zaywalker

yes, your is YLIH01CM or chunmi.cooker.press1

tieppm avatar Mar 13 '21 17:03 tieppm

yes, your is YLIH01CM or chunmi.cooker.press1

I'm sorry. My cooker is chunmi.cooker.press2.

Screenshot_2021-03-14-02-29-05-251_com xiaomi smarthome

zaywalker avatar Mar 13 '21 17:03 zaywalker

Oh. You user app? Mi home?

tieppm avatar Mar 13 '21 17:03 tieppm

yup. custom mi home app from "https://www.kapiba.ru/2017/11/mi-home.html" which is region free.

zaywalker avatar Mar 13 '21 17:03 zaywalker

@syssi YLIH01CM is chunmi.cooker.press2? but config of you YLIH01CM is chunmi.cooker.press1 there is something wrong here? my model is YLIH02CM or IH 1S 3L or chunmi.cooker.k1pro1. it is chunmi.cooker.press1 or chunmi.cooker.press2? i dont config it vs hass 111037724-045b1a80-8458-11eb-822d-2d22d561a935

tieppm avatar Apr 13 '21 01:04 tieppm

You could setup this component. If your device isn't supported you will see the model name of your device at the homeassistant.log.

syssi avatar Apr 13 '21 05:04 syssi

You could setup this component. If your device isn't supported you will see the model name of your device at the homeassistant.log.

thank U, please help me! 111037969-0b365d00-8459-11eb-8f9c-61cde53f24e8 172264055_1483067015418446_8061271452864163189_n

image image image image 111037879-a844c600-8458-11eb-91df-704588f4bfb8

tieppm avatar Apr 13 '21 07:04 tieppm

@syssi please help me !!!

tieppm avatar Apr 22 '21 03:04 tieppm