From 7e84cc707e8611fd7d35c4fc2b320d38a97fbf1f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 3 Jan 2020 13:32:01 +0100 Subject: [PATCH] Fix remark linting warnings (#11615) --- source/_integrations/picotts.markdown | 2 +- source/_integrations/vacuum.xiaomi_miio.markdown | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/source/_integrations/picotts.markdown b/source/_integrations/picotts.markdown index 6f072958659..cbc6dba5528 100644 --- a/source/_integrations/picotts.markdown +++ b/source/_integrations/picotts.markdown @@ -13,7 +13,7 @@ On some Raspbian release, this package is missing but you can just copy the arm On Debian Buster, the package is missing, use the following commands to install it: -``` +```bash wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-9_armhf.deb wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-9_armhf.deb sudo apt-get install -f ./libttspico0_1.0+git20130326-9_armhf.deb ./libttspico-utils_1.0+git20130326-9_armhf.deb diff --git a/source/_integrations/vacuum.xiaomi_miio.markdown b/source/_integrations/vacuum.xiaomi_miio.markdown index 085f92bfdad..cce32980088 100644 --- a/source/_integrations/vacuum.xiaomi_miio.markdown +++ b/source/_integrations/vacuum.xiaomi_miio.markdown @@ -114,6 +114,7 @@ Example of `xiaomi_miio.vacuum_clean_zone` use: Inline array: {% raw %} + ```yaml automation: - alias: Test vacuum zone3 @@ -128,10 +129,12 @@ automation: repeats: '{{states('input_number.vacuum_passes')|int}}' zone: [[30914,26007,35514,28807], [20232,22496,26032,26496]] ``` + {% endraw %} Array with inline zone: {% raw %} + ```yaml automation: - alias: Test vacuum zone3 @@ -148,9 +151,11 @@ automation: - [30914,26007,35514,28807] - [20232,22496,26032,26496] ``` + {% endraw %} Array mode: + ```yaml automation: - alias: Test vacuum zone3 @@ -225,7 +230,6 @@ This token (32 hexadecimal characters) is required for the Xiaomi Mi Robot Vacuu 2. Using `v5.4.49` of Mi Home locate a text file under the `Smarthome/logs` folder where the 32 character token is stored. 3. There will likely be several text files in this directory, search all of them for the word 'token' and you should find it there. Be advised that the latest version of Mi Home does not store the token in clear text. - ### Linux and Rooted Android 1. To begin, set up your Robovac with the latest version of Mi Home on your primary Android device as you normally would. @@ -250,14 +254,18 @@ This token (32 hexadecimal characters) is required for the Xiaomi Mi Robot Vacuu 9. Open DB Browser and load the `.sqlite` file you saved from your backup. 10. Click on the `Execute SQL` tab. 11. Input and run this query: + ```sql SELECT ZTOKEN FROM ZDEVICE WHERE ZMODEL LIKE "%vacuum%" ``` + 12. Copy the returned 96-digit hexadecimal string to your clipboard. 13. Open `Terminal` and execute this command: + ```bash echo '0: ' | xxd -r -p | openssl enc -d -aes-128-ecb -nopad -nosalt -K 00000000000000000000000000000000 ``` + 14. Use the resulting 32-digit string as your token. (On your mac in front of the terminal session) ### Bluestacks @@ -323,7 +331,7 @@ The information output is: Using the map editor you are able to acquire the co-ordinates required for zoned clean up. Here is an example script for zoned clean up: -``` +```yaml vacuum_kitchen: alias: "vacuum kitchen" sequence: @@ -332,4 +340,4 @@ vacuum_kitchen: entity_id: 'vacuum.xiaomi_vacuum_cleaner' command: app_zoned_clean params: [[23084,26282,27628,29727,1]] -``` \ No newline at end of file +```