From a4ba7f3ba6f286507f086de303da325e7006cfa9 Mon Sep 17 00:00:00 2001 From: Marc J Date: Wed, 27 Sep 2023 14:50:36 -0700 Subject: [PATCH 1/4] Tuya number scaling (#3075) --- components/number/tuya.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/number/tuya.rst b/components/number/tuya.rst index af333a9ab..1fce958e3 100644 --- a/components/number/tuya.rst +++ b/components/number/tuya.rst @@ -48,6 +48,19 @@ 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. + +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: + +.. code-block:: yaml + + - platform: "tuya" + name: "pH Sensor" + number_datapoint: 106 + min_value: 0.00 + max_value: 15.00 + step: 0.01 + Configuration variables: ------------------------ From f5576ff87adf70080bdd460384384092863f69ab Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 28 Sep 2023 11:52:38 +1300 Subject: [PATCH 2/4] Bump version to 2023.9.1 --- Doxygen | 2 +- Makefile | 2 +- _static/version | 2 +- conf.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doxygen b/Doxygen index d71f8f319..e1357b583 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.0 +PROJECT_NUMBER = 2023.9.1 # 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 baa630b96..b011b3908 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ESPHOME_PATH = ../esphome -ESPHOME_REF = 2023.9.0 +ESPHOME_REF = 2023.9.1 .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 882e30299..6ac0daa6c 100644 --- a/_static/version +++ b/_static/version @@ -1 +1 @@ -2023.9.0 \ No newline at end of file +2023.9.1 \ No newline at end of file diff --git a/conf.py b/conf.py index 5976d9a99..9f6b0f89d 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.0" +release = "2023.9.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From 9d63cef219e6097843fb3b10119ce2b72e5a9bf3 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 28 Sep 2023 11:56:04 +1300 Subject: [PATCH 3/4] Update changelog for 2023.9.1 --- changelog/2023.9.0.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/changelog/2023.9.0.rst b/changelog/2023.9.0.rst index 0ace8df64..51207de3e 100644 --- a/changelog/2023.9.0.rst +++ b/changelog/2023.9.0.rst @@ -43,6 +43,12 @@ Following on from the previously added :doc:`/components/light/esp32_rmt_led_str :doc:`/components/light/neopixelbus` and :doc:`/components/light/fastled` that do not rely on the Arduino framework. +Release 2023.9.1 - September 28 +------------------------------- + +- Tuya Number Scaling :esphomepr:`5108` by :ghuser:`InvncibiltyCloak` +- Migrate dashboard json files to /data folder instead of wiping out :esphomepr:`5441` by :ghuser:`jesserockz` + Breaking Changes ---------------- @@ -54,6 +60,12 @@ This was done because it is exactly what the add-on ``/data`` folder was made fo that were making the Home Assistant Backup larger for no reason at all. All files in there are generated or sourced from online based on your configurations files which have not been touched. +.. note:: + + 2023.9.1 makes a further small change that moves the ``json`` files used by the dashboard into the new ``/data`` folder. + If you had already updated to 2023.9.0 though, the files would have already been removed and they will be re-generated + next time you install each device. + Enum device class ^^^^^^^^^^^^^^^^^ From 56b27ca5f812981a69c2e55beef45c55d380c7cb Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 28 Sep 2023 11:56:37 +1300 Subject: [PATCH 4/4] Update supporters for 2023.9.1 --- guides/supporters.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/guides/supporters.rst b/guides/supporters.rst index fa845a740..8c032257d 100644 --- a/guides/supporters.rst +++ b/guides/supporters.rst @@ -362,7 +362,6 @@ Contributors - `Derek M. (@doolbneerg) `__ - `Dorian Zedler (@dorianim) `__ - `Sebastian Krzyszkowiak (@dos1) `__ -- `Jiang Sheng (@doskoi) `__ - `Artem Sheremet (@dotdoom) `__ - `Robert Schütz (@dotlambda) `__ - `Daniel Hyles (@DotNetDann) `__ @@ -578,6 +577,7 @@ Contributors - `Dom (@Ing-Dom) `__ - `Ingo Becker (@ingobecker) `__ - `Ingurum (@Ingurum) `__ +- `Marc J (@InvncibiltyCloak) `__ - `IoT-devices LLC (@iotdevicesdev) `__ - `Ivo Roefs (@ironirc) `__ - `irtimaled (@irtimaled) `__ @@ -629,7 +629,6 @@ Contributors - `Jej (@jej) `__ - `Jens-Christian Skibakk (@jenscski) `__ - `Jeremy Willans (@jeremywillans) `__ -- `Jeroen (@jeroen85) `__ - `jerome992 (@jerome992) `__ - `Jérôme Laban (@jeromelaban) `__ - `Jesse Hills (@jesserockz) `__ @@ -816,7 +815,6 @@ Contributors - `Mohammed Chamma (@mef51) `__ - `megabitdragon (@megabitdragon) `__ - `meijerwynand (@meijerwynand) `__ -- `Marco (@Melkor82) `__ - `Melopero (@melopero) `__ - `melyux (@melyux) `__ - `Merlin Schumacher (@merlinschumacher) `__ @@ -1246,4 +1244,4 @@ Contributors - `Zsolt Zsiros (@ZsZs73) `__ - `Christian Zufferey (@zuzu59) `__ -*This page was last updated September 27, 2023.* +*This page was last updated September 28, 2023.*