XiaomiGateway3 icon indicating copy to clipboard operation
XiaomiGateway3 copied to clipboard

Can you support LinpTech KE1BB-W2? Now I only can see some action log.

Open xiaodongyichuan opened this issue 1 year ago • 8 comments

微信图片_20231128172312

xiaodongyichuan avatar Nov 28 '23 09:11 xiaodongyichuan

this is this product information https://www.energyharvesting.cn/ke1bb-mi/

xiaodongyichuan avatar Nov 28 '23 09:11 xiaodongyichuan

the model in mijia is linp.remote.k9b11

xiaodongyichuan avatar Nov 28 '23 11:11 xiaodongyichuan

pdid is 5481

xiaodongyichuan avatar Nov 28 '23 13:11 xiaodongyichuan

in log files, left SINGLE is 0, left switch SINGLE is 1, Left And Right Button SINGLE is 2, left DOUBLE is 131072, left switch DOUBLE is 131073, left HOLDis 65536, left switch HOLD is 65537,Left And Right Button HOLD is 65538,

xiaodongyichuan avatar Nov 29 '23 10:11 xiaodongyichuan

Looks like you already has converter for this device

AlexxIT avatar Jan 05 '24 09:01 AlexxIT

Looks like you already has converter for this device

But there is not automation option in automation

xiaodongyichuan avatar Jan 05 '24 10:01 xiaodongyichuan

Looks like you already has converter for this device

But there is not automation option in automation

i add some converter in config , it only show right device name, other is not work

xiaodongyichuan avatar Jan 05 '24 10:01 xiaodongyichuan

If you want automation options, you should program them.

AlexxIT avatar Jan 05 '24 11:01 AlexxIT

If you want automation options, you should program them.

Means program them in "class MiBeaconConv(Converter):"?

Thanks

xiaodongyichuan avatar Mar 06 '24 07:03 xiaodongyichuan

  1. Hass can't autodetect all triggers for some specific devices. Developers needs to add all possible triggers manually via code like this: https://github.com/AlexxIT/XiaomiGateway3/blob/master/custom_components/xiaomi_gateway3/device_trigger.py
  2. It's not necessary to add this code, because any user can write automations with simple entity state triggers

AlexxIT avatar Mar 06 '24 09:03 AlexxIT

  1. Hass can't autodetect all triggers for some specific devices. Developers needs to add all possible triggers manually via code like this: https://github.com/AlexxIT/XiaomiGateway3/blob/master/custom_components/xiaomi_gateway3/device_trigger.py

    1. It's not necessary to add this code, because any user can write automations with simple entity state triggers

I know your means, I have set it well, thanks very much.

xiaodongyichuan avatar Mar 07 '24 13:03 xiaodongyichuan

@xiaodongyichuan Please give me your code ,I have the same problem with the Linptech Bluetooth Wireless Switch (3 Keys), PID 3581, [email protected], thank you

chaucern82 avatar Mar 23 '24 01:03 chaucern82

@xiaodongyichuan Please give me your code ,I have the same problem with the Linptech Bluetooth Wireless Switch (3 Keys), PID 3581, [email protected], thank you

chaucern82 avatar Mar 23 '24 01:03 chaucern82

@xiaodongyichuan Please give me your code ,I have the same problem with the Linptech Bluetooth Wireless Switch (3 Keys), PID 3581, [email protected], thank you

这不需要写代码,你看一下你按按键的时候在设备页面的日志里面有没有对应的状态变化,设置自动化的时候选择实体状态,填写对应的日志状态变化数值就可以啦。

xiaodongyichuan avatar Mar 23 '24 01:03 xiaodongyichuan

明白了,非常感谢@xiaodongyichuan

chaucern82 avatar Mar 23 '24 02:03 chaucern82

Probably automations will be simplier in next version

AlexxIT avatar Mar 24 '24 06:03 AlexxIT

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v4.0.0

AlexxIT avatar Mar 31 '24 17:03 AlexxIT