{"action":"created","issue":{"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/4","repository_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion","labels_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/4/comments","events_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/4/events","html_url":"https://github.com/syssi/xiaomi_airconditioningcompanion/issues/4","id":298532671,"number":4,"title":"Swing Mode Definition","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":840606860,"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T09:59:39Z","updated_at":"2018-02-20T11:30:19Z","closed_at":null,"author_association":"NONE","body":"As far as I know, actually `Swing Mode` here doesn't represent for  direction `up` and `down`. It should be recognized as boolean value for `on` and `off`. Is it defined by Home Assistant's climate component? If so maybe we can add another 2 modes for `on` and `off`?"},"comment":{"url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/comments/366949296","html_url":"https://github.com/syssi/xiaomi_airconditioningcompanion/issues/4#issuecomment-366949296","issue_url":"https://api.github.com/repos/syssi/xiaomi_airconditioningcompanion/issues/4","id":366949296,"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},"created_at":"2018-02-20T11:30:19Z","updated_at":"2018-02-20T11:30:19Z","author_association":"NONE","body":"Here's the screenshot of this device in MiHome app: \r\n![img_5707](https://user-images.githubusercontent.com/13537549/36421000-d5adbbfe-1671-11e8-920b-bc4b8160b56e.PNG)\r\n\r\nFor swing mode, I suggest only 'on' and 'off' , meaning automatically swing or not. Although it may become complex when some models support different mode of swing like up-down, left-right. \r\n\r\nFor payload, do you mean full IR code? Well, I think the idea in original component is that:\r\n1. It offers some built-in control codes and there are some general characters of codes like fourth number meaning `swing mode`. \r\n2. If your air conditioner is different from built-in supported one then you use IR Code learner(`Chuangmi_ir remote`) to learn your own codes  and add it to `config`.\r\n\r\nFurthermore, the reason of this method is that Xiaomi actually offers huge built-in IR code database in MiHome app or Xiaomi Cloud I guess. When you add this partner in Mihome app, you can choose your conditioner's brand and type, then most of time, it is supported automatically. No code learning needed."}}
{"actor":{"display_login":"cxlwill"}}