merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
364 stars 62 forks source link

chunmi.cooker.normal2 - Mijia IH rice cooker #550

Closed frankiesoc closed 2 months ago

frankiesoc commented 7 months ago

Device model chunmi.cooker.normal2

Device name Mijia IH rice cooker

Does the device require a MiCloud connection? Do not know

Anything special about the device? It’s doesn’t work in Homebridge and Honekit. It’s show only one switch. IMG_2102

merdok commented 7 months ago

What does the debug log say?

frankiesoc commented 7 months ago

Hello, i generated the device class and copy the file. Here are the logs. greetings

[11/25/2023, 8:41:26 PM] [miot] Initializing devices [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Model known: chunmi.cooker.normal2! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Initializing device! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Initializing device services [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Device services: [ "cooker" ] [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Initializing device properties [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Device properties: [ "cooker:status", "cooker:cook-mode" ] [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Initializing device actions [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Device actions: [ "cooker:start-cook", "cooker:cancel-cooking" ] [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Successfully created a Cooker device! It is a Unknown. [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Initializing accessory! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] <-W-> This property is not writable! Cannot create property wrapper! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Cannot add Mode wrapper! Invalid property! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Accessory successfully initialized! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Registering 1 accessories! [11/25/2023, 8:41:26 PM] [miot] [Rice cooker] Everything looks good! Initiating property polling! [11/25/2023, 8:42:31 PM] [miot] [Rice cooker] Device found! Setting up miot device from local connection! [11/25/2023, 8:42:31 PM] [miot] [Rice cooker] Connected to device: chunmi.cooker.normal2 [11/25/2023, 8:42:31 PM] [miot] [Rice cooker] Doing initial property fetch. [11/25/2023, 8:42:31 PM] [miot] [Rice cooker] Starting property polling.

merdok commented 7 months ago

My guess is that your device requires a micloud connection, so i recommended that either in the device class you flag it as micloud required or you set the forceMiCloud property to true in the device config, and also enter your micloud login credentials.

frankiesoc commented 7 months ago

thank for your hint, but unfortunately it’s still not work. i enable forceMiCloud with my login und select the correct country. The airfryer and the roidmi vacuum works fine. In homeassistant it’s work fine.

IMG_2110

Here the new log, maybe you found something. Thanks 😊

[11/27/2023, 7:14:08 PM] [miot] Initializing miot platform... [11/27/2023, 7:14:08 PM] [miot] Initializing devices [11/27/2023, 7:14:08 PM] [miot] [Mi Smart Air Fryer (3.5L)] Got device configuration, initializing device with name: Mi Smart Air Fryer (3.5L) [11/27/2023, 7:14:08 PM] [miot] [ROIDMI EVA] Got device configuration, initializing device with name: ROIDMI EVA [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Got device configuration, initializing device with name: Rice cooker [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Model known: chunmi.cooker.normal2! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Initializing device! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Initializing device services [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Device services: [ "cooker" ] [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Initializing device properties [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Device properties: [ "cooker:status", "cooker:cook-mode" ] [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Initializing device actions [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Device actions: [ "cooker:start-cook", "cooker:cancel-cooking" ] [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Successfully created a Cooker device! It is a Unknown. [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Initializing accessory! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] <-W-> This property is not writable! Cannot create property wrapper! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Cannot add Mode wrapper! Invalid property! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Accessory successfully initialized! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Registering 1 accessories! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Everything looks good! Initiating property polling! [11/27/2023, 7:14:08 PM] [miot] [Rice cooker] Log in to MiCloud! [11/27/2023, 7:14:09 PM] [miot] [Rice cooker] Successfully connected to MiCloud! Setting up miot device from MiCloud connection! [11/27/2023, 7:14:09 PM] [miot] [Rice cooker] Connected to device: chunmi.cooker.normal2 [11/27/2023, 7:14:09 PM] [miot] [Rice cooker] Doing initial property fetch. [11/27/2023, 7:14:09 PM] [miot] [Rice cooker] Starting property polling.

merdok commented 7 months ago

Seems to looks correct to me, at least the log to the cloud succeed and the device seems to be found. I think you also need to enable actionButtons to see the start and cancel cooking buttons.

frankiesoc commented 7 months ago

Okay, thanks. I will try with actionButtons. The Rodmi and the airfryer create all buttons alone.

merdok commented 7 months ago

That can be fixed later, first it needs to be confirmend that they actually work.