J. Nick Koston and Jonathan Swoboda
ab45591507
[core] Move wake_loop out of socket component into core ( #15446 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-04-06 21:01:03 +00:00
J. Nick Koston
89bb5d9e42
[core] Require explicit synchronous= for register_action ( #14606 )
2026-03-10 09:11:45 -10:00
5e842a8b20
[uart] Return flush result, expose timeout via config ( #14608 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-03-08 05:23:13 +00:00
Oliver Kleinecke
f2dfb5e1dc
[uart][usb_uart] Add debug_prefix option to distinguish multiple defined uarts in log ( #14525 )
2026-03-08 10:16:12 +11:00
Clyde Stubbs
cfde0613bb
[const][uart][usb_uart][weikai][core] Move constants to components/const ( #14430 )
2026-03-03 07:53:18 -05:00
J. Nick Koston
19bbd39e33
[uart] Enable wake-on-RX by default on ESP32 ( #14391 )
2026-02-28 21:06:46 -06:00
J. Nick Koston
b679b04d14
[core] Move CONF_STOP_BITS, CONF_DATA_BITS, CONF_PARITY to const.py ( #14379 )
2026-02-28 13:27:33 -10:00
J. Nick Koston
8518424a88
[esp8266] Add enable_serial/enable_serial1 helpers to exclude unused Serial objects ( #12736 )
2026-01-05 17:26:49 -10:00
John Hollowell
0a0501c140
Fix comment typos ( #12828 )
2026-01-03 17:11:48 -05:00
Jonathan Swoboda and Claude
84b5d9b21c
[core] Remove deprecated config options from before 2025 ( #12622 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-22 14:00:12 -05:00
Keith Burzinski
6a79ce8eff
[uart] Automatically enable the socket wake infrastructure when RX wake requested ( #12221 )
2025-12-01 14:16:39 -06:00
Keith Burzinski and J. Nick Koston
161a18b326
[uart] Add wake_loop_on_rx flag for low latency processing ( #12172 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-12-01 00:33:23 -06:00
Jonathan Swoboda and J. Nick Koston
2bf6d48fcf
[uart] Improve error handling and validate buffer size ( #11895 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2025-11-14 14:06:08 -05:00
J. Nick Koston and Jesse Hills
d516627957
[uart] Store static data in flash and use function pointers for lambdas ( #11784 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-11-09 22:37:14 +00:00
J. Nick Koston and Jesse Hills
f1bce262ed
[uart] Optimize UART components to eliminate temporary vector allocations ( #11570 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-10-29 09:48:20 +13:00
J. Nick Koston
dcf2697a2a
Group component tests to reduce CI time ( #11134 )
2025-10-12 07:21:45 +13:00
d302c0c600
[uart] Multiple ESP32 features and fixes ( #8103 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-09-22 12:15:19 -05:00
b8cee477fe
[esp32] Use arduino as an idf component ( #10647 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-09-17 17:23:34 -05:00
J. Nick Koston
440de12e3f
Don't compile unnecessary platform files (e.g. ESP8266 files on ESP32) ( #9354 )
2025-07-08 09:04:41 +12:00
Thomas Rupprecht
aeb4e63950
update minimal python version to 3.10 ( #8850 )
2025-05-22 13:21:43 +12:00
dependabot[bot]
4adda632bb
Bump ruff from 0.9.2 to 0.11.0 ( #8409 )
2025-03-20 09:51:23 -10:00
aa8c963c50
UART component support added for host platform ( #6912 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Pavlo Dudnytskyi <pdudnytskyi@astrata.eu >
2024-07-11 13:30:55 +12:00
Faidon Liambotis
7d642147c1
uart: allow setting the UART id in final_validate_device_schema ( #6923 )
2024-06-18 14:22:50 +12:00
Jesse Hills
f9ce35c894
Allow UART to be AUTO LOADed ( #6617 )
2024-04-24 09:59:19 +12:00
Jesse Hills
0ba4e8c0ba
UART: ignore require_tx/rx if not a native uart implementation ( #6504 )
2024-04-09 04:55:20 +00:00
Clyde Stubbs
c43518c391
Allow split uart pin inversion for ESP-IDF ( #5831 )
2023-11-24 21:56:32 -06:00
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
Co-authored-by: Sam Neirinck <git@samneirinck.com >
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com >
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com >
Co-authored-by: Sam Neirinck <github@samneirinck.be >
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com >
2023-09-05 10:16:08 +12:00
Sergey Dudanov
bbf3d382e8
added uart final validate data bits ( #5079 )
2023-07-12 16:12:40 +12:00
Jesse Hills
e95d6041d8
Allow final validate of uart stop bits and parity ( #4376 )
2023-02-02 19:34:25 +13:00
Jesse Hills
de79171815
RP2040 uart support ( #3990 )
2022-11-07 10:01:40 +13:00
Leon Loopik
11330af05f
Expand uart invert feature to ESP8266 ( #1727 )
2021-12-01 20:31:04 +01:00
ceb9b1d1ff
Allow empty UART debug: option, logging in hex format by default ( #2771 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Maurice Makaay <account-github@makaay.nl >
2021-11-25 11:51:56 +13:00
Maurice Makaay
9e1c3e8f01
Allow UART debug configuration with no after: definition ( #2753 )
2021-11-18 22:41:26 +01:00
e99af991ec
Uart debugging support ( #2478 )
...
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net >
Co-authored-by: Maurice Makaay <account-github@makaay.nl >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-11-11 11:34:17 +13:00
Otto Winter and Jesse Hills
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
Otto Winter
2419bc3678
Improve config final validation ( #1917 )
2021-06-18 07:54:14 +12:00
Guillermo Ruffino and Jesse Hills
c79d700d03
Add validate to components ( #1631 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-31 10:06:45 +12:00
aebad04c0b
Convert core components to async-def coroutine syntax ( #1658 )
...
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-23 22:10:30 +02: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
needspeed
0f151a8f6b
Extend 'uart:' with 'invert:' for esp32 ( #1586 )
2021-03-06 10:25:07 -03:00
Otto Winter
4996967c79
Add CODEOWNERS mechanism ( #1199 )
2020-07-25 15:57:18 +02:00
Kamil Trzciński and Guillermo Ruffino
cd7af19e7c
Extend uart: with rx_buffer_size: ( #1006 )
...
* Extend `uart:` with `rx_buffer_size:`
This allows to configure `rx_buffer_size:`
to efficiently receive big payloads over UART
* lint
* remove old default value
* add test
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
2020-06-09 21:22:06 -03:00
0hax and Guillermo Ruffino
fb2b7ade41
Uart improvments ( #1024 )
...
* uart: Add support for specifying the number of bits and parity.
ESP8266SwSerial doesn't really check parity but just read the parity bit
and ignore it when receiving data.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: support begin and end methods.
A component may need to reset uart buffer/status by using begin() and
end() methods. This is useful for example when a component needs to be
sure it is not reading garbage from previously received data over uart.
For end() methods with software serial, disabling interrupt is
currently impossible because of a bug in esp8266 Core:
https://github.com/esp8266/Arduino/issues/6049
Signed-off-by: 0hax <0hax@protonmail.com >
* esphal: add support for detaching an interrupt.
That's needed when a component needs to enable/disable interrupt on a
gpio.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: rename CONF_NR_BITS to CONF_DATA_BITS_NUMBER.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: use static const uint32_t instead of #define.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: use an enum to handle parity.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: split between esp32 and esp8266.
Signed-off-by: 0hax <0hax@protonmail.com >
* uart: check_uart_settings for parity and number of data bits.
Signed-off-by: 0hax <0hax@protonmail.com >
* name param data_bits
* add new params to test
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
2020-05-24 18:59:07 -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
Otto Winter
e077ad56bd
Add PZEM004T/PZEMAC/PZEMDC Support ( #587 )
...
* Add PZEM004T Support
* Don't flush as much
* Update pzem004t.cpp
* Add generalized modbus
* Add PZEMAC
* Add PZEMDC
* Fix file modes
* Lint
* Fix
* Fix
* Add check_uart_settings
2019-10-20 19:24:20 +02:00
Otto Winter
22aecdfc6f
Use higher default baudrate for USB upload ( #761 )
...
See also https://github.com/espressif/esptool/issues/435
2019-10-18 10:23:06 +02:00
Otto Winter
369d175694
Create Protobuf Plugin for automatically generating native API stubs ( #633 )
...
* Create Protobuf Plugin for automatically generating native API stubs
* Format
* Delete api.proto
* Cleanup, use no_delay conditionally
* Updates
* Update
* Lint
* Lint
* Fixes
* Camera
* CustomAPIDevice
* Fix negative VarInt, Add User-defined services arrays
* Home Assistant Event
* Fixes
* Update custom_api_device.h
2019-06-18 19:31:22 +02:00
Otto Winter
31ddd3f668
Add uart.write action ( #567 )
...
* Add uart.write action
* Lint
2019-05-29 19:32:18 +02:00
Otto Winter
e373620393
Use int_range validator ( #542 )
...
* Use int_range validator
Just keeping code clean.
* Lint
2019-05-11 11:40:29 +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