{"action":"created","issue":{"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/5","repository_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion","labels_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/5/comments","events_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/5/events","html_url":"https://github.com/syssi/xiaomi_airconditioningcompanion/issues/5","id":298535161,"number":5,"title":"IR Remote function support","user":{"login":"cxlwill","id":13537549,"avatar_url":"https://avatars2.githubusercontent.com/u/13537549?v=4","gravatar_id":"","url":"https://api.github.com/users/cxlwill","html_url":"https://github.com/cxlwill","followers_url":"https://api.github.com/users/cxlwill/followers","following_url":"https://api.github.com/users/cxlwill/following{/other_user}","gists_url":"https://api.github.com/users/cxlwill/gists{/gist_id}","starred_url":"https://api.github.com/users/cxlwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cxlwill/subscriptions","organizations_url":"https://api.github.com/users/cxlwill/orgs","repos_url":"https://api.github.com/users/cxlwill/repos","events_url":"https://api.github.com/users/cxlwill/events{/privacy}","received_events_url":"https://api.github.com/users/cxlwill/received_events","type":"User","site_admin":false},"labels":[{"id":840606859,"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-02-20T10:07:41Z","updated_at":"2018-05-10T18:29:14Z","closed_at":null,"author_association":"NONE","body":"Another issue, AC partner has IR remote learner inside which supply Air Conditioner IR codes for partner when some AC models unsupported naturally. So we can make use of chuangmi_ir component. Should we add this function into this component or add AC partner support for [IR Remote component](https://github.com/syssi/chuangmi_ir)?"},"comment":{"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/comments/388142777","html_url":"https://github.com/syssi/xiaomi_airconditioningcompanion/issues/5#issuecomment-388142777","issue_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/5","id":388142777,"user":{"login":"yawor","id":352649,"avatar_url":"https://avatars3.githubusercontent.com/u/352649?v=4","gravatar_id":"","url":"https://api.github.com/users/yawor","html_url":"https://github.com/yawor","followers_url":"https://api.github.com/users/yawor/followers","following_url":"https://api.github.com/users/yawor/following{/other_user}","gists_url":"https://api.github.com/users/yawor/gists{/gist_id}","starred_url":"https://api.github.com/users/yawor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yawor/subscriptions","organizations_url":"https://api.github.com/users/yawor/orgs","repos_url":"https://api.github.com/users/yawor/repos","events_url":"https://api.github.com/users/yawor/events{/privacy}","received_events_url":"https://api.github.com/users/yawor/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T18:29:14Z","updated_at":"2018-05-10T18:29:14Z","author_association":"NONE","body":"That `0x7f` (dec value 121) byte seems to be some kind of command index or slot. In the code, it's called shortCmd and its starting value seems to be 121. Both the `cq` and `cr` methods in the above decompiled code are called by the callback after running `get_ir_learn_result` command and is provided with the resulting data. The first `String` argument for `cr` method is the result retrieved from the device and second `String` is a value returned by `cq` method. The `cq` method seems to look for a free command slot, starting from value 121 and returns first slot number without a recorded IR command, encoded as a hex string.\r\n\r\nI don't know if the device actually cares about that value. I think it's used by the app (it may be stored in the sqlite) and synchronised with Xiaomi servers. I wonder if the device actually stores these IR commands on its flash memory."}}
{"actor":{"display_login":"yawor"}}