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
dependabot[bot]
dbb195691b
Bump pylint from 2.10.2 to 2.11.1 ( #2334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-19 19:22:28 +02:00
Paul Monigatti
64341d1d18
Fix MQTT discovery for sensor state_class ( #2331 )
2021-09-19 18:30:41 +02:00
Oxan van Leeuwen
e6b0a0ca2b
Clean-up sensor integration ( #2275 )
2021-09-13 18:58:49 +02:00
Oxan van Leeuwen
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
Oxan van Leeuwen
d9cb64b893
Add device classes new in HA 2021.9 ( #2248 )
2021-09-07 10:12:26 +12:00
Jesse Hills
ff6bed54c6
Remove last_reset_type and convert all those sensors to TOTAL_INCREASING ( #2233 )
2021-09-06 08:30:47 +12:00
Jesse Hills
f0b14055b6
Add new total_increasing state-class for Home Assistant 2021.9+ ( #2166 )
2021-08-18 11:04:13 +12:00
Franck Nijhof
ebabf0e7d8
Add Gas device class to DSMR component ( #2169 )
2021-08-17 21:43:51 +12:00
Jesse Hills
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
Otto Winter
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 Winter
618cfd9ec5
Add sensor monetary device_class ( #2083 )
2021-07-28 15:34:18 +02:00
Jesse Hills
3b3297d269
Adding last_reset_type to sensors that should support it. ( #2039 )
2021-07-21 09:20:20 +12:00
Jesse Hills
07ae8ec553
Remove a whole bunch of deprecated/removed stuff ( #1981 )
2021-07-14 14:42:16 +12:00
Stefan Agner
a80f9ed336
Support ESP8266 Arduino 3.0.0 ( #1897 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com>
2021-06-15 08:50:58 +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
Franck Nijhof
11fb54c74e
Add support for Sensor state class ( #1835 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-03 13:49:56 +12:00
Otto Winter
e3c27a483c
Update sensor device classes from HA ( #1825 )
2021-05-24 21:45:51 +02:00
Otto Winter
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 Winter
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 Winter
d8e4f5d56b
Sensor Average Filter Fix Floating Pointer Error Accumulating ( #1624 )
2021-04-09 10:27:18 +02:00
Otto Winter
586e36906d
Fix sensor.sensor_schema interface changed ( #1659 )
2021-04-08 14:37:55 +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
Gabe Cook
88b46b7487
Add min/max filters ( #1569 )
2021-03-05 10:10:06 -03:00
marecabo
520c4331e3
Add default device classes to sensor components ( #1533 )
...
* Add device_class arg to homeassistant sensor_schema call
* Add device_class arg to mqtt_subscribe sensor_schema call
* Add device_class arg to dht sensor_schema call
* Add device_class arg to dht12 sensor_schema call
* Add device_class arg to am2320 sensor_schema call
* Add device_class arg to atc_mithermometer sensor_schema call
* Add device_class arg to atm90e32 sensor_schema call
* Add device_class arg to bh1750 sensor_schema call
* Add device_class arg to ble_rssi sensor_schema call
* Add device_class arg to bme280 sensor_schema call
* Add device_class arg to bme680 sensor_schema call
* Add device_class arg to bmp085 sensor_schema call
* Add device_class arg to bmp280 sensor_schema call
* Add device_class arg to binary_sensor_map sensor_schema call
* Add device_class arg to apds9960 sensor_schema call
* Add device_class arg to as3935 sensor_schema call
* Add device_class arg to ccs811 sensor_schema call
* Add device_class arg to cse7766 sensor_schema call
* Add device_class arg to ct_clamp sensor_schema call
* Add device_class arg to dallas sensor_schema call
* Add device_class arg to duty_cycle sensor_schema call
* Add device_class arg to esp32_hall sensor_schema call
* Add device_class arg to hdc1080 sensor_schema call
* Add device_class arg to hlw8012 sensor_schema call
* Add device_class arg to hm3301 sensor_schema call
* Add device_class arg to hmc5883l sensor_schema call
* Add device_class arg to htu21d sensor_schema call
* Add device_class arg to hx711 sensor_schema call
* Add device_class arg to ina219 sensor_schema call
* Add device_class arg to ina226 sensor_schema call
* Add device_class arg to ina3221 sensor_schema call
* Add device_class arg to ibsth1 sensor_schema call
* Add device_class arg to max31855 sensor_schema call
* Add device_class arg to max31856 sensor_schema call
* Add device_class arg to max31865 sensor_schema call
* Add device_class arg to mhz19 sensor_schema call
* Add device_class arg to max6675 sensor_schema call
* Add device_class arg to mpu6050 sensor_schema call
* Add device_class arg to ms5611 sensor_schema call
* Add device_class arg to mcp9808 sensor_schema call
* Add device_class arg to ntc sensor_schema call
* Add device_class arg to pid sensor_schema call
* Add device_class arg to pmsx003 sensor_schema call
* Add device_class arg to pulse_counter sensor_schema call
* Add device_class arg to pulse_width sensor_schema call
* Add device_class arg to pzem004t sensor_schema call
* Add device_class arg to pzemac sensor_schema call
* Add device_class arg to pzemdc sensor_schema call
* Add device_class arg to qmc5883l sensor_schema call
* Add device_class arg to resistance sensor_schema call
* Add device_class arg to rotary_encoder sensor_schema call
* Add device_class arg to ruuvitag sensor_schema call
* Add device_class arg to scd30 sensor_schema call
* Add device_class arg to sds011 sensor_schema call
* Add device_class arg to senseair sensor_schema call
* Add device_class arg to sgp30 sensor_schema call
* Add device_class arg to sht3xd sensor_schema call
* Add device_class arg to shtcx sensor_schema call
* Add device_class arg to sps30 sensor_schema call
* Add device_class arg to sts3x sensor_schema call
* Add device_class arg to sun sensor_schema call
* Add device_class arg to tcs34725 sensor_schema call
* Add device_class arg to teleinfo sensor_schema call
* Add device_class arg to template sensor_schema call
* Add device_class arg to tmp102 sensor_schema call
* Add device_class arg to tmp117 sensor_schema call
* Add device_class arg to tsl2561 sensor_schema call
* Add device_class arg to tx20 sensor_schema call
* Add device_class arg to ultrasonic sensor_schema call
* Add device_class arg to uptime sensor_schema call
* Add device_class arg to vl53l0x sensor_schema call
* Add device_class arg to wifi_signal sensor_schema call
* Add device_class arg to xiaomi_cgd1 sensor_schema call
* Add device_class arg to xiaomi_cgg1 sensor_schema call
* Add device_class arg to xiaomi_gcls002 sensor_schema call
* Add device_class arg to xiaomi_hhccjcy01 sensor_schema call
* Add device_class arg to xiaomi_hhccpot002 sensor_schema call
* Add device_class arg to xiaomi_jqjcy01ym sensor_schema call
* Add device_class arg to xiaomi_lywsd02 sensor_schema call
* Add device_class arg to xiaomi_lywsd03mmc sensor_schema call
* Add device_class arg to xiaomi_lywsdcgq sensor_schema call
* Add device_class arg to xiaomi_mhoc401 sensor_schema call
* Add device_class arg to xiaomi_mjyd02yla sensor_schema call
* Add device_class arg to xiaomi_wx08zm sensor_schema call
* Add device_class arg to zyaura sensor_schema call
* Add device_class arg to ads1115 sensor_schema call
* Add device_class arg to adc sensor_schema call
* Add device_class arg to ade7953 sensor_schema call
* Add device_class arg to aht10 sensor_schema call
* Make args of sensor_schema required
* lint
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
2021-02-27 19:28:06 -03:00
marecabo
f95be6a0df
Device class attribute for sensor component ( #1525 )
...
* Add constants for sensor device_class
* Add device_class attribute to sensor component
* Add device_class attribute to sensor class
* Add device_class to mhz19 temperature sensor
* Add device_class to sensor in api component
* Add test for device_class of sensor
* Rename DEVICE_CLASS_NONE to DEVICE_CLASS_EMPTY for consistency
* Make optional attributes of sensor component truly optional
2021-02-15 12:49:02 -03:00
Otto Winter
4996967c79
Add CODEOWNERS mechanism ( #1199 )
2020-07-25 15:57:18 +02:00
Guillermo Ruffino
1bec1faf6d
lint
2020-05-24 23:27:28 -03:00
Andrew Zaborowski
a62b6548d2
Make some Action methods protected
...
Apparently play()/stop() etc. are not meant to be called directly by
users of the class and if they're called directly that would not give
the expected result for the classes that have an empty play().
Make all methods except play_complex, stop_comples and is_running
protected. While there also make RemoteTransmitterActionBase::encode
protected.
2020-05-01 12:44:30 +02:00
Otto Winter
d62ef35860
Fix scheduler first execution ( #798 )
...
* Fix scheduler first execution not immediately
* Also update sensor filters
2019-10-24 21:24:57 +02:00
Otto Winter
8ff742d9ab
Implement more dump_configs ( #791 )
2019-10-23 14:43:41 +02:00
Otto Winter
ae8700447e
Add sensor force_update option ( #783 )
...
* Add sensor force_update option
* Add test
2019-10-21 15:46:39 +02:00
Otto Winter
aebb6d2fcc
Revert "Fix filter_out bug"
...
This reverts commit 1ade7bcb2d
.
2019-10-18 17:30:44 +02:00
Otto Winter
1ade7bcb2d
Fix filter_out bug
2019-10-18 14:58:06 +02:00
Otto Winter
ee0b6e835f
Sensor filter_out rounded ( #765 )
...
Fixes https://github.com/esphome/issues/issues/741
2019-10-18 10:22:29 +02:00
Otto Winter
6ceb975a3a
calibrate_linear check not all from values same ( #714 )
...
Fixes https://github.com/esphome/issues/issues/524
2019-10-17 21:35:59 +02:00
Jasper van der Neut - Stulen
0fc267dfc7
Implement median filter ( #697 )
...
Add median filter to sensors component
2019-08-27 10:39:04 -07:00
Otto Winter
d2938e82db
Add calibrate_polynomial sensor filter ( #642 )
...
* Add calibrate_polynomial sensor filter
* Fix
* Lint
* Format
2019-07-02 13:02:55 +02:00
Otto Winter
72a80f559a
Use relative include, add check
2019-05-27 13:06:45 +02:00
Otto Winter
f1a0e5a313
Sun support ( #531 )
...
* Sun
* Add sun support
* Lint
* Updates
* Fix elevation
* Lint
* Update mqtt_climate.cpp
2019-05-11 12:31:00 +02:00
Otto Winter
953d7f6193
Check lambdas for return statement ( #539 )
2019-05-10 22:13:17 +02:00
Otto Winter
521c080989
Updates
2019-05-08 09:58:03 +02:00
Otto Winter
766f6c045d
Updates
2019-04-24 23:49:02 +02:00
Otto Winter
8e75980ebd
Cleanup dashboard JS ( #491 )
...
* Cleanup dashboard JS
* Add vscode
* Save start_mark/end_mark
* Updates
* Updates
* Remove need for cv.nameable
It's a bit hacky but removes so much bloat from integrations
* Add enum helper
* Document APIs, and Improvements
* Fixes
* Fixes
* Update PULL_REQUEST_TEMPLATE.md
* Updates
* Updates
* Updates
2019-04-22 21:56:30 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## Description:
Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97
Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍
Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).
Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.
Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.
**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs ) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>
## Checklist:
- [ ] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs ).
2019-04-17 12:06:00 +02:00
Otto Winter
be5330b6ae
Simplify coroutine syntax ( #503 )
...
* Simplify coroutine syntax
* More
* Lint
* Fix
* More
* Lint
2019-04-09 14:30:12 +02:00
Otto Winter
7fd5634a51
Add cover position/tilt support ( #496 )
...
* Add climate support
* Fixes
* Updates
* Updates
* Add ota
* Remove climate changes
* Lint
2019-04-08 18:08:58 +02:00
Otto Winter
7ad2d86929
Update Hassio base image to 1.4.1 ( #484 )
...
* Update Hassio base image to 1.4.1
* Fix rotary encoder typo
Fixes https://github.com/esphome/issues/issues/136
2019-03-17 20:41:07 +01:00
Otto Winter
d332e491ad
Changes for 1.12 ( #482 )
...
* Update setup scripts
* Add delete action, remove Hass config command
* Update esphome.js
* Lint
2019-03-16 22:24:26 +01:00