{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4547","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4547/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4547/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4547/events","html_url":"https://github.com/home-assistant/home-assistant/pull/4547","id":191252980,"number":4547,"title":"[WIP] Rflink 433Mhz gateway platform and components","user":{"login":"aequitas","id":365827,"avatar_url":"https://avatars.githubusercontent.com/u/365827?v=3","gravatar_id":"","url":"https://api.github.com/users/aequitas","html_url":"https://github.com/aequitas","followers_url":"https://api.github.com/users/aequitas/followers","following_url":"https://api.github.com/users/aequitas/following{/other_user}","gists_url":"https://api.github.com/users/aequitas/gists{/gist_id}","starred_url":"https://api.github.com/users/aequitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aequitas/subscriptions","organizations_url":"https://api.github.com/users/aequitas/orgs","repos_url":"https://api.github.com/users/aequitas/repos","events_url":"https://api.github.com/users/aequitas/events{/privacy}","received_events_url":"https://api.github.com/users/aequitas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-11-23T12:01:50Z","updated_at":"2016-12-19T12:30:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4547","html_url":"https://github.com/home-assistant/home-assistant/pull/4547","diff_url":"https://github.com/home-assistant/home-assistant/pull/4547.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/4547.patch"},"body":"**Description:** The change is intended to add support for the Rflink gateway devices (http://www.nemcon.nl/blog2/ & https://www.nodo-shop.nl/nl/21-rflink-gateway) which allow receiving and sending of 433Mhz packets much like rfxtrx. It builds on the rflink python package (https://pypi.python.org/pypi/rflink) which was initiated for this cause.\r\n\r\nAt the moment this is a very rough (but working) sketch with a lot of debugging. Expect much of the code to be changed, move around or migrate towards the rflink package to be available for a broader audience.\r\n\r\n**Feel free to leave feedback or feature requests.**\r\n\r\nI try to model this close to the rfxtrx platform but since this platform is developed asyncio first not a lot can be shared (yet).\r\n\r\n**Please help by testing this out with your own Rflink device and providing feedback.**\r\n\r\nWhat works at the moment:\r\n- [x] Receiving and sending of on/off switch events to control lights.\r\n- [x] Automatically adding discovered devices (but not stored yet)\r\n- [x] Temparature & humidity sensors\r\n\r\nTodos:\r\n- [ ] add tests\r\n- [ ] fix linting\r\n- [ ] cleanup\r\n- [ ] doorbell support\r\n- [ ] covers support? \r\n- [x] persistent devices from configuration.yaml\r\n- [ ] assumed state configuration? (per device?)\r\n- [ ] temperature unit per device configuration\r\n- [ ] (debug) logging through log framework\r\n- [ ] shared known devices (light can be configured as switch)\r\n- [ ] component.rflink spawns devices? or event to create platform device?\r\n- [ ] use service pattern instead of direct bus events? \r\n- [ ] rflink unsupported devices debug enable\r\n- [ ] leave last box unchecked\r\n- [ ] config validation\r\n- [ ] loading previous state from recorder\r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):** home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\nrflink:\r\n  port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55632313338351B08080-if00\r\n  # send simultaneous commands as quickly as possible (may cause commands to fail)\r\n  # wait_for_ack: false\r\n  # ignore_device:\r\n  #   - digitech_*\r\n \r\nlight:\r\n  - platform: rflink\r\n    # adds new devices to this group if not configured below\r\n    new_devices_group: New Rflink Lights\r\n    devices:\r\n      newkaku_00000001_a:\r\n        name: bedroom\r\n      newkaku_00000001_b:\r\n        name: kitchen\r\n        aliasses:\r\n          - kaku_000000_3\r\n\r\nsensor:\r\n  - platform: rflink\r\n    # adds new devices to this group if not configured below\r\n    new_devices_group: New Rflink Sensors\r\n    devices:\r\n      digitech_002f:\r\n        # a single rflink packet can contain multiple values (eg: temperature and humidity)\r\n        # setting value_key allows to specify which key should be used from the packet\r\n        value_key: temperature\r\n\r\nswitch:\r\n  - platform: rflink\r\n    devices:\r\n      newkaku_00000001_1:\r\n        name: ventilator\r\n        icon: mdi:fan\r\n\r\n```\r\n\r\nIf you want to test this on for example your laptop/desktop without having to modify your existing HASS server but you don't want to have your Rflink hooked to the serial port of your laptop/desktop, this module support connecting through TCP as well. On the host connected to the Rflink install `socat` and run:\r\n\r\n```bash\r\nsocat -ddd /dev/ttyACM0,b57600 TCP-LISTEN:1234,reuseaddr\r\n```\r\n\r\nThis will expose the serial line on a tcp connection.\r\n\r\nThen configure the component like this:\r\n```yaml\r\nrflink:\r\n  host: hostname\r\n  port: 1234\r\n\r\nlight:\r\n  - platform: rflink\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/267953120","html_url":"https://github.com/home-assistant/home-assistant/pull/4547#issuecomment-267953120","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4547","id":267953120,"user":{"login":"pepeEL","id":16692223,"avatar_url":"https://avatars.githubusercontent.com/u/16692223?v=3","gravatar_id":"","url":"https://api.github.com/users/pepeEL","html_url":"https://github.com/pepeEL","followers_url":"https://api.github.com/users/pepeEL/followers","following_url":"https://api.github.com/users/pepeEL/following{/other_user}","gists_url":"https://api.github.com/users/pepeEL/gists{/gist_id}","starred_url":"https://api.github.com/users/pepeEL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepeEL/subscriptions","organizations_url":"https://api.github.com/users/pepeEL/orgs","repos_url":"https://api.github.com/users/pepeEL/repos","events_url":"https://api.github.com/users/pepeEL/events{/privacy}","received_events_url":"https://api.github.com/users/pepeEL/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T12:30:00Z","updated_at":"2016-12-19T12:30:00Z","body":"ok i am waiting for add officialy with good easy manual how configure it and add devices."}}
{"actor":{"display_login":"pepeEL"}}