Boris Kaplounovsky

Results 9 comments of Boris Kaplounovsky

![nrf51822-pin](https://user-images.githubusercontent.com/877976/83853322-c9d08e80-a71d-11ea-8fd2-7abbc8d507dd.jpg) works on my side

@starkillerOG Currently I use xiaomi_aqara and it works, but: - it relies on legacy developer-api which is not supported by xiaomi, - some devices like 2ch relay is not supporter...

@starkillerOG @rytilahti It works :) you can look at code here https://github.com/bskaplou/python-miio/tree/fake_device fake_device.py is implementation of miio server which: 1. responds to miio HELO which are sent by gateway to...

But there are problems .... script: ``` {"id":4994,"method":"send_data_frame","params":{"cur":0,"data":"[[\"x.scene.2732711973\",[\"1.0\",1590158978,[\"0\",{\"src\":\"device\",\"key\":\"event.lumi.sensor_cube.v1.move\",\"did\":\"lumi.158d000103ec74\",\"model\":\"lumi.sensor_cube.v1\",\"token\":\"\",\"extra\":\"[1,18,2,85,[6,256],0,0]\",\"timespan\":[\"0 0 * * 0,1,2,3,4,5,6\",\"0 0 * * 0,1,2,3,4,5,6\"]}],[{\"id\":0,\"did\":\"120009025\",\"token\":\"79cf21b08fb051499389f23c113477a4\",\"ip\":\"192.168.2.94\",\"command\":\"chuangmi.plug.v3.set_usb_on\",\"value\":\"\",\"model\":\"chuangmi.plug.v3\",\"extra\":\"\"}]]]]","data_tkn":45293,"total":1,"type":"scene"}} ``` this script contains token 79cf21b08fb051499389f23c113477a4, but this token differs from real device token...

@rytilahti Right now callback receives source_device/action/params But I use method_name to pass source device to callback (the only way I found to identify source of event). So it will willingly...

It seems PR is almost here please drop a look https://github.com/bskaplou/python-miio/tree/fake_device https://github.com/rytilahti/python-miio/compare/master...bskaplou:fake_device?expand=1 Meanwhile I'll capture remaining actions of cube and square button and add their support into scripts . Afterwards...

> I'm wondering if the system supports wildcards for events Ammm ... I understood your question... No... Right now it works as follows: 1. Start fake server with device_id and...

@rytilahti How to make it work in hass: 1. Start fake_device in separate thread if cube/square_button found among device 2. Install scripts for all supported action X for all supported...

@rezmus Yes gateway is connected to the cloud. BTW did you sniffed cloud traffic?