{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4153","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4153/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4153/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4153/events","html_url":"https://github.com/home-assistant/home-assistant/issues/4153","id":186297849,"number":4153,"title":"MQTT Fan component does not have a control for setting fan speed","user":{"login":"FrenkK","id":10543626,"avatar_url":"https://avatars.githubusercontent.com/u/10543626?v=3","gravatar_id":"","url":"https://api.github.com/users/FrenkK","html_url":"https://github.com/FrenkK","followers_url":"https://api.github.com/users/FrenkK/followers","following_url":"https://api.github.com/users/FrenkK/following{/other_user}","gists_url":"https://api.github.com/users/FrenkK/gists{/gist_id}","starred_url":"https://api.github.com/users/FrenkK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrenkK/subscriptions","organizations_url":"https://api.github.com/users/FrenkK/orgs","repos_url":"https://api.github.com/users/FrenkK/repos","events_url":"https://api.github.com/users/FrenkK/events{/privacy}","received_events_url":"https://api.github.com/users/FrenkK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-31T14:30:49Z","updated_at":"2017-01-05T06:32:07Z","closed_at":null,"body":"Version 0.30.1, Python 3.5.2, running on Windows\r\nI'm trying to set up a MQTT Fan component.\r\nThis is my setup:\r\n```YAML\r\nfan:\r\n  platform: mqtt\r\n  name: \"Prezracevanje\"\r\n  command_topic: \"Unity/Engine/Prezracevanje/Set/Dummy\"\r\n  speed_state_topic: \"Unity/Engine/Prezracevanje\"\r\n  speed_command_topic: \"Unity/Engine/Prezracevanje/Set\"\r\n  retain: false\r\n  qos: 0\r\n  payload_off: \"0\"\r\n  payload_low_speed: \"1\"\r\n  payload_medium_speed: \"2\"\r\n  payload_high_speed: \"3\"\r\n```\r\nMy ventilation system is always on (the reason for the \"Dummy\" command topic) and I want to control the speed using this component. Speeds are set with numbers from 0 to 3 sent to the speed command topic.\r\nI get a component that doesn't have a control for setting speeds.\r\n![image](https://cloud.githubusercontent.com/assets/10543626/19857493/238ad01c-9f7e-11e6-90dc-3806dba3b97c.png)\r\nAm I doing something wrong or is the component not complete?"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/270574095","html_url":"https://github.com/home-assistant/home-assistant/issues/4153#issuecomment-270574095","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4153","id":270574095,"user":{"login":"FrenkK","id":10543626,"avatar_url":"https://avatars.githubusercontent.com/u/10543626?v=3","gravatar_id":"","url":"https://api.github.com/users/FrenkK","html_url":"https://github.com/FrenkK","followers_url":"https://api.github.com/users/FrenkK/followers","following_url":"https://api.github.com/users/FrenkK/following{/other_user}","gists_url":"https://api.github.com/users/FrenkK/gists{/gist_id}","starred_url":"https://api.github.com/users/FrenkK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrenkK/subscriptions","organizations_url":"https://api.github.com/users/FrenkK/orgs","repos_url":"https://api.github.com/users/FrenkK/repos","events_url":"https://api.github.com/users/FrenkK/events{/privacy}","received_events_url":"https://api.github.com/users/FrenkK/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T06:32:07Z","updated_at":"2017-01-05T06:32:07Z","body":"Being somewhat frustrated by this issue, I found a workaround until it gets fixed:\r\nSetup a MQTT sensor that reads the fan state (integer 0-3 in my case), then setup an input slider to set the commanded state (again integer 0-3), group them together in a panel and add an automation rule that sends a MQTT update when you move the slider like this:\r\n```\r\ninput_slider:\r\n  commanded_ventilation_state:\r\n    name: \"Nastavitev_prezracevanja\"\r\n    initial: 0\r\n    min: 0\r\n    max: 3\r\n    step: 1\r\n    \r\nautomation:\r\n  - alias: \"Vent\"\r\n    trigger:\r\n      platform: state\r\n      entity_id: input_slider.commanded_ventilation_state\r\n    action:\r\n      service: mqtt.publish\r\n      data:\r\n        topic: \"Unity/Engine/Prezracevanje/Set\"\r\n        payload_template: \"{{ states('input_slider.commanded_ventilation_state') | int }}\"\r\n        retain: false\r\n        qos: 0\r\n```\r\nIt's not fancy, but it works."}}
{"actor":{"display_login":"FrenkK"}}