{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13879","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13879/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13879/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13879/events","html_url":"https://github.com/home-assistant/home-assistant/issues/13879","id":314331362,"number":13879,"title":"vacuum component parameters with send_command do not work (#13834)","user":{"login":"ciB89","id":20285334,"avatar_url":"https://avatars1.githubusercontent.com/u/20285334?v=4","gravatar_id":"","url":"https://api.github.com/users/ciB89","html_url":"https://github.com/ciB89","followers_url":"https://api.github.com/users/ciB89/followers","following_url":"https://api.github.com/users/ciB89/following{/other_user}","gists_url":"https://api.github.com/users/ciB89/gists{/gist_id}","starred_url":"https://api.github.com/users/ciB89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciB89/subscriptions","organizations_url":"https://api.github.com/users/ciB89/orgs","repos_url":"https://api.github.com/users/ciB89/repos","events_url":"https://api.github.com/users/ciB89/events{/privacy}","received_events_url":"https://api.github.com/users/ciB89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-14T14:01:55Z","updated_at":"2018-04-15T07:34:09Z","closed_at":null,"author_association":"NONE","body":"<!-- READ THIS FIRST:\r\n- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/\r\n- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases\r\n- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components\r\n- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests\r\n- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!\r\n-->\r\n\r\n**Home Assistant release with the issue:**\r\n0.66.1\r\n\r\n\r\n**Last working Home Assistant release (if known):**\r\n\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\nHass.io\r\n\r\n**Component/platform:**\r\nhttps://www.home-assistant.io/components/vacuum.xiaomi_miio/\r\nhttps://www.home-assistant.io/components/vacuum/\r\n\r\n\r\n**Description of problem:**\r\n\"send_command\" does not work with parameters (#13834 ). \r\nTested with\r\n\r\n`{ \r\n\"entity_id\": \"vacuum.mozart\", \r\n\"command\": \"set_dnd_timer\", \r\n\"params\": {\"start_hr\": 22, \"start_min\": 0, \"end_hr\": 6, \"end_min\": 0}\r\n }`\r\n\r\nParamters key were taken from official python_miio manual. No matter what I try, the vacuum will not take any parameters. Custom commands without parameters however work as tested with\r\n\r\n`{ \r\n\"entity_id\": \"vacuum.mozart\", \r\n\"command\": \"close_dnd_timer\" \r\n}`\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```yaml\r\n\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\n\r\n```\r\n\r\n**Additional information:**\r\nMy actual intent is to get the new commands \"app_goto_target\" and \"app_zoned_clean\" to work, which have to take coordinates as parameters. (cf. [iobroker](https://github.com/ioBroker/ioBroker.mihome-vacuum) and [XiaomiRobotVacuumProtocol](https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/app_zoned_clean.md)). The zoned cleaning was recently added to the xiaomis v1 robot. \r\n\r\nWhen a new map is created, the location of the robot is always the [25000,25000] coordinate. Hence you could make automations for cleaning certain areas/rooms if you don't mess up your map (e.g. carry the robot around - which still can be easily fixed by setting him back to the docking station and let him create a new map) \r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/381386584","html_url":"https://github.com/home-assistant/home-assistant/issues/13879#issuecomment-381386584","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13879","id":381386584,"user":{"login":"ciB89","id":20285334,"avatar_url":"https://avatars1.githubusercontent.com/u/20285334?v=4","gravatar_id":"","url":"https://api.github.com/users/ciB89","html_url":"https://github.com/ciB89","followers_url":"https://api.github.com/users/ciB89/followers","following_url":"https://api.github.com/users/ciB89/following{/other_user}","gists_url":"https://api.github.com/users/ciB89/gists{/gist_id}","starred_url":"https://api.github.com/users/ciB89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciB89/subscriptions","organizations_url":"https://api.github.com/users/ciB89/orgs","repos_url":"https://api.github.com/users/ciB89/repos","events_url":"https://api.github.com/users/ciB89/events{/privacy}","received_events_url":"https://api.github.com/users/ciB89/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T07:34:09Z","updated_at":"2018-04-15T07:34:09Z","author_association":"NONE","body":"Sorry I seemed to miss it. The device replies with \"ok\" whatever parameters I send, as long as they are a dictionary. But it does not update the dnd time.\r\n```2018-04-15 09:30:49 DEBUG (SyncWorker_6) [miio.device] 192.168.0.64:54321 >>: {'id': 502, 'method': 'set_dnd_timer', 'params': {'start_hor': 22, 'start_minute': 0, 'end_hour': 6, 'end_minute': 0}}\r\n2018-04-15 09:30:49 DEBUG (SyncWorker_6) [miio.device] 192.168.0.64:54321 (ts: 2018-04-15 07:30:48, id: 502) << {'result': ['ok'], 'id': 502}```\r\n"}}
{"actor":{"display_login":"ciB89"}}