merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
392 stars 61 forks source link

Support for IR remotes from Xiaomi Smart Speaker. #446

Closed romacv closed 1 year ago

romacv commented 1 year ago

Device model

Device name

I have Speaker with IR Remote control.

Successfully added this custom IR remote to homebridge, looks like it's supported and recognized as air conditioner, but doesn't work and does't response.

Here's config, i used IP and token of speaker and model and id of created remote. { "name": "Living Room AC Xiaomi", "ip": "192.168.1.41", "token": "6b4f316b556150307270383556797959", "deviceId": "ir.1622213879634477056", "model": "miir.aircondition.ir02", "pollingInterval": 10, "deepDebugLog": false, "buzzerControl": false, "ledControl": false, "childLockControl": false, "modeControl": true }

merdok commented 1 year ago

I mean the ir remote seems like a completely new device type. As I understand it does not support Bluetooth but uses infrared? How does it work? Does the ir remote send a signal to the gateway?

romacv commented 1 year ago

Speaker connect through Wi-Fi to cloud, then you can add sub devices, it will add new device like ac, tv, fan. I believe it send commands and works same like gateway-connected BLE/Zigbee devices. Here's you can see video about this device https://youtu.be/qWxBLC-iC4M

image

merdok commented 1 year ago

Are you requesting support for a ir remote or the smart speaker? This is something which is confusing me😅

romacv commented 1 year ago

This is Smart Speaker with IR gateway feature. Please check the link: https://www.mi.com/global/product/xiaomi-smart-speaker-ir-control/ I need to support Air Conditioner control via IR remote functionality. I believe it should work with cloud same like BLE/Zigbee child devices, but child devices - IR remotes.

merdok commented 1 year ago

So this is the device model which you need support for miir.aircondition.ir02?

romacv commented 1 year ago

So this is the device model which you need support for miir.aircondition.ir02?

Right.

merdok commented 1 year ago

Thanks for creating the pull requests! If the devices now work can we close this?

romacv commented 1 year ago

I'll duplicate updates here:

romacv commented 19 hours ago Unfortunately doesn't work, looks like IR control gateway more complicated.

merdok commented 20 minutes ago I think it should work the same or similar as BLE devices...

Let's study the issue in more detail later.

merdok commented 1 year ago

How do you enter the device data into the config? The same as for BLE devices? Did you try to use the miot cli to directly communicate to the device from the command line? That way you will be able to quickly test the communication and retrieve property values or execute actions.

AlokBansal8 commented 1 year ago

Is anyone working on providing support for IR Remote?

merdok commented 1 year ago

@AlokBansal8 what IR Remote do you have?