diff --git a/changelog/2021.10.0.rst b/changelog/2021.10.0.rst index 7eed6a92f..2662fd4d3 100644 --- a/changelog/2021.10.0.rst +++ b/changelog/2021.10.0.rst @@ -143,6 +143,19 @@ Release 2021.10.2 - October 22 - Fix ESP8266 OTA compression only starting framework v2.7.0 :esphomepr:`2610` by :ghuser:`OttoWinter` - Bugfix tca9548a and idf refactor anh :esphomepr:`2612` by :ghuser:`andreashergert1984` +Release 2021.10.3 - October 27 +------------------------------ + +- fixed dependency for pca9685 component :esphomepr:`2614` by :ghuser:`andreashergert1984` +- Bump platform-espressif8266 from 2.6.2 to 2.6.3 :esphomepr:`2620` by :ghuser:`OttoWinter` +- Autodetect flash size :esphomepr:`2615` by :ghuser:`agners` +- Teleinfo ptec :esphomepr:`2599` by :ghuser:`0hax` +- Fix glue code missing micros() :esphomepr:`2623` by :ghuser:`OttoWinter` +- Remove power and energy from sensors that are not true power :esphomepr:`2628` by :ghuser:`jesserockz` +- fix modbus output :esphomepr:`2630` by :ghuser:`martgras` +- Fix pin number validation for sn74hc595 :esphomepr:`2621` by :ghuser:`sairon` +- Fix select.set using lambda :esphomepr:`2633` by :ghuser:`jesserockz` + Full list of changes -------------------- diff --git a/components/binary_sensor/gpio.rst b/components/binary_sensor/gpio.rst index 7c856bd67..7c869459f 100644 --- a/components/binary_sensor/gpio.rst +++ b/components/binary_sensor/gpio.rst @@ -44,7 +44,9 @@ you can do so with the :ref:`Pin Schema `. - platform: gpio pin: number: D2 - mode: INPUT_PULLUP + mode: + input: true + pullup: true name: ... Inverting Values diff --git a/components/climate/ir_climate.rst b/components/climate/ir_climate.rst index b4e8b0f04..4152dfa6e 100755 --- a/components/climate/ir_climate.rst +++ b/components/climate/ir_climate.rst @@ -126,7 +126,9 @@ IR receiver. pin: number: GPIO14 inverted: true - mode: INPUT_PULLUP + mode: + input: true + pullup: true # high 55% tolerance is recommended for some remote control units tolerance: 55% diff --git a/components/display/st7789v.rst b/components/display/st7789v.rst index a31af4619..a0b52a5ee 100644 --- a/components/display/st7789v.rst +++ b/components/display/st7789v.rst @@ -201,7 +201,9 @@ appropriate lines of C code in the lambda to hide or show the image or text as y pin: number: GPIO0 inverted: true - mode: INPUT_PULLUP + mode: + input: true + pullup: true name: "T-Display Button Input 0" id: tdisplay_button_input_0 - platform: gpio diff --git a/components/esphome.rst b/components/esphome.rst index 5a413afa5..43d3dcfbb 100644 --- a/components/esphome.rst +++ b/components/esphome.rst @@ -42,7 +42,7 @@ Advanced options: to include in the project. See `platformio lib install `__. The ``=`` syntax can be used to override the source used for a library that is included by a component. - **comment** (*Optional*, string): Additional text information about this node. Only for display in UI. -- **name_add_mac_suffix** (*Optional*, boolean): Appends the last 6 bytes of the mac address of the device to +- **name_add_mac_suffix** (*Optional*, boolean): Appends the last 3 bytes of the mac address of the device to the name in the form ``-aabbcc``. Defaults to ``false``. See :ref:`esphome-mac_suffix`. diff --git a/components/mcp230xx.rst b/components/mcp230xx.rst index fe9300dd3..bd6b00dc4 100644 --- a/components/mcp230xx.rst +++ b/components/mcp230xx.rst @@ -36,7 +36,8 @@ The MCP23008 component (`datasheet `): Filter any pulses that are shorter than this. Useful for removing - glitches from noisy signals. Defaults to ``10us``. + glitches from noisy signals. Defaults to ``50us``. - **idle** (*Optional*, :ref:`time `): The amount of time that a signal should remain stable (i.e. not change) for it to be considered complete. Defaults to ``10ms``. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. Use this if you have @@ -260,7 +260,9 @@ Remote code selection (exactly one of these has to be included): pin: number: D4 inverted: true - mode: INPUT_PULLUP + mode: + input: true + pullup: true dump: all diff --git a/components/sx1509.rst b/components/sx1509.rst index 126b01dba..751bd70ba 100644 --- a/components/sx1509.rst +++ b/components/sx1509.rst @@ -151,7 +151,9 @@ The outputs can in turn be used to add PWM-enabled lights like the monochromatic sx1509: sx1509_hub1 # Use pin number 0 on the SX1509 number: 0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true # Individual binary outputs @@ -163,7 +165,8 @@ The outputs can in turn be used to add PWM-enabled lights like the monochromatic # Use pin number 1 on the SX1509 number: 1 # use as output for switch - mode: OUTPUT + mode: + output: true inverted: false # Individual outputs diff --git a/components/tuya.rst b/components/tuya.rst index 6d4a3dd52..1ea533f78 100644 --- a/components/tuya.rst +++ b/components/tuya.rst @@ -68,5 +68,6 @@ See Also - :doc:`/components/switch/tuya` - :doc:`/components/climate/tuya` - :doc:`/components/binary_sensor/tuya` +- :doc:`/components/sensor/tuya` - :apiref:`tuya/tuya.h` - :ghedit:`Edit` diff --git a/cookbook/brilliant-mirabella-genio-smart-plugs.rst b/cookbook/brilliant-mirabella-genio-smart-plugs.rst index ee85021d7..9cf84c026 100644 --- a/cookbook/brilliant-mirabella-genio-smart-plugs.rst +++ b/cookbook/brilliant-mirabella-genio-smart-plugs.rst @@ -147,7 +147,9 @@ which these adaptions created by `@cryptelli `__, +Thanks to the amazing `Tasmota template `__, managed to build a fully working esphome configuration. This assumes you have a secret.yaml with ssid and password keys. .. code-block:: yaml @@ -39,7 +39,9 @@ managed to build a fully working esphome configuration. This assumes you have a id: button pin: number: GPIO4 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: True name: 'Switch feeder' on_press: diff --git a/cookbook/sonoff-basic-light-switch.rst b/cookbook/sonoff-basic-light-switch.rst index 5103ecb36..6fa6bab26 100644 --- a/cookbook/sonoff-basic-light-switch.rst +++ b/cookbook/sonoff-basic-light-switch.rst @@ -117,7 +117,9 @@ Now you have a pair of wires from the GPIO and 0V to your retractive switch lets - platform: gpio pin: number: GPIO14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_1 on_press: diff --git a/cookbook/sonoff-dual-light-switch.rst b/cookbook/sonoff-dual-light-switch.rst index 506530a98..60a224058 100644 --- a/cookbook/sonoff-dual-light-switch.rst +++ b/cookbook/sonoff-dual-light-switch.rst @@ -97,7 +97,9 @@ The R1 version of the Dual controls the relays via the UART, so the code gets a - platform: gpio pin: number: GPIO4 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_1 on_press: @@ -107,7 +109,9 @@ The R1 version of the Dual controls the relays via the UART, so the code gets a - platform: gpio pin: number: GPIO14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_2 on_press: @@ -196,7 +200,9 @@ It's basically the same as the :doc:`T2 ` - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button on_press: @@ -206,7 +212,9 @@ It's basically the same as the :doc:`T2 ` - platform: gpio pin: number: GPIO14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button on_press: diff --git a/cookbook/sonoff-fishpond-pump.rst b/cookbook/sonoff-fishpond-pump.rst index 2be2e66b1..8091a8228 100644 --- a/cookbook/sonoff-fishpond-pump.rst +++ b/cookbook/sonoff-fishpond-pump.rst @@ -115,7 +115,9 @@ Here is the configuration with the basic operations outlined above. name: "esp_fishpond_gpio14" pin: number: 14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true on_press: - switch.turn_off: esp_fishpond_pump diff --git a/cookbook/sonoff-t1-3.rst b/cookbook/sonoff-t1-3.rst index 371a54dd0..1306409f9 100644 --- a/cookbook/sonoff-t1-3.rst +++ b/cookbook/sonoff-t1-3.rst @@ -36,7 +36,9 @@ T1 - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_1 on_press: @@ -99,7 +101,9 @@ T2 - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_1 on_press: @@ -109,7 +113,9 @@ T2 - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_2 on_press: @@ -170,7 +176,9 @@ T3 - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_1 on_press: @@ -180,7 +188,9 @@ T3 - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_2 on_press: @@ -190,7 +200,9 @@ T3 - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true id: button_3 on_press: @@ -241,4 +253,3 @@ See Also - :doc:`/cookbook/sonoff-light-switch` - :doc:`/guides/automations` - :doc:`/devices/sonoff_t1_uk_3gang_v1.1` - diff --git a/devices/sonoff_4ch.rst b/devices/sonoff_4ch.rst index 596c02df9..2db0f062d 100644 --- a/devices/sonoff_4ch.rst +++ b/devices/sonoff_4ch.rst @@ -243,25 +243,33 @@ of the basic functions. - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 1" - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 2" - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 3" - platform: gpio pin: number: GPIO14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 4" - platform: status diff --git a/devices/sonoff_4ch.yaml b/devices/sonoff_4ch.yaml index 5c000e019..b76025555 100644 --- a/devices/sonoff_4ch.yaml +++ b/devices/sonoff_4ch.yaml @@ -17,7 +17,9 @@ binary_sensor: - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 1" on_press: @@ -25,7 +27,9 @@ binary_sensor: - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 2" on_press: @@ -33,7 +37,9 @@ binary_sensor: - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 3" on_press: @@ -41,7 +47,9 @@ binary_sensor: - platform: gpio pin: number: GPIO14 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff 4CH Button 4" on_press: diff --git a/devices/sonoff_basic.rst b/devices/sonoff_basic.rst index a0d330536..f9d1c2bfe 100644 --- a/devices/sonoff_basic.rst +++ b/devices/sonoff_basic.rst @@ -70,7 +70,9 @@ exposes all of the basic functions. - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff Basic Button" on_press: diff --git a/devices/sonoff_s20.rst b/devices/sonoff_s20.rst index 8559f8f12..6ee9ff0fd 100644 --- a/devices/sonoff_s20.rst +++ b/devices/sonoff_s20.rst @@ -225,7 +225,9 @@ of the basic functions. - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff S20 Button" - platform: status diff --git a/devices/sonoff_s20.yaml b/devices/sonoff_s20.yaml index 0e4e00b50..64f886cad 100644 --- a/devices/sonoff_s20.yaml +++ b/devices/sonoff_s20.yaml @@ -18,7 +18,9 @@ binary_sensor: - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff S20 Button" on_press: diff --git a/devices/sonoff_t1_uk_3gang_v1.1.rst b/devices/sonoff_t1_uk_3gang_v1.1.rst index a81d1568d..5ddb0b08d 100644 --- a/devices/sonoff_t1_uk_3gang_v1.1.rst +++ b/devices/sonoff_t1_uk_3gang_v1.1.rst @@ -246,19 +246,25 @@ of the basic functions. - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 1" - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 2" - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 3" - platform: status diff --git a/devices/sonoff_t1_uk_3gang_v1.1.yaml b/devices/sonoff_t1_uk_3gang_v1.1.yaml index 1a1abc9b8..4bb865f58 100644 --- a/devices/sonoff_t1_uk_3gang_v1.1.yaml +++ b/devices/sonoff_t1_uk_3gang_v1.1.yaml @@ -24,7 +24,9 @@ binary_sensor: - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 1" on_press: @@ -32,7 +34,9 @@ binary_sensor: - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 2" on_press: @@ -40,7 +44,9 @@ binary_sensor: - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T1 UK 3 Gang Touchpad 3" on_press: diff --git a/devices/sonoff_t3_eu_3gang_v1.0.rst b/devices/sonoff_t3_eu_3gang_v1.0.rst index e870c5be7..f2e654da5 100644 --- a/devices/sonoff_t3_eu_3gang_v1.0.rst +++ b/devices/sonoff_t3_eu_3gang_v1.0.rst @@ -250,19 +250,25 @@ of the basic functions. - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 1" - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 2" - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 3" - platform: status diff --git a/devices/sonoff_t3_eu_3gang_v1.0.yaml b/devices/sonoff_t3_eu_3gang_v1.0.yaml index 0e0a6b190..eb31cc0b3 100644 --- a/devices/sonoff_t3_eu_3gang_v1.0.yaml +++ b/devices/sonoff_t3_eu_3gang_v1.0.yaml @@ -24,7 +24,9 @@ binary_sensor: - platform: gpio pin: number: GPIO0 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 1" on_press: @@ -32,7 +34,9 @@ binary_sensor: - platform: gpio pin: number: GPIO9 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 2" on_press: @@ -40,7 +44,9 @@ binary_sensor: - platform: gpio pin: number: GPIO10 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true name: "Sonoff T3 EU 3 Gang Touchpad 3" on_press: diff --git a/devices/teckin.yaml b/devices/teckin.yaml index b31395912..05d48bd4b 100644 --- a/devices/teckin.yaml +++ b/devices/teckin.yaml @@ -21,7 +21,9 @@ binary_sensor: name: "Teckin Button" pin: number: GPIO1 - mode: INPUT_PULLUP + mode: + input: true + pullup: true inverted: true on_press: - switch.toggle: relay diff --git a/guides/creators.rst b/guides/creators.rst index 2da40be36..6c3027be3 100644 --- a/guides/creators.rst +++ b/guides/creators.rst @@ -12,8 +12,12 @@ Example configuration .. code-block:: yaml + # These substitutions allow the end user to override certain values + substitutions: + name: "jesses-temperature-monitor" + esphome: - ... + name: "${name}" # Automatically add the mac address to the name # so you can use a single firmware for all devices name_add_mac_suffix: true @@ -26,13 +30,13 @@ Example configuration # This should point to the public location of this yaml file. dashboard_import: - package_import_url: github://jesserockz/dummy-esphome-configs@v1/temperature-monitor.yaml + package_import_url: github://jesserockz/dummy-esphome-configs/temperature-monitor.yaml@v6 wifi: # Set up a wifi access point ap: ssid: jesses_temperature_monitor - password: 12345678 + password: "12345678" # In combination with the `ap` this allows the user # to provision wifi credentials to the device. diff --git a/guides/getting_started_command_line.rst b/guides/getting_started_command_line.rst index 5d836b884..525696804 100644 --- a/guides/getting_started_command_line.rst +++ b/guides/getting_started_command_line.rst @@ -19,7 +19,7 @@ Installing ESPHome is very easy. All you need to do is have `Python .. note:: Python 3.7 or above is required to install ESPHome 1.18.0 or above. - + .. code-block:: bash @@ -127,7 +127,9 @@ Sensor `. pin: number: 16 inverted: true - mode: INPUT_PULLUP + mode: + input: true + pullup: true This is an advanced feature of ESPHome. Almost all pins can optionally have a more complicated configuration schema with options for diff --git a/guides/getting_started_hassio.rst b/guides/getting_started_hassio.rst index 07bf3d071..00f8643ab 100644 --- a/guides/getting_started_hassio.rst +++ b/guides/getting_started_hassio.rst @@ -133,7 +133,9 @@ Sensor `. pin: number: 16 inverted: true - mode: INPUT_PULLUP + mode: + input: true + pullup: true This time when installing, you don’t need to have the device plugged in through USB again. The upload will happen wirelessly (:doc:`"over the air" `). diff --git a/guides/supporters.rst b/guides/supporters.rst index bc02e754c..940438e72 100644 --- a/guides/supporters.rst +++ b/guides/supporters.rst @@ -61,7 +61,7 @@ Contributors - `Andrzej (@andriej) `__ - `Andreas (@anduchs) `__ - `anekinloewe (@anekinloewe) `__ -- `Angel Nunez Mencias (@angelnu) `__ +- `Vegetto (@angelnu) `__ - `Sergey Anisimov (@anisimovsergey) `__ - `ankycooper (@ankycooper) `__ - `Nikolay Vasilchuk (@Anonym-tsk) `__ @@ -121,6 +121,7 @@ Contributors - `Christian Taedcke (@chrta) `__ - `Pavel Skuratovich (@Chupaka) `__ - `John (@CircuitSetup) `__ +- `Colby Rome (@cisasteelersfan) `__ - `Chris Debenham (@cjd) `__ - `CODeRUS (@CODeRUS) `__ - `Cody James (@codyjamestechnical) `__ @@ -337,7 +338,7 @@ Contributors - `Jonathan Adams (@jonathanadams) `__ - `Jonathan Treffler (@JonathanTreffler) `__ - `JonnyaiR (@jonnyair) `__ -- `Joppy Furr (@JoppyFurr) `__ +- `Joppy (@JoppyFurr) `__ - `jsuanet (@jsuanet) `__ - `junnikokuki (@junnikokuki) `__ - `Justahobby01 (@Justahobby01) `__ @@ -372,7 +373,7 @@ Contributors - `Kodey Converse (@krconv) `__ - `krikk (@krikk) `__ - `KristopherMackowiak (@KristopherMackowiak) `__ -- `Stefan Rado (@kroimon) `__ +- `kroimon (@kroimon) `__ - `krunkel (@krunkel) `__ - `Kendell R (@KTibow) `__ - `Jakub Šimo (@kubik369) `__ @@ -550,7 +551,7 @@ Contributors - `Leandro Puerari (@puerari) `__ - `puuu (@puuu) `__ - `Qc (@qc24) `__ -- `qqgg231 (@qqgg231) `__ +- `Karol Zlot (@qqgg231) `__ - `Tommy Jonsson (@quazzie) `__ - `Quentin Stafford-Fraser (@quentinsf) `__ - `Quinn Hosler (@quinnhosler) `__ @@ -628,7 +629,6 @@ Contributors - `Luca Zimmermann (@soundstorm) `__ - `Sourabh Jaiswal (@sourabhjaiswal) `__ - `Philip Allgaier (@spacegaier) `__ -- `spattinson (@spattinson) `__ - `Stephan Peijnik-Steinwender (@speijnik) `__ - `spilin (@spilin) `__ - `square99 (@square99) `__ @@ -696,7 +696,7 @@ Contributors - `Seppel Hardt (@tuxBurner) `__ - `Thorsten von Eicken (@tve) `__ - `Tyler Menezes (@tylermenezes) `__ -- `wuuker (@ukewea) `__ +- `ukewea (@ukewea) `__ - `Vc (@Valcob) `__ - `Nad (@valordk) `__ - `Víctor Ferrer García (@vicfergar) `__ @@ -734,4 +734,4 @@ Contributors - `ZTX18 (@ZTX18) `__ - `Christian Zufferey (@zuzu59) `__ -*This page was last updated October 22, 2021.* +*This page was last updated October 27, 2021.*