Commit Graph
100 Commits
Author SHA1 Message Date
Otto WinterandGitHub 24f445dade Fix src_filter in platformio.ini after src_dir change (#2353) 2021-09-21 16:37:13 +12:00
Otto WinterandGitHub 7c884329eb Fix MDNS not registered (#2359) 2021-09-21 16:34:56 +12:00
Otto WinterandGitHub 250bf3f054 CI cache only restore from direct matches (#2351) 2021-09-20 13:14:05 +02:00
Otto WinterandGitHub e65a7d887f Bump aioesphomeapi to 9.1.1 (#2350) 2021-09-20 12:02:37 +02:00
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 WinterandGitHub 2d7f8b3bdf Install python requirements after apt ones for better caching (#2349)
* Install python requirements after apt ones for better caching

* Fix buildkit caching works differently
2021-09-20 10:31:48 +02:00
Otto WinterandGitHub 5e345783bd Fix docker release deploy push flag (#2348) 2021-09-20 09:55:18 +02:00
Otto WinterandGitHub fff5ba03c2 Also run docker CI when requirements change (#2347) 2021-09-20 09:29:09 +02:00
Otto WinterandGitHub 272ceadbb0 Redo docker build system with buildkit+multi-stage and cache pio packages (#2338) 2021-09-20 09:07:38 +02:00
Otto WinterandGitHub a990898256 Add readv and writev for more efficient API packets (#2342) 2021-09-20 10:33:10 +12:00
Otto WinterandGitHub 2e49039c01 Reduce stale/lock gh actions interval (#2341) 2021-09-19 14:20:35 +02:00
Otto WinterandGitHub dd3f2f6c7e Fix api noise explicit reject (#2297) 2021-09-14 11:53:49 +02:00
Otto WinterandGitHub 5f61897bec Add stale/lock bots (#2299) 2021-09-14 10:35:37 +02:00
Otto WinterandGitHub 855112dfc3 API Noise logging (#2298) 2021-09-14 09:53:37 +02:00
Otto WinterandGitHub b9767bdcbc Bump platformio to 5.2.0 (#2291) 2021-09-13 21:16:13 +02:00
Otto WinterandGitHub ed7983af41 Fix API socket issues (#2288)
* Fix API socket issues

* Fix compile error against beta

* Format
2021-09-13 18:52:53 +02:00
Otto WinterandGitHub a2d2863c72 Revert "Bump tzlocal from 2.1 to 3.0 (#2154)" (#2289)
This reverts commit e0cff214b2.
2021-09-13 17:22:24 +02:00
a4867a00ea Activate owning-memory clang-tidy check (#1891)
* Activate owning-memory clang-tidy check

* Lint

* Lint

* Fix issue with new NfcTag constructor

* Update pointers for number and select

* Add back the NOLINT to display buffer

* Fix merge

* DSMR fixes

* Nextion fixes

* Fix pipsolar

* Fix lwip socket

* Format

* Change socket fix

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-13 11:31:02 +02:00
Otto WinterandGitHub e5051eefbc API encryption (#2254) 2021-09-09 09:22:47 +12:00
2790d72bff Convert API to use sockets (#2253)
* Socket component

* Lint

* Lint

* Fix esp8266 missing INADDR_ANY

* API convert to sockets and frame helper

* Fix compile error

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-08 12:52:57 +02:00
Otto WinterandGitHub e44f447d85 Fix socket not setting callbacks early enough (#2260) 2021-09-08 12:02:32 +02:00
Otto WinterandGitHub f924e80f43 Socket component (#2250) 2021-09-08 15:41:42 +12:00
Otto WinterandGitHub dba502c756 Logger prevent recursive logging (#2251) 2021-09-08 08:57:20 +12:00
Otto WinterandGitHub 1b89174558 Store source package in Component for debugging (#2070) 2021-08-24 06:49:19 +12:00
Otto WinterandJesse Hills 1be9bac3a9 Fix native API log level enum values (#2151) 2021-08-16 12:32:48 +12:00
Otto WinterandGitHub 9b48ff5775 Fix native API log level enum values (#2151) 2021-08-16 11:57:50 +12:00
Otto WinterandGitHub 854f4a8896 Format dev temp idedata (#2142) 2021-08-10 11:14:04 +02:00
Otto WinterandGitHub 1f42d32eb5 Fix some issues with deprecated argv syntax detection (#2127) 2021-08-10 13:27:21 +12:00
Otto WinterandGitHub 5f27757039 Merge pull request #2123 from esphome/bump-1.20.4
1.20.4
2021-08-04 17:54:53 +02:00
Otto winter 532907219b Bump version to v1.20.4 2021-08-04 17:46:10 +02:00
Otto Winter eeaba74553 Fix external components not refreshing with default or high refresh time (#2122) 2021-08-04 17:46:10 +02:00
Otto Winter 29f0508dc2 Fix PID climate breaks when restoring old modes (#2086) 2021-08-04 17:46:08 +02:00
Otto WinterandStefan Agner 3ffa59f0cd Fix climate restore schema changed resulting in invalid restore (#2068)
Co-authored-by: Stefan Agner <stefan@agner.ch>
2021-08-04 17:46:08 +02:00
Otto WinterandGitHub 768c71830b Fix external components not refreshing with default or high refresh time (#2122) 2021-08-04 17:33:17 +02:00
Otto WinterandGitHub f751c3828e Fix MQTT light include (#2104)
Fixes https://github.com/esphome/issues/issues/2285
2021-08-01 12:33:10 +02:00
5c65f9f9ad Convert sensor_schema to use kwargs (#2094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-08-01 12:21:32 +02:00
Otto WinterandGitHub 34e8979d40 Convert more code to async-def syntax (#2095) 2021-07-30 10:54:10 +12:00
Otto WinterandGitHub 16dbbfabc6 Add demo integration (#2085) 2021-07-29 11:50:55 +02:00
Otto WinterandGitHub af8d04818d Pull ESP32 Wifi fixes from arduino-esp32 (#2069) 2021-07-29 11:44:19 +02:00
Otto WinterandGitHub 31d6a54b06 Fix PID climate breaks when restoring old modes (#2086) 2021-07-28 21:23:41 +02:00
Otto WinterandGitHub 618cfd9ec5 Add sensor monetary device_class (#2083) 2021-07-28 15:34:18 +02:00
Otto WinterandJesse Hills 71ded24fce Fix MQTT climate custom fan modes without regular ones (#2071) 2021-07-27 09:43:05 +12:00
Otto WinterandGitHub b0a3891498 Fix MQTT climate custom fan modes without regular ones (#2071) 2021-07-27 07:46:13 +12:00
2a9e3d84fd Fix climate restore schema changed resulting in invalid restore (#2068)
Co-authored-by: Stefan Agner <stefan@agner.ch>
2021-07-26 15:19:50 +02:00
Otto WinterandJesse Hills e5afb1c4ea ESP32 ADC use esp-idf (#2024)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-07-20 17:09:57 +12:00
01a4b4e82f ESP32 ADC use esp-idf (#2024)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-07-20 17:05:56 +12:00
Otto WinterandJesse Hills f1e3ff2ed2 Improve external components error messages (#2026) 2021-07-19 08:28:58 +12:00
Otto WinterandJesse Hills 7787fa8f29 Dashboard disable assets caching (#2025) 2021-07-19 08:28:58 +12:00
Otto WinterandJesse Hills 70902029f8 GH Actions CI use GHCR (#2027) 2021-07-19 08:28:58 +12:00
Otto WinterandJesse Hills 4f9a56c884 Refactor docker build system and workflows (#2023) 2021-07-19 08:28:53 +12:00
Otto WinterandGitHub 06912b492f Improve external components error messages (#2026) 2021-07-16 10:23:08 +02:00
Otto WinterandGitHub 442e58b07a Dashboard disable assets caching (#2025) 2021-07-16 10:22:42 +02:00
Otto WinterandGitHub 799f04efc0 GH Actions CI use GHCR (#2027) 2021-07-15 21:51:52 +02:00
Otto WinterandGitHub cc7dbeada6 Refactor docker build system and workflows (#2023) 2021-07-15 21:30:04 +02:00
Otto WinterandGitHub 551e9c6111 Bang bang climate new mode meanings (#1996) 2021-07-12 22:56:55 +02:00
7ae611256a Improve climate mode code docs (#1995)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-07-10 11:23:04 +02:00
Otto WinterandGitHub d5278351da Rename master branch to release (#1976) 2021-07-02 15:42:36 +02:00
Otto WinterandJesse Hills 2bf70d7d00 Compat argv parsing improvements (#1952) 2021-06-24 12:49:45 +12:00
Otto WinterandJesse Hills 1d8c170f48 Add climate preset NONE again (#1951) 2021-06-24 12:49:45 +12:00
Otto WinterandJesse Hills 6009c7edb4 Disallow power_save_mode NONE if used together with BLE (#1950) 2021-06-24 12:49:44 +12:00
Otto WinterandJesse Hills e3f36c033e API raise minor version for climate changes (#1947) 2021-06-24 12:49:44 +12:00
Otto WinterandJesse Hills d4eb0f1655 Rework climate traits (#1941)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-24 12:49:36 +12:00
Otto WinterandGitHub 2cb3015a28 Compat argv parsing improvements (#1952) 2021-06-23 20:27:08 +02:00
Otto WinterandGitHub d0859a7d33 Add climate preset NONE again (#1951) 2021-06-23 20:25:19 +02:00
Otto WinterandGitHub bfca3f242a Disallow power_save_mode NONE if used together with BLE (#1950) 2021-06-22 10:53:10 +02:00
Otto WinterandGitHub c811141a4f API raise minor version for climate changes (#1947) 2021-06-21 22:02:18 +02:00
871c0ee2a5 Rework climate traits (#1941)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-21 21:17:01 +02:00
Otto WinterandJesse Hills f1dcf0f0b8 Improve config final validation (#1917) 2021-06-18 11:52:02 +12:00
Otto WinterandGitHub 2419bc3678 Improve config final validation (#1917) 2021-06-18 07:54:14 +12:00
Otto WinterandGitHub 424c34225f Run script/setup in devcontainer instead of pip install (#1913) 2021-06-15 20:19:21 +12:00
Otto WinterandGitHub 92bbedfa5a Fix #1908 mutating input parameter 2021-06-15 08:48:18 +02:00
Otto WinterandGitHub 360effcb72 Activate some clang-tidy checks (#1884) 2021-06-10 13:04:40 +02:00
Otto WinterandGitHub eb9bd69405 Configure clang-format for consistent pointer alignment (#1890) 2021-06-10 12:55:20 +02:00
Otto WinterandGitHub 7c678659d4 Remove explain changes section from PR template (#1876) 2021-06-08 22:23:23 +02:00
Otto WinterandGitHub 4711f36a1f Bump base image to 3.4.0 (#1879) 2021-06-08 22:03:04 +02:00
Otto WinterandGitHub 01e2a51132 Implement versioning for esphome/esphome-lint docker images (#1877) 2021-06-08 21:28:19 +02:00
Otto WinterandGitHub e3c27a483c Update sensor device classes from HA (#1825) 2021-05-24 21:45:51 +02:00
Otto WinterandGitHub a33bb32874 Convert components to async-def syntax (#1823)
* Convert components to async-def syntax

* Remove stray @coroutine

* Manual part

* Convert complexer components code to async-def

* Manual cleanup

* More manual cleanup
2021-05-24 21:45:31 +02:00
Otto WinterandGitHub 2376a2c941 Convert components to async-def syntax (#1821) 2021-05-24 10:58:29 +02:00
Otto WinterandGitHub b92702a312 Document considerations when changing recommended framework version (#1822) 2021-05-23 23:24:00 +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
Otto WinterandGitHub d4686c0fb1 Introduce new async-def coroutine syntax (#1657) 2021-05-17 17:14:15 +12:00
229bf719a2 Implement external custom components installing from YAML (#1630)
* Move components import loading to importlib MetaPathFinder and importlib.resources

* Add external_components component

* Fix

* Fix

* fix cv.url return

* fix validate shorthand git

* implement git refresh

* Use finders from sys.path_hooks instead of looking for __init__.py

* use github:// schema

* error handling

* add test

* fix handling git output

* revert file check handling

* fix test

* allow full component path be specified for local

* fix test

* fix path handling

* lint

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
2021-05-07 15:02:17 -03:00
Otto WinterandJesse Hills 6ec0f80b76 Sensor Average Filter Fix Floating Pointer Error Accumulating (#1624) 2021-05-05 22:35:17 +12:00
Otto WinterandJesse Hills 06f566346d Fix sensor.sensor_schema interface changed (#1659) 2021-05-05 22:35:17 +12:00
Otto WinterandJesse Hills 5ab2ef4079 Fix colorlog removing colors and refactor color code (#1671) 2021-05-05 22:35:16 +12:00
Otto WinterandGitHub d8e4f5d56b Sensor Average Filter Fix Floating Pointer Error Accumulating (#1624) 2021-04-09 10:27:18 +02:00
Otto WinterandGitHub 5e239d3d88 Automate building and publishing of esphome-lint docker image (#1680) 2021-04-08 17:08:11 +02:00
Otto WinterandGitHub 30893afd67 Add Arduino ESP32 version mapping (#1679)
See also https://github.com/platformio/platform-espressif32/releases/tag/v3.2.0
2021-04-08 17:07:19 +02:00
Otto WinterandGitHub 586e36906d Fix sensor.sensor_schema interface changed (#1659) 2021-04-08 14:37:55 +02:00
Otto WinterandGitHub 99f14e03d4 Fix colorlog removing colors and refactor color code (#1671) 2021-04-08 13:58:01 +02:00
Otto WinterandGitHub d92c8ccadf Raise minimum python version to 3.7 (#1673) 2021-04-08 13:57:29 +02:00
Otto WinterandGitHub 7964b724ed Rewrite sun component calculations (#1661) 2021-04-07 12:16:36 +02:00
Otto WinterandGitHub 89d0d41c5a Switch docker images to debian (#1626) 2021-03-20 20:58:46 +01:00
Otto WinterandGitHub 5eeb110d74 Bundle platformio lib_deps in docker images (#1625) 2021-03-20 18:43:31 +01:00
Otto WinterandGuillermo Ruffino 32ae8fc2d0 Bump docker base image to 2.6.0 (#1245) 2020-08-23 21:53:41 -03:00
Otto WinterandGuillermo Ruffino 5da9b2ede7 Fix tuya.cpp compile warning (#1232) 2020-08-23 21:53:37 -03:00
Otto WinterandGuillermo Ruffino 29cfcfaf0f Fix ESP8266 core has a broken settimeofday implementation (#1231) 2020-08-23 21:53:36 -03:00
Otto WinterandGuillermo Ruffino 61bfd347ea Bump ESPAsyncTCP from 1.2.2 to 1.2.3 (#1227) 2020-08-23 21:53:34 -03:00
Otto WinterandGuillermo Ruffino b7436c0b22 Bump ESP8266 Arduino framework from 2.7.2 to 2.7.3 (#1229) 2020-08-23 21:53:33 -03:00