Anton Sergunov
3a97244b83
[Deep sleep] Compilation error with IDF >= 5.* ( #6879 )
2024-06-12 10:42:20 +12:00
tomaszduda23
ba73187c1b
separate deep_sleep component for each platform in different file ( #6762 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-05-20 08:11:27 +12:00
Federico Ferretti
6e8760eba0
Fix deep_sleep for ESP32-C6 ( #6377 )
2024-03-16 14:17:01 +13:00
Keith Burzinski
cdc4f7f59b
IDF 5 fixes for various components from test1.yaml ( #5451 )
2023-10-18 19:33:36 +13:00
Jesse Hills
be7e167c63
Deep sleep is only available on esp32 and esp8266 ( #5507 )
2023-10-10 09:41:28 +13:00
Austin
fa0dcac2c7
Initial ESP32-H2 Support ( #5498 )
2023-10-09 07:34:12 +13:00
Austin
fe7893d1b3
Support for ESP32-C2 & ESP32-C6 ( #4377 )
...
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2023-08-21 09:42:03 +12:00
Jesse Hills
302dea4169
Move ESPTime into core esphome namespace ( #4926 )
...
* Prep-work for datetime entities
* Fix some includes and remove some restrictions on printing time on displays
* format
* format
* More formatting
* Move function contents
* Ignore clang-tidy
2023-06-08 17:24:44 -05:00
Dominik Wagenknecht
8b5b9e508b
Deep Sleep capable ports for ESP32S3 ( #4230 )
...
Update to provide RTC capable ports for ESP32S3.
Fresh from [espressif gpio docs](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/gpio.html )
2023-02-14 21:09:07 +00:00
pistifonok
4a3b628946
Fixed deep sleep for ESP32C3 ( #4143 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-12-07 15:59:25 +13:00
Jesse Hills
ef26677b67
Always use brackets around single log macros ( #4072 )
2022-11-23 10:32:51 +13:00
Jesse Hills
40ad9f4911
Add deep_sleep.allow YAML action ( #3459 )
2022-05-11 12:47:50 +12:00
Ruben De Smet
4116caff6a
Implement allow_deep_sleep ( #3282 )
2022-05-11 11:44:52 +12:00
MFlasskamp
e541ae400c
Esp32c3 deepsleep fix ( #3454 )
2022-05-10 22:03:59 +12:00
MFlasskamp
47898b527c
Esp32c3 deepsleep fix ( #3433 )
2022-05-09 20:32:14 +12:00
Jesse Hills
8be704e591
Allow specifying deep sleep wakup clock time ( #3312 )
2022-04-13 12:55:26 +12:00
andrewpc
dabd27d4be
Addition of Deep Sleep RTC pin definition for ESP32-S2 ( #3303 )
2022-04-12 12:45:54 +12:00
Tyler Bules
b8d10a62c2
ESP32-C3 deep sleep fix ( #3066 )
2022-02-19 15:13:48 +01:00
Yuval Brik
2253d4bc16
Support different run duration for non-timer wakeup ( #2861 )
2021-12-06 23:30:27 +01:00
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
Otto Winter
2b04152482
Fix deep sleep invert_wakeup mode ( #2644 )
2021-10-31 16:07:06 +01:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-20 11:47:51 +02:00
Christian Taedcke
9ebe075f9b
Add deep sleep wakeup from touch ( #1238 ) ( #2281 )
2021-09-20 20:12:32 +12:00
dependabot[bot]
dbb195691b
Bump pylint from 2.10.2 to 2.11.1 ( #2334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-19 19:22:28 +02:00
Oxan van Leeuwen
924df1e7de
Run clang-tidy against Arduino 3 ( #2146 )
...
* Add macros header with more usable Arduino version defines
* Change Arduino version checking to use our version defines
* Add missing ESP8266 check
* Rename Arduino version macro to ARDUINO_VERSION_CODE
* Upgrade clang-tidy to use Arduino 3
* Fix clang-tidy warnings
* Upgrade NeoPixelBus to upstream 2.6.7
* Use Arduino-version-appropriate API to set redirect flags
* Remove now unnecessary CLANG_TIDY ifdefs
* Add preprocessor hackery to avoid including pgmspace.h
* Bump base image to 4.1.1 and update lint
* Fix nfctag
* Fix make_unique ambiguous
* Fix ignore name
* Fix ambiguous v2
* Remove unused begin
* Cast time_t to prevent issues on platforms where time_t is 32bit
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-13 18:55:04 +02:00
Oxan van Leeuwen
f31e0532c4
Untangle core headers (part 1) ( #2276 )
2021-09-13 09:33:29 +02:00
Jesse Hills
07ae8ec553
Remove a whole bunch of deprecated/removed stuff ( #1981 )
2021-07-14 14:42:16 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
a33bb32874
Convert components to async-def syntax ( #1823 )
...
* Convert components to async-def syntax
* Remove stray @coroutine
* Manual part
* Convert complexer components code to async-def
* Manual cleanup
* More manual cleanup
2021-05-24 21:45:31 +02:00
Otto Winter
2376a2c941
Convert components to async-def syntax ( #1821 )
2021-05-24 10:58:29 +02:00
Jesse Hills
5c3af1d3f6
Allow duration for deep_sleep.enter to be templateable ( #1765 )
2021-05-11 12:36:14 -03:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
Chris Nussbaum
dce20680d7
Add duration option to action start deep sleep ( #1526 )
2021-02-15 14:32:22 -03:00
Otto Winter
056c72d50d
Drop Python 2 Support ( #793 )
...
* Remove Python 2 support
* Remove u-strings
* Remove docker symlinks
* Remove from travis
* Update requirements
* Upgrade flake8/pylint
* Fixes
* Manual
* Run pyupgrade
* Lint
* Remove base_int
* Fix
* Update platformio_api.py
* Update component.cpp
2019-12-07 18:28:55 +01:00
adamgreg
b5714cd70f
ESP32 GPIOs 33 to 38 can be used for deep sleep wakeup ( #911 )
2019-12-07 17:19:27 +01:00
Otto Winter
32195f77d9
Fix dallas not unknown ( #716 )
...
* Fix dallas not sending unknown on disconnected sensor
* Deep sleep
2019-10-17 21:34:58 +02:00
Otto Winter
8be733efee
Fix MQTT on_message trigger ( #583 )
...
Fixes https://github.com/esphome/issues/issues/363
Fixes https://github.com/esphome/issues/issues/364
2019-05-31 11:17:46 +02:00
Otto Winter
422754ed63
Lint
2019-05-24 17:20:06 +02:00
Otto Winter
bd45f6bd8e
Register components properly
2019-05-24 16:20:28 +02:00
Otto Winter
8e75980ebd
Cleanup dashboard JS ( #491 )
...
* Cleanup dashboard JS
* Add vscode
* Save start_mark/end_mark
* Updates
* Updates
* Remove need for cv.nameable
It's a bit hacky but removes so much bloat from integrations
* Add enum helper
* Document APIs, and Improvements
* Fixes
* Fixes
* Update PULL_REQUEST_TEMPLATE.md
* Updates
* Updates
* Updates
2019-04-22 21:56:30 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## Description:
Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97
Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍
Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).
Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.
Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.
**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs ) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>
## Checklist:
- [ ] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs ).
2019-04-17 12:06:00 +02:00