Closed frankiesoc closed 2 months ago
What does the debug log say?
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.
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.
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.
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.
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.
Okay, thanks. I will try with actionButtons. The Rodmi and the airfryer create all buttons alone.
That can be fixed later, first it needs to be confirmend that they actually work.
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](https://github.com/merdok/homebridge-miot/assets/30867153/0d1838c9-91de-47b0-a10b-f374e4b4a099)