Commit graph

309 commits

Author SHA1 Message Date
Fabian
7196fb8e82
add define __str__ method (#4576)
Co-authored-by: Your Name <you@example.com>
2023-03-19 18:55:12 +00:00
Fabian
1b8b8cdd11
EntityBase: Icon string can stay in flash. (#4566)
* Icon string can stay in flash.

* Remove redundant const.

---------

Co-authored-by: Your Name <you@example.com>
2023-03-15 22:20:12 +00:00
Oxan van Leeuwen
da056866ff
Drop broken logging macros (#4534) 2023-03-09 00:03:33 +00:00
Fabian
3773c385c7
Ensure component is ready before update. (#4523)
Co-authored-by: Your Name <you@example.com>
2023-03-07 04:16:42 +00:00
Oxan van Leeuwen
b8538c2c12
Fix typo (#4515) 2023-03-05 23:02:36 +00:00
Oxan van Leeuwen
43fb68f8a0
Fix parallel invocations of repeat action (#4480)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-26 22:23:04 +00:00
Oxan van Leeuwen
86c0e6114f
Lock scheduler items while modifying them (#4410)
* Cosmetic fixes to scheduler code

* Add generic Mutex API

* Lock scheduler items while modifying them

* Always defer MQTT callbacks on Arduino
2023-02-26 18:43:08 +00:00
Fabian
1a9141877d
use same heap_caps_malloc parameter as ps_malloc. (#4484)
Co-authored-by: Your Name <you@example.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-26 18:42:29 +00:00
Mikhail Zakharov
38a01988a5
fix library override logic (#4474)
* fix library override logic

* formatting
2023-02-21 21:52:06 +00:00
Expaso
7a2d7fdd19
Fixed PlatformIO Build on DEV (#4422)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-13 15:43:52 +13:00
Dan Jackson
029ac75a04
set_retry: add retries remaining parameter to the provided function (#4251) 2023-01-18 14:26:32 +13:00
Jesse Hills
efc6a8df35
Dont default CORE.friendly_name (#4305) 2023-01-17 13:15:47 +13:00
Gil Peeters
11518364a1
Display the configured esphome:comment on the WebServer (#4246) 2023-01-17 13:02:54 +13:00
Jesse Hills
c301ae3645
Add friendly_name to device (#4296) 2023-01-17 10:28:09 +13:00
Dan Jackson
ff4fd497c4
Component::set_retry updates (#3305) 2022-12-22 20:48:15 +13:00
Jesse Hills
2dd032475b
Allow global setting of compile process limit (#4081) 2022-12-01 12:51:01 +13:00
Jesse Hills
9273e3775b
Add vector includes (#4080) 2022-11-24 13:12:55 +13:00
Jesse Hills
b184b01600
Remove a bunch of unnecessary pylint disabling (#4079) 2022-11-24 11:09:19 +13:00
Jesse Hills
91925b1826
Update ESP-IDF and platform version (#3565)
Co-authored-by: Otto Winter <otto@otto-winter.com>
2022-11-23 09:54:55 +13:00
Jesse Hills
c2e198311c
Update esp32 arduino and platform versions (#3564) 2022-11-21 11:49:30 +13:00
Jesse Hills
e61a01f7bb
Fix imports for rp2040 with no wifi (#3956) 2022-10-28 08:12:12 +13:00
Jesse Hills
85faecb2fd
Add core config option to limit compile process count (#3952) 2022-10-27 12:17:21 +13:00
Jesse Hills
f97252b93a
Implement InterruptLock for RP2040 (#3945) 2022-10-26 16:41:51 +13:00
Jesse Hills
60717b074e
Implement different random for rp2040 (#3939) 2022-10-25 17:59:10 +13:00
Jesse Hills
6153bcc6ad
Initial Support for RP2040 platform (#3284)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-10-20 16:50:39 +13:00
Jadson Santos
41b5cb06d3
New platform ethernet_info from component text_sensor (#3811)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-10-19 13:44:48 +13:00
Jesse Hills
d220d41182
Bump python min to 3.9 (#3871) 2022-10-05 20:09:27 +13:00
Jesse Hills
c3a8972550
Add min_version to esphome config (#3866) 2022-10-05 16:30:56 +13:00
Guillermo Ruffino
1444cddda9
Fix-esphome-validation-line-number (#3815) 2022-09-20 17:23:55 +12:00
RoboMagus
78b55d86e9
Unify 'nullptr' initalization of class members; (#3805) 2022-09-15 11:53:02 +12:00
Jesse Hills
f4b0917239
Allow ble tracker to subscribe to ota start and stop the scanning (#3800) 2022-09-14 16:49:20 +12:00
anatoly-savchenkov
9a5f865eea
Add Factory Reset button and switch (#3724)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-09-12 10:23:46 +12:00
Jesse Hills
c317422ed7
Move crc16 to helpers (#3780) 2022-09-06 12:57:21 +12:00
NP v/d Spek
63290a265c
add color compare operator's (#3730) 2022-08-25 13:41:52 +12:00
Jesse Hills
b854e17995
Initial bluetooth_proxy support (#3736) 2022-08-25 07:13:44 +12:00
Stijn Tintel
b4bbe3d7b5
wifi: support 802.11k and 802.11v (#3600) 2022-08-17 21:10:43 +12:00
anatoly-savchenkov
01a4443b6c
Webui small fixes (#3713) 2022-08-15 10:28:29 +12:00
NP v/d Spek
1cf213dad8
add gradient color V2.0 (#3709) 2022-08-15 08:21:08 +12:00
RoboMagus
029014d9d6
Add priority to on_shutdown trigger (#3644) 2022-08-10 13:10:49 +12:00
NP v/d Spek
34df7a6072
add gradient color (#3687) 2022-08-09 12:29:41 +12:00
RoboMagus
578671ea94
Fix configuration constants in core. (#3652) 2022-07-25 08:23:55 +12:00
André Klitzing
72cce391ab
Fix some typos found by codespell (#3598) 2022-06-27 18:02:46 -03:00
RoboMagus
34adbf0588
Fix / Reverse order shutdown (#3585) 2022-06-21 11:26:34 +12:00
Benjamin Klotz
c8b58b5c23
Bugfix for ExternalRAMAllocator copy constructor (#3571) 2022-06-17 13:32:43 +12: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
Jesse Hills
6221f6d47d
Implement Media Player and I2S Media player (#3487) 2022-06-02 17:00:17 +12:00
Otto Winter
235a97ea10
Make retry scheduler efficient (#3225) 2022-05-11 07:54:00 +12:00
Maurice Makaay
44b68f140e
Select enhancement (#3423)
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
2022-05-10 16:41:16 +12:00
rnauber
70a35656e4
Add support for Shelly Dimmer 2 (#2954)
Co-authored-by: Niclas Larsson <niclas@edgesystems.se>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Jernej Kos <jernej@kos.mx>
Co-authored-by: Richard Nauber <richard@nauber.dev>
2022-04-14 13:13:51 +12:00
Jesse Hills
da336247eb
Add Xiaomi RTCGQ02LM - Mi Motion Sensor 2 (#3186) 2022-04-12 16:19:16 +12:00
Martin
792108686c
Add mqtt for idf (#2930)
Co-authored-by: Flaviu Tamas <me@flaviutamas.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2022-04-04 11:07:20 +12:00
Ian Reinhart Geiser
9de61fcf58
Define touchscreen support when in use. (#3296) 2022-04-01 16:46:39 +13:00
Jesse Hills
bfbf88b2ea
Webserver utilize Component Iterator to not overload eventstream (#3310) 2022-03-23 09:45:05 +13:00
Jesse Hills
4525588116
Add helper overloads for hex print 16-bit (#3297) 2022-03-16 13:35:37 +13:00
Otto Winter
d2b209234f
Improve ESP8266 iram usage (#3223) 2022-02-19 15:09:17 +01:00
Jesse Hills
3b8bb09ae3
Add class as first positional arg to sensor_schema (#3216) 2022-02-18 10:27:20 +13:00
Otto Winter
3a67884451
Improve dallas timing (#3181)
* Improve dallas timing

* Format
2022-02-11 09:06:06 +01:00
Jesse Hills
5c22065135
Change most references from hassio to ha-addon (#3178) 2022-02-09 23:46:20 +13:00
Keilin Bickar
21803607e7
Add new Lock core component (#2958)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-02-04 07:24:31 +13:00
Otto Winter
62b366a5ec
Fix ESP32C3 toolchain requires stdarg import in helpers (#3151) 2022-02-01 13:05:59 +01:00
Jesse Hills
4a5970b4af
Fix backwards string case helpers (#3126) 2022-01-31 10:58:27 +13:00
Oxan van Leeuwen
976f5d91ed
Logically group and document helper functions (#3112) 2022-01-27 20:35:42 +13:00
Wouter van der Wal
a718ac7ee0
Add qr code support for displays (#2952)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2022-01-26 22:20:45 +13:00
Oxan van Leeuwen
4e6bdb31ac
Make CallbackManager invocable (#3089) 2022-01-25 08:57:26 +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
Oxan van Leeuwen
cdda648360
Generate ARDUINO_VERSION_CODE in Python code (#3101)
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-24 10:34:34 +01:00
Oxan van Leeuwen
c2ee0f0864
Rename WEBSERVER_PORT define to USE_WEBSERVER_PORT (#3102) 2022-01-24 00:34:38 +01:00
Oxan van Leeuwen
2a84db7f85
Refactor fan platform to resemble climate/cover platforms (#2848)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
Co-authored-by: rob-deutsch <robzyb+altgithub@gmail.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 22:21:54 +13:00
Oxan van Leeuwen
7da12a878f
Enable readability-redundant-member-init check (#3097) 2022-01-23 20:34:43 +13:00
Oxan van Leeuwen
737188ae50
Fail hard if no random bytes available for encryption (#3067) 2022-01-18 14:29:57 +13:00
Oxan van Leeuwen
d9c938de33
Introduce big- and little-endian integer types (#2997) 2022-01-12 16:50:03 +13:00
Oxan van Leeuwen
073828235f
Deprecate virtual methods to set entity properties (#3021) 2022-01-10 13:32:39 +01:00
Oxan van Leeuwen
6383eca54a
Clean-up random helper functions (#3022) 2022-01-10 13:50:26 +13:00
Sergey Dudanov
9a70bfa471
New Midea IR component, improvements and fixes (#2847)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-10 11:47:19 +13:00
Valentin Ochs
b406c6403c
Create new kalman_combinator component (#2965) 2022-01-09 23:44:36 +01:00
Oxan van Leeuwen
499625f266
Convert is_callable to a backport of std::is_invocable (#3023) 2022-01-10 11:07:37 +13:00
Oxan van Leeuwen
07e790f900
Drop uint{32,64}_to_string() helper functions (#3009) 2022-01-06 16:36:11 +01:00
Oxan van Leeuwen
640142fc0c
Introduce str_lower_case() and str_upper_case() helpers (#3008) 2022-01-06 16:35:59 +01:00
Oxan van Leeuwen
5c339d4597
Convert clamp() helper to backport of std::clamp() (#3010) 2022-01-07 00:56:10 +13:00
Oxan van Leeuwen
a4931f5d78
Clean-up reverse_bits helpers (#3011) 2022-01-07 00:54:58 +13:00
Oxan van Leeuwen
e5775cf812
Introduce bit_cast() backport (#2991) 2022-01-04 10:14:57 +01:00
Oxan van Leeuwen
5143a5b5c5
Use to_string() from STL when available (#2992) 2022-01-03 23:30:03 +01:00
Oxan van Leeuwen
dbc2812022
Improve PSRAM support (#2884) 2022-01-04 10:35:15 +13:00
David Buezas
9124d9d6e6
Change unset ESPHOME_LOG_LEVEL fallback to NONE (#2982)
Co-authored-by: David Buezas <david.buezas@klarna.com>
2022-01-03 18:58:35 +01:00
Oxan van Leeuwen
beeb0c7c5a
Introduce hex parsing & formatting helper functions (#2882) 2021-12-13 09:15:23 +13:00
Oxan van Leeuwen
6df1d5222d
Drop unused xSemaphoreWait define (#2888) 2021-12-08 12:46:36 +13:00
Oxan van Leeuwen
6fe4ff7f85
Drop len parameter from parse_number() (#2883) 2021-12-08 08:46:25 +13:00
Oxan van Leeuwen
12467a18e6
Feed watchdog when no component loops (#2857) 2021-12-07 07:24:20 +13:00
Jesse Hills
f0bcf81a98
Add a simple helper to remap values (#2850) 2021-12-02 09:23:11 +01:00
Oxan van Leeuwen
54106179a1
Set ESP32 watchdog to loop task (#2846) 2021-12-02 09:05:42 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks (#2149) 2021-12-02 09:03:51 +13:00
Jesse Hills
b5639a6472
Add support for button entities (#2824) 2021-11-30 08:00:51 +13:00
mechanarchy
6f07421911
Optionally show internal components on the web server (#2627)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-11-29 16:52:20 +01:00
anatoly-savchenkov
cae283dc86
Fixed data type inside fast_random_8() routine (#2818) 2021-11-29 08:31:15 +13:00
Oxan van Leeuwen
10a2a7e0fc
Fix parsing numbers in Anova (#2816) 2021-11-29 08:00:29 +13:00
Oxan van Leeuwen
3637be251e
Fix parsing numbers from null-terminated buffers (#2755) 2021-11-26 09:00:49 +13:00
Oxan van Leeuwen
897277992b
Introduce str_snprintf helper function (#2780) 2021-11-23 20:30:49 +13:00
Martin
448e1690aa
Add retry handler (#2721)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-11-18 11:59:40 +13:00
Oxan van Leeuwen
5404163be0
Clean-up MAC address helpers (#2713) 2021-11-15 15:48:16 +01:00
Oxan van Leeuwen
66cebfc992
Restore InterruptLock on wifi-less ESP8266 (#2712) 2021-11-15 08:05:11 +13:00