From 641e7dcafc1f54fa045476f6d3473cfa1eb537dc Mon Sep 17 00:00:00 2001 From: Martin <25747549+martgras@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:28:10 +0100 Subject: [PATCH 1/3] Fix max7219digit scroll mode (#1698) --- components/display/max7219digit.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/display/max7219digit.rst b/components/display/max7219digit.rst index 692bb6c7e..dc6d26ebe 100644 --- a/components/display/max7219digit.rst +++ b/components/display/max7219digit.rst @@ -115,7 +115,7 @@ They can also be changed in the Lambda by adding the following command: - **on/off** -> switch scrolling on or off, use true or false -- **mode** -> 0 = Continuous scrolling, 1 = Stop at end and reset +- **mode** -> max7219digit::CONTINUOUS for continuous scrolling, max7219digit::STOP = Stop at end and reset - **speed** -> Set speed of scrolling (ms for every step of one dot) - **delay** -> pause time at start of scrolling - **dwell** -> pause at end of scrolling (only in mode 1) @@ -127,9 +127,9 @@ They can also be changed in the Lambda by adding the following command: # ... lambda: |- # ... - it.scroll(true, 0, 100, 5000, 1500); + it.scroll(true, max7219digit::CONTINUOUS, 100, 5000, 1500); // OR - it.scroll(true, 0); + it.scroll(true, max7219digit::CONTINUOUS); // OR it.scroll(true); From a2067b528604580284af59db7c4df69950b05e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= Date: Mon, 6 Dec 2021 13:29:41 +0200 Subject: [PATCH 2/3] Make Table of Contents scrollable (#1696) Inspired by https://stackoverflow.com/a/57040610/1283519, this change makes the Table of Contents scrollable (the menu as seen on on the left side in a non-mobile browser). Fixes https://github.com/esphome/issues/issues/2088. --- _static/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_static/custom.css b/_static/custom.css index d6723c9d8..c9f761428 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -13,6 +13,11 @@ div.body { min-width: initial; } +div.sphinxsidebar { + max-height: 100%; + overflow-y: auto; +} + img.component-image { border: none; vertical-align: middle; From c11958ca7e5c00c385b7a4c508fc5815a978e64c Mon Sep 17 00:00:00 2001 From: Martin <25747549+martgras@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:35:34 +0100 Subject: [PATCH 3/3] Add missing documentation for pm_size (#1699) --- components/sensor/sps30.rst | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/components/sensor/sps30.rst b/components/sensor/sps30.rst index 8e91d7d14..d476730e0 100644 --- a/components/sensor/sps30.rst +++ b/components/sensor/sps30.rst @@ -48,6 +48,9 @@ This sensor supports both UART and I²C communication. However, at the moment on pmc_10_0: name: "Workshop PM <10µm Number concentration" id: "workshop_PMC_10_0" + pm_size: + name: "Typical Particle size" + id: "pm_size" address: 0x69 update_interval: 10s @@ -57,55 +60,61 @@ Configuration variables: - **pm_1_0** (*Optional*): The information for the **Weight Concentration** sensor for fine particles up to 1μm. Readings in µg/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pm_2_5** (*Optional*): The information for the **Weight Concentration** sensor for fine particles up to 2.5μm. Readings in µg/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pm_4_0** (*Optional*): The information for the **Weight Concentration** sensor for coarse particles up to 4μm. Readings in µg/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pm_10_0** (*Optional*): The information for the **Weight Concentration** sensor for coarse particles up to 10μm. Readings in µg/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pmc_0_5** (*Optional*): The information for the **Number Concentration** sensor for ultrafine particles up to 0.5μm. Readings in particles/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pmc_1_0** (*Optional*): The information for the **Number Concentration** sensor for fine particles up to 1μm. Readings in particles/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pmc_2_5** (*Optional*): The information for the **Number Concentration** sensor for fine particles up to 2.5μm. Readings in particles/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pmc_4_0** (*Optional*): The information for the **Number Concentration** sensor for coarse particles up to 4μm. Readings in particles/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **pmc_10_0** (*Optional*): The information for the **Number Concentration** sensor for coarse particles up to 10μm. Readings in particles/m³. - **name** (**Required**, string): The name for this sensor. - - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. + - All other options from :ref:`Sensor `. + +- **pm_size** (*Optional*): Typical particle size in μm. + + - **name** (**Required**, string): The name for this sensor. + - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in automation and lambdas. - All other options from :ref:`Sensor `. - **address** (*Optional*, int): Manually specify the I²C address of the sensor.