J. Nick Koston
b264c6caac
cleanup defines
2025-11-07 18:16:22 -06:00
J. Nick Koston
0962024d99
cleanups
2025-11-07 16:35:24 -06:00
J. Nick Koston
8229e3a471
cleanups
2025-11-07 16:33:01 -06:00
J. Nick Koston
fc8dc33023
fixes
2025-11-07 16:13:59 -06:00
J. Nick Koston
f1009a7468
tweak
2025-11-07 15:44:17 -06:00
J. Nick Koston
6efe346cc5
[light] Use std::initializer_list for add_effects to reduce flash overhead ( #11485 )
2025-10-23 14:21:53 +13:00
J. Nick Koston
fdecda3d65
[light] Use bitmask instead of std::set for color modes ( #11348 )
2025-10-20 07:48:14 +13:00
J. Nick Koston
f0ac61f247
[light] Use FixedVector for LightState effects list ( #11232 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-14 16:00:22 -10:00
J. Nick Koston
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
J. Nick Koston
0e31bc1a67
[api] Add zero-copy StringRef methods for compilation_time and effect_name ( #10257 )
2025-08-20 14:26:53 +12:00
J. Nick Koston
84ed1bcf34
[light] Reduce flash usage by 832 bytes through code optimization ( #9924 )
2025-07-28 15:22:56 +12:00
J. Nick Koston
b7ce8c116b
[core] Centralize component setup logging to reduce flash usage ( #9885 )
2025-07-25 19:27:03 +00:00
J. Nick Koston
c0b05ada1a
Reduce ESP_LOGCONFIG calls ( #9026 )
2025-06-09 00:02:30 +00:00
Keith Burzinski
d9a9e0aea3
Streamline setup() logging (k, l, m) ( #8928 )
2025-05-29 06:57:58 +12:00
Jesse Hills
efe4c5e3bc
[light] Add `initial_state` configuration ( #7577 )
2024-10-11 13:13:32 -04:00
Bill Adams
fe789c8beb
Add "transformer_active" flag for use in effects. ( #6157 )
2024-02-07 12:13:55 +13:00
Fabian
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
myhomeiot
57a1c207c2
Fix saving light state for restore modes LIGHT_RESTORE_AND_OFF/ON ( #4131 )
2022-12-22 20:57:53 +13:00
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
Niorix
771162bfb1
light: add RESTORE_AND_OFF/RESTORE_AND_ON LightRestoreMode ( #3238 )
2022-02-21 12:52:14 +13:00
Oxan van Leeuwen
80d03a631e
Force braces around multi-line statements ( #3094 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-01-25 08:56:36 +13:00
Paul Monigatti
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
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
68d547595e
Light transition fixes ( #2320 )
2021-09-19 18:31:20 +02:00
Matthew Mazzanti
8f3a739da7
Allow transforms and flashes to not update remote_values ( #2313 )
2021-09-16 05:59:58 +12:00
Alex
ea1b5e19f0
Add transitions to light flash ( #2201 )
2021-08-31 14:18:16 +12:00
Oxan van Leeuwen
2f33cd2db5
Remove double scheduling from addressable lights ( #1963 )
2021-08-23 20:00:38 +12:00
Oxan van Leeuwen
0c370d5897
Initialize color temperature to value within range if possible ( #2168 )
2021-08-17 14:02:38 +12:00
Oxan van Leeuwen
46f17bea66
Modular light transformers ( #2124 )
2021-08-11 16:51:35 +12:00
Jesse Hills
d258e06fd7
Add rgbct and color_temperature light platforms ( #2138 )
...
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2021-08-10 21:28:56 +12:00
Jesse Hills
ea4a458214
Removed unused arguments from rgbww code ( #2137 )
2021-08-09 16:44:52 +12:00
Oxan van Leeuwen
5983ccc55c
Color mode implementation ( #2012 )
2021-07-29 19:11:56 +02:00
Jesse Hills
07ae8ec553
Remove a whole bunch of deprecated/removed stuff ( #1981 )
2021-07-14 14:42:16 +12:00
Oxan van Leeuwen
fb8ec79a52
Color brightness fixes ( #2008 )
2021-07-13 12:28:29 +12:00
Oxan van Leeuwen
0efc1f06f2
Split files in light component ( #1893 )
2021-06-14 18:01:56 +02: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
Oxan van Leeuwen
ea0127e42b
Simplify LightCall validation ( #1874 )
2021-06-09 17:01:05 +02:00
Franck Nijhof
0ce57e5a39
Light & Switch Inverted Restore mode ( #1810 )
2021-05-24 08:20:11 +12:00
Marvin Gaube
c9caf44c2e
Fix RGBW color-interlock control ( #1325 )
2020-10-15 09:48:12 -03:00
MartinWelsch
4988349677
Fix Light Trigger ( #1308 )
...
* make LightTransitionTransformer publish at end
* adjust on trigger + cleanup
* add target_state_reached_callback_
* fix format
* revert publish_at_end change
* fix bug for rapid on/off switching + remove debug logging
* formatting
* call state reached callback when no transition
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
2020-10-10 22:50:53 -03:00
peq123
e5d4e12457
RGBWW - added channel interlock for RGB vs white ( #1042 )
...
* Update light_color_values.h
* Update light_color_values.h
* Update light_color_values.h
* Update light_color_values.h
* colour relative to white value
* Update light_state.cpp
* Update light_state.cpp
* Update light_state.cpp
* Update light_state.cpp
* Update light_color_values.h
* Update light_state.cpp
* linting
* Update light_state.cpp
* Update light_color_values.h
* more lint
* more lint
* Update light_state.cpp
* Update light_state.cpp
* Update light_state.cpp
* add optional interlock
* Update test1.yaml
* Update light_state.cpp
* Update light_state.h
* interlock
* optional interlock.
* interlock as trait
* color interlock as trait
* optional color interlock....
* optional color interlock
* Update light_color_values.h
* Lint checks....
* making travis happy
* making sure gamma_correct fix is included
* Update light_color_values.h
* making travis happy
* clang-format
* Code tidy
* Update light_color_values.h
* Update light_color_values.h
2020-07-09 20:29:44 -03:00
Niklas Wagner
8aedac81a5
RGBWW/CCT Lights: Fix gamma_correct when using constant_brightness ( #1043 )
2020-06-12 15:17:46 -03:00
kroimon
8613c02d5c
Add constant_brightness property to CWWW/RGBWW lights ( #1007 )
...
Fixes https://github.com/esphome/feature-requests/issues/460
Co-authored-by: Otto Winter <otto@otto-winter.com >
2020-04-08 09:31:23 -03:00
Quinn Hosler
177617e6e3
Rgbww color fix ( #967 )
...
* RGBWW color vs white and brightness adjustments
2020-03-11 17:33:20 -07:00
Otto Winter
e9e92afc9e
Optimize application loop speed ( #860 )
...
* Optimize application loop speed
* Also check call_loop
* Remove duplicate code
* Fixes
2019-12-04 16:03:37 +01:00
Otto Winter
1bf55c130b
Format
2019-10-18 16:43:37 +02:00
Otto Winter
95a74a7f19
Addressable light transition ( #750 )
...
* Improve addressable light transition behavior
Fixes https://github.com/esphome/issues/issues/555
* Improve addressable flicker effect
See also https://github.com/esphome/feature-requests/issues/348
* Update addressable_light_effect.h
* Refactor
* Format
* Prevent divide by zero
* Fixes
2019-10-18 16:27:36 +02:00
Otto Winter
aae633277f
Fix strobe/flicker effect not using selected value ( #749 )
...
Fixes https://github.com/esphome/issues/issues/562
2019-10-17 19:15:02 +02:00
Otto Winter
4bc3067725
Add light restore mode
...
I don't want users to rely on setup priority.
Ref https://github.com/esphome/esphome-docs/pull/248
2019-05-27 19:22:16 +02:00