ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Go to file
Yuval Brik 1ec3140759
ESP32 Deep Sleep: correct level value (#2812)
Upon registering for ESP32 deep sleep, DeepSleepComponent::begin_sleep
calculates the level value to wake up on.
As part of PR #2303, the level was changed to be based on `inverted`
instead of `!inverted`:
Before:
1e8e471dec/esphome/components/deep_sleep/deep_sleep_component.cpp (L76)
After:
2b04152482/esphome/components/deep_sleep/deep_sleep_component.cpp (L80)

The level argument to `esp_sleep_enable_ext0_wakeup(pin, level)` [0]
should be 0 when the inverted property is true (low triggers wakeup),
and 1 when inverted property is false (high triggers wakeup).

Also revert the changes of #2644.

[0]
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html#_CPPv428esp_sleep_enable_ext0_wakeup10gpio_num_ti
2021-12-01 09:38:58 +01:00
.devcontainer Redo docker build system with buildkit+multi-stage and cache pio packages (#2338) 2021-09-20 09:07:38 +02:00
.github Add problem matcher for Python formatting errors (#2833) 2021-12-01 17:12:14 +13:00
.vscode Refactor clang-tidy script to use actual compiler flags and includes (#2133) 2021-08-09 22:43:18 +02:00
docker Install test requirements in lint Docker image (#2719) 2021-11-15 10:04:43 +13:00
esphome ESP32 Deep Sleep: correct level value (#2812) 2021-12-01 09:38:58 +01:00
script Fix CI check for Windows line endings (#2831) 2021-12-01 17:14:25 +13:00
tests Number mode (#2838) 2021-12-01 08:11:38 +13:00
.clang-format Configure clang-format for consistent pointer alignment (#1890) 2021-06-10 12:55:20 +02:00
.clang-tidy Don't enable namespace comment clang-tidy check twice (#2830) 2021-12-01 17:21:19 +13:00
.coveragerc Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
.dockerignore More VSCode devcontainer improvements (#1934) 2021-06-22 16:37:05 +02:00
.editorconfig Adds support cpp to vscode (#1828) 2021-06-15 10:45:22 +12:00
.gitattributes Fix line endings normalization (#2407) 2021-09-30 18:07:28 +02:00
.gitignore Allow compilation against IDF from repository (#2355) 2021-09-21 17:12:17 +02:00
.gitpod.yml extract and use current version of python 3 (#938) 2020-01-09 13:27:39 -08:00
.pre-commit-config.yaml Rename master branch to release (#1976) 2021-07-02 15:42:36 +02:00
CODE_OF_CONDUCT.md Update email addresses (#1733) 2021-05-03 11:51:10 +12:00
CODEOWNERS Tuya text_sensor and raw data usage (#1812) 2021-11-30 08:08:52 +13:00
CONTRIBUTING.md Drop obsolete comments from CONTRIBUTING.md (#2271) 2021-09-12 22:04:35 +02:00
LICENSE 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
MANIFEST.in Fix sdist missing requirements.txt (#1214) 2020-07-28 14:29:01 +02:00
platformio.ini Remove arduino dependency from hm3301 (#2745) 2021-11-18 08:03:46 +13:00
pylintrc add-black (#1593) 2021-03-07 16:03:16 -03:00
pyproject.toml add-black (#1593) 2021-03-07 16:03:16 -03:00
pytest.ini Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
README.md Rename master branch to release (#1976) 2021-07-02 15:42:36 +02:00
requirements_optional.txt Bump base image to 3.4.0 (#1879) 2021-06-08 22:03:04 +02:00
requirements_test.txt Consistently format errors in CI scripts (#2762) 2021-11-26 09:54:11 +13:00
requirements.txt Bump esphome-dashboard to 20211201.0 (#2842) 2021-12-01 16:54:30 +13:00
sdkconfig.defaults [esp-idf fix] increase FreeRTOS ticker loop from 100Hz to 1kHz (#2527) 2021-10-15 22:06:49 +02:00
setup.cfg add-black (#1593) 2021-03-07 16:03:16 -03:00
setup.py Fix pypi download url (#2177) 2021-08-18 15:39:57 +12:00

ESPHome Discord Chat GitHub release

ESPHome Logo

Documentation: https://esphome.io/

For issues, please go to the issue tracker.

For feature requests, please see feature requests.