Xiaomi Mi Infrared Remote Control

Yes, seems they simply changed the command. Will try to figure it out.

WARNING:miio.device:Found an unsupported model 'chuangmi.remote.v2' for class 'Device'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
Model: chuangmi.remote.v2
Hardware version: esp32

Firmware version: 2.0.6_0006

What is so strange to me is that the device responds with the ‘ok’
Normally if they phase out a command, it will respond with a ‘command not supported’

@kisseler did a test on hos device yesterday and his was still working (but… maybe sending only).
It is very possible that different versions in firmware drive the difference.

Maybe they simply changed the commands. But we don’t are aware of the new ones. :wink:

Well, I can give a hint… These are the requests they make
only local commands left seems to be the indicatorLamp.

	Line 1583: callMethod('get_indicatorLamp'
	Line 1611: callMethod('set_indicatorLamp'
	Line 2651:('/v2/irdevice/controller/add'
	Line 2687:('/v2/irdevice/controller/keys/set'
	Line 2698:('/v2/irdevice/controller/key/add'
	Line 2737:('/v2/irdevice/controller/key/del'
	Line 2749:('/v2/irdevice/controller/keys'
	Line 2761:('/v2/irdevice/controller/key/click'
	Line 2773:('/v2/irdevice/send_key'
	Line 2810:('/v2/ircode/categories'
	Line 2822:('/v2/ircode/category/brands'
	Line 2834:('/v2/ircode/controller/keys'
	Line 2846:('/v2/ircode/category/brand/controllers'
	Line 2858:('/v2/ircode/area/provinces/china'
	Line 2868:('/v2/ircode/area/province/cities'
	Line 2880:('/v2/ircode/sps'
	Line 2892:('/v2/ircode/area/city/areas'
	Line 2904:('/v2/ircode/sp/controllers'
	Line 2914:('/v2/ircode/iptv/brands'
	Line 2926:('/v2/ircode/iptv/brand/controllers'
	Line 2938:('/v2/ircode/controller/functions'
	Line 2950:('/v2/irdevice/controller/functions'
	Line 2962:('/v2/ircode/area/area_id'
	Line 2974:('/v2/ircode/area/lineups'

You could try it to see if anything appears.
chuangmi.remote.v2.json (936 Bytes)

I tried the json File, the device gets identified and i have the two channels. The indicator lamp works as expected, the Test remote cloud command does not work:

2021-12-18 22:25:43.845 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Locating action for miio:generic:102C4E54 channel 'test': 'miIO.ir_learn {"key": "1"}'

2021-12-18 22:25:46.852 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:generic:102C4E54' (miio:basic)

2021-12-18 22:25:47.107 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Processing custom refresh command response for 'get_indicatorLamp' - ["on"]

2021-12-18 22:25:47.430 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Processing custom refresh command response for '/v2/ircode/controller/keys' - null

2021-12-18 22:25:51.730 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:generic:102C4E54' (miio:basic)

2021-12-18 22:25:52.227 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Processing custom refresh command response for 'get_indicatorLamp' - ["on"]

I may need to add that you need the very latest version (less than 1 week old) of Openhab in order to use these cloud commands…

and… they may need some more parameters…
If you really want to know, there is a hacked mihome version from ‘vevs’ ЗАПИСКИ ЛЕНИВОГО ЭНТУЗИАСТА: Модифицированный Mi Home с переводом действий, условий и статусов (русский и английский языки) which allows to switch on debugging and logging of commands to your sd. This reveils what is the communication. These can than be repeated with openhab. (note. usual caution applies for installing apks from unknown source)