J. Nick Koston
b4f63fd992
[core] Add LOG_ENTITY_ICON/DEVICE_CLASS/UNIT_OF_MEASUREMENT macros ( #13578 )
2026-01-28 05:11:30 +00:00
J. Nick Koston
75a78b2bf3
[core] Encapsulate entity preference creation to prepare for hash migration ( #13505 )
2026-01-26 17:35:45 -10:00
J. Nick Koston
49c881d067
[core] Optimize and normalize entity state publishing logs with >> format ( #13236 )
2026-01-15 10:13:05 +00:00
tomaszduda23 and Jonathan Swoboda
e45cad45fe
[nrf52,zigbee] Add binary output as switch ( #13083 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-01-13 17:39:28 -05:00
J. Nick Koston
3e313014e1
[core] Migrate entities to use lazy callbacks ( #12580 )
2025-12-19 19:04:21 -10:00
J. Nick Koston
7abb6d4998
[core] Implement Global Controller Registry to reduce RAM usage ( #11772 )
2025-11-09 17:34:08 -06:00
J. Nick Koston and Jesse Hills
1446e7174a
[core] Reduce action framework argument copies by 83% ( #11704 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-11-05 01:23:24 +00:00
Jesse Hills
09d89000ad
[core] Remove deprecated schema constants ( #11591 )
2025-10-29 00:14:02 -05:00
J. Nick Koston
086f1982fa
[core] Use get_device_class_ref() in entity platform logging to avoid string allocations ( #10531 )
2025-09-03 14:26:53 +12:00
J. Nick Koston
83fbd77c4a
[core] Use get_icon_ref() in entity platform logging to avoid string allocations ( #10530 )
2025-09-03 14:23:46 +12:00
J. Nick Koston
d1276dc6df
[core] Replace magic coroutine priority numbers with self-documenting CoroPriority enum ( #10518 )
2025-09-02 21:41:50 +00:00
J. Nick Koston and Copilot
d2752b38c9
[core] Fix preference storage to account for device_id ( #10333 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-25 12:22:16 +12:00
Edward Firmo
2b9e1ce315
[switch] Add trigger `on_state` ( #10108 )
2025-08-09 21:09:40 +10:00
Edward Firmo
676c51ffa0
[switch] Add control() method to API ( #10118 )
2025-08-08 05:51:19 +00:00
Edward Firmo and pre-commit-ci-lite[bot]
c4d1b1317a
[switch] Add switch.control automation action ( #10105 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-08 08:55:54 +10:00
J. Nick Koston
296442d8f1
[core] Fix compilation errors when platform sections have no entities ( #10023 )
2025-08-02 13:59:20 -10:00
J. Nick Koston
ed9850c4a4
Remove redundant get_setup_priority() overrides returning default value ( #9253 )
2025-06-29 13:46:28 -05:00
b18ff48b4a
[API] Sub devices and areas ( #8544 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2025-06-25 12:03:41 +00:00
J. Nick Koston
47e7988c8e
Reduce Switch component memory usage by 8 bytes per instance ( #9112 )
2025-06-17 13:14:03 -05:00
J. Nick Koston
3411e45a0a
Reserve memory for component and platform vectors ( #9042 )
2025-06-11 22:05:42 +12:00
487e1f871f
use `encode_uintXX` ( #8847 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-11 17:06:45 +12:00
J. Nick Koston
c0b05ada1a
Reduce ESP_LOGCONFIG calls ( #9026 )
2025-06-09 00:02:30 +00:00
Jesse Hills
410b6353fe
[switch] Fix schema generation ( #8774 )
2025-05-13 06:17:54 +00:00
Jesse Hills
dcd786d21c
[config] Deprecate other *_SCHEMA constants ( #8748 )
2025-05-12 14:43:38 -05:00
Jesse Hills
8399d894c1
[config] Use `cv.UNDEFINED instead of adhoc _UNDEF` objects ( #8725 )
2025-05-09 08:18:52 +00:00
Samuel Sieb
c49f7293fe
binary_sensor for switch state ( #7819 )
2024-11-24 23:24:23 -08:00
RFDarter and Jesse Hills
86a34f4b17
[web_server] v3 entity grouping ( #6833 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-10-07 15:52:26 +13:00
tomaszduda23
c348efa401
[code-quality] Organise base entities imports ( #7208 )
2024-08-07 15:49:51 +12:00
RFDarter and Jesse Hills
a7fc1a6298
[web_server] add entity sorting for v3 ( #6445 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-30 13:54:20 +12:00
Jesse Hills
c8cdb30459
Housecleaning: Use walrus operator in switch ( #6558 )
2024-04-18 09:43:00 +12:00
Regev Brody
7dcdf80f49
add SUB_SWITCH macro ( #4898 )
2023-05-29 09:44:35 +12:00
Fabian and Your Name
afc2b3b74f
Keep Device Class in Flash. ( #4639 )
...
* Keep Device Class in Flash.
* Remove blank line
---------
Co-authored-by: Your Name <you@example.com >
2023-04-20 03:53:35 +00:00
spacemanspiff2007
4eb69d6af5
Fix restore ( #4655 )
...
* ALWAYS_OFF for fan
* ALWAYS_OFF for light
* ALWAYS_OFF for switch
2023-04-12 21:28:02 +00:00
Fabian and Your Name
cb2fcaa9b1
EntityBase Name can stay in flash. (#4594 )
...
* `EntityBase`can stay in flash.
* Trying to please the CI.
---------
Co-authored-by: Your Name <you@example.com >
2023-03-28 06:38:56 +00:00
Javier Peletier
106c1bfac2
fix RESTORE_INVERTED switch:restore_mode ( #4129 )
...
fixes https://github.com/esphome/esphome/pull/3648
2022-12-01 12:49:15 +13:00
Javier Peletier
c55e01ff3f
FIX: Unnecessary flash writes by ModbusSwitch component ( #3648 )
2022-11-30 10:05:40 +13:00
Jesse Hills
4d66fab360
Tidy up switch schemas ( #3754 )
2022-08-31 13:43:46 +12:00
Jesse Hills
02810105fb
Add helpers to switch python for schema and codegen ( #3693 )
...
* Add helpers to switch python for schema and codegen
* Add icon back
2022-08-07 22:01:17 -05:00
Maurice Makaay and Maurice Makaay
0d1028be2e
Cleanup deprecated EntityBase::hash_base() ( #3525 )
...
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net >
2022-06-08 09:13:11 +12:00
Franck Nijhof and Oxan van Leeuwen
e7864a28a1
Add device class support to Switch ( #3012 )
...
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2022-02-04 09:04:48 +13:00
Sebastian Raff
2cf36bdb46
Fix switch log state if inverted ( #2960 )
2021-12-30 16:05:31 +13:00
Jesse Hills
3c0414c420
Add Entity categories for Home Assistant ( #2636 )
2021-11-08 07:24:52 +13:00
Paul Monigatti and Oxan van Leeuwen
471b82f727
EntityBase Refactor ( #2418 )
...
* Renamed Nameable to EntityBase (cpp)
* Renamed NAMEABLE_SCHEMA to ENTITY_BASE_SCHEMA (Python)
* Renamed cg.Nameable to cg.EntityBase (Python)
* Remove redundant use of CONF_NAME from esp32_touch
* Remove redundant use of CONF_NAME from mcp3008
* Updated test
* Moved EntityBase from Component.h and Component.cpp
* Added icon property to EntityBase
* Added CONF_ICON to ENTITY_BASE_SCHEMA and added setup_entity function to cpp_helpers
* Added MQTT component getters for icon and disabled_by_default
* Lint
* Removed icon field from MQTT components
* Code generation now uses setup_entity to setENTITY_BASE_SCHEMA fields
* Removed unused import
* Added cstdint include
* Optimisation: don't set icon if it is empty
* Remove icon from NumberTraits and SelectTraits
* Removed unused import
* Integration and Total Daily Energy sensors now inherit icons from their parents during code generation
* Minor comment correction
* Removed redundant icon-handling code from sensor, switch, and text_sensor
* Update esphome/components/tsl2591/tsl2591.h
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
* Added icon property to binary sensor, climate, cover, and fan component tests
* Added icons for Binary Sensor, Climate, Cover, Fan, and Light to API
* Consolidated EntityBase fields in MQTT components
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2021-10-10 10:37:05 +02: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
Oxan van Leeuwen and Otto winter
d594a6fcbc
Store strings only used for logging in flash ( #2274 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2021-09-13 09:48:52 +02:00
Jesse Hills and Otto Winter
93796491af
Allow entities to be disabled by default in HA ( #2113 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com >
2021-08-10 13:45:31 +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
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02: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