J. Nick Koston
fa8a609bcc
[automation] Eliminate trigger trampolines with deduplicated forwarder structs ( #15174 )
2026-03-26 13:50:50 -10:00
J. Nick Koston
ec60da893f
[core] Move state logging to client-side formatting, console to VERBOSE ( #15155 )
2026-03-25 19:45:06 +00:00
J. Nick Koston
8fe36cde23
[core] Replace std::function with lightweight Callback in CallbackManager ( #14853 )
2026-03-18 18:41:05 -10:00
J. Nick Koston
1f1b20f4fe
[core] Pack entity string properties into PROGMEM-indexed uint8_t fields ( #14171 )
2026-03-03 07:03:24 -10:00
J. Nick Koston
48b5cae6c4
[api] Use StringRef for user service string arguments ( #13974 )
2026-03-02 10:32:44 +13:00
Jonathan Swoboda and Copilot
b7d651dd17
[core] Defer entity automation codegen to prevent sibling ID deadlocks ( #14381 )
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-02-28 13:10:53 -10:00
J. Nick Koston
843d06df3f
[switch] Use C++17 nested namespace syntax ( #14241 )
2026-02-23 20:49:15 -05:00
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