From 2510fd817c460df4e55d993367979aeade5c87cd Mon Sep 17 00:00:00 2001 From: Faidon Liambotis Date: Tue, 3 Oct 2023 03:23:22 +0300 Subject: [PATCH 1/4] Tuya Number: split "multiply" to a separate option (#3224) Fixes: esphome/issues#4928 --- components/number/tuya.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/number/tuya.rst b/components/number/tuya.rst index 1fce958e3..929e6fdf7 100644 --- a/components/number/tuya.rst +++ b/components/number/tuya.rst @@ -48,9 +48,9 @@ Based on this, you can create a number as follows: max_value: 2 step: 1 -The value for ``step`` is used as the scaling factor for the Number. All numbers in Tuya are integers, so a scaling factor is sometimes needed to convert the Tuya reported value into floating point. +The value for ``multiply`` is used as the scaling factor for the Number. All numbers in Tuya are integers, so a scaling factor is sometimes needed to convert the Tuya reported value into floating point. -For instance, assume we have a pH sensor that reads from 0.00 to 15.00 with a scaling of 0.01. By setting `step` to 0.01, on the Tuya side (not visible to the user) the number will be reported as an integer from 0 to 1500. The following configuration could be used: +For instance, assume we have a pH sensor that reads from 0.00 to 15.00 with a scaling of 0.01. By setting ``multiply`` to 100, on the Tuya side (not visible to the user) the number will be reported as an integer from 0 to 1500. The following configuration could be used: .. code-block:: yaml @@ -59,7 +59,7 @@ For instance, assume we have a pH sensor that reads from 0.00 to 15.00 with a sc number_datapoint: 106 min_value: 0.00 max_value: 15.00 - step: 0.01 + multiply: 100 Configuration variables: ------------------------ @@ -69,7 +69,9 @@ Configuration variables: - **number_datapoint** (**Required**, int): The datapoint id number of the number. - **min_value** (**Required**, float): The minimum value this number can be. - **max_value** (**Required**, float): The maximum value this number can be. -- **step** (**Required**, float): The granularity with which the number can be set. +- **step** (**Optional**, float): The granularity with which the number can be set. Defaults to 1. +- **multiply** (**Optional**, float): multiply the new value with this factor before sending the requests. + - All other options from :ref:`Number `. See Also From fea202350b0704feab5caacce03c6f1eb5556c42 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:35:23 +1300 Subject: [PATCH 2/4] Bump version to 2023.9.3 --- Doxygen | 2 +- Makefile | 2 +- _static/version | 2 +- conf.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doxygen b/Doxygen index 292f46656..982c4e2c3 100644 --- a/Doxygen +++ b/Doxygen @@ -38,7 +38,7 @@ PROJECT_NAME = "ESPHome" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 2023.9.2 +PROJECT_NUMBER = 2023.9.3 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/Makefile b/Makefile index 0903e6232..b4d4d4e5d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ESPHOME_PATH = ../esphome -ESPHOME_REF = 2023.9.2 +ESPHOME_REF = 2023.9.3 .PHONY: html html-strict cleanhtml deploy help live-html Makefile netlify netlify-api api netlify-dependencies svg2png copy-svg2png minify diff --git a/_static/version b/_static/version index 475fd623d..bb764935a 100644 --- a/_static/version +++ b/_static/version @@ -1 +1 @@ -2023.9.2 \ No newline at end of file +2023.9.3 \ No newline at end of file diff --git a/conf.py b/conf.py index 67619b417..17833ff9b 100644 --- a/conf.py +++ b/conf.py @@ -69,7 +69,7 @@ author = "ESPHome" # The short X.Y version. version = "2023.9" # The full version, including alpha/beta/rc tags. -release = "2023.9.2" +release = "2023.9.3" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From 11f083dfc8e242afa22f8b3610431b4098bf0fc7 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:35:46 +1300 Subject: [PATCH 3/4] Update changelog for 2023.9.3 --- changelog/2023.9.0.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/changelog/2023.9.0.rst b/changelog/2023.9.0.rst index aa657249c..ca8e9b0d7 100644 --- a/changelog/2023.9.0.rst +++ b/changelog/2023.9.0.rst @@ -57,6 +57,16 @@ Release 2023.9.2 - October 2 - Fix SPI support for second bus on 2023.9.1 :esphomepr:`5456` by :ghuser:`angelnu` - Ensure esphome directory exists on addon startup :esphomepr:`5464` by :ghuser:`jesserockz` +Release 2023.9.3 - October 3 +---------------------------- + +- Bump zeroconf from 0.112.0 to 0.115.0 :esphomepr:`5432` by :ghuser:`dependabot[bot]` +- add pin config for denky_d4 :esphomepr:`5471` by :ghuser:`alucryd` +- Support RP2040 hardware SPI :esphomepr:`5466` by :ghuser:`clydebarrow` +- Bump zeroconf from 0.115.0 to 0.115.1 :esphomepr:`5470` by :ghuser:`dependabot[bot]` +- Sleep mode fix for BP5758D driver :esphomepr:`5461` by :ghuser:`dwildstr` +- Tuya Number: split "multiply" to a separate option :esphomepr:`5458` by :ghuser:`paravoid` + Breaking Changes ---------------- From f334f7b449c62de8bb7d6c637be1b90eeb0bfb08 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:36:19 +1300 Subject: [PATCH 4/4] Update supporters for 2023.9.3 --- guides/supporters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/supporters.rst b/guides/supporters.rst index d3bdb5f2f..c6dfcd123 100644 --- a/guides/supporters.rst +++ b/guides/supporters.rst @@ -771,7 +771,6 @@ Contributors - `Scott Cappellani (@maeneak) `__ - `Magnus Nordlander (@magnusnordlander) `__ - `majbthrd (@majbthrd) `__ -- `Major Péter (@majorpeter) `__ - `Kasper Malfroid (@malfroid) `__ - `Malle355 (@Malle355) `__ - `raymonder jin (@mamil) `__ @@ -929,6 +928,7 @@ Contributors - `Derrick Lyndon Pallas (@pallas) `__ - `Panuruj Khambanonda (PK) (@panuruj) `__ - `Daniel Mahaney (@Papa-DMan) `__ +- `Faidon Liambotis (@paravoid) `__ - `Patrick Collins (@patrickcollins12) `__ - `Paul Deen (@PaulAntonDeen) `__ - `Paul Monigatti (@paulmonigatti) `__ @@ -1246,4 +1246,4 @@ Contributors - `Zsolt Zsiros (@ZsZs73) `__ - `Christian Zufferey (@zuzu59) `__ -*This page was last updated October 2, 2023.* +*This page was last updated October 3, 2023.*